diff options
author | Isaac Chen | 2018-06-10 23:52:22 -0500 |
---|---|---|
committer | Isaac Chen | 2018-07-05 05:47:15 -0500 |
commit | 55e1d01f9211a7ebc6d8fe8d9b1c6a039f7bc4a6 (patch) | |
tree | e667484166fb62c8a30a522377dfd92b5cc0d7be /target/board/BoardConfigEmuCommon.mk | |
parent | 8c01b71e2d32f642bdf225dc5725d3e22da9a8b8 (diff) | |
download | platform-build-55e1d01f9211a7ebc6d8fe8d9b1c6a039f7bc4a6.tar.gz platform-build-55e1d01f9211a7ebc6d8fe8d9b1c6a039f7bc4a6.tar.xz platform-build-55e1d01f9211a7ebc6d8fe8d9b1c6a039f7bc4a6.zip |
Refactor BoardConfig.mk for emulator products
The majority of the contents in BoardConfig.mk of emulator products
are the same. The common part is factored out as EmuConfig.mk so it's
easier to maintain these closely related products going forward.
Bug: 80117040
Test: Following products have been built and booted to homescreen:
$ lunch aosp_x86-userdebug; m -j; emulator
$ lunch aosp_x86_64-userdebug; m -j; emulator
Change-Id: I5392e0e88865d4908906a67c29939c23af84baf0
Merged-In: I5392e0e88865d4908906a67c29939c23af84baf0
(cherry picked from commit 510b76d8ffb47cc608f8783901dd95bfcac3f0f5)
Diffstat (limited to 'target/board/BoardConfigEmuCommon.mk')
-rw-r--r-- | target/board/BoardConfigEmuCommon.mk | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/target/board/BoardConfigEmuCommon.mk b/target/board/BoardConfigEmuCommon.mk new file mode 100644 index 000000000..1d58eabc8 --- /dev/null +++ b/target/board/BoardConfigEmuCommon.mk | |||
@@ -0,0 +1,51 @@ | |||
1 | # BoardConfigEmuCommon.mk | ||
2 | # | ||
3 | # Common compile-time definitions for emulator | ||
4 | # | ||
5 | |||
6 | # The generic product target doesn't have any hardware-specific pieces. | ||
7 | TARGET_NO_BOOTLOADER := true | ||
8 | TARGET_NO_KERNEL := true | ||
9 | |||
10 | HAVE_HTC_AUDIO_DRIVER := true | ||
11 | BOARD_USES_GENERIC_AUDIO := true | ||
12 | TARGET_BOOTLOADER_BOARD_NAME := goldfish_$(TARGET_ARCH) | ||
13 | |||
14 | TARGET_USES_64_BIT_BINDER := true | ||
15 | TARGET_USES_MKE2FS := true | ||
16 | |||
17 | # no hardware camera | ||
18 | USE_CAMERA_STUB := true | ||
19 | |||
20 | TARGET_USES_HWC2 := true | ||
21 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 | ||
22 | |||
23 | # Build OpenGLES emulation guest and host libraries | ||
24 | BUILD_EMULATOR_OPENGL := true | ||
25 | BUILD_QEMU_IMAGES := true | ||
26 | |||
27 | # Build and enable the OpenGL ES View renderer. When running on the emulator, | ||
28 | # the GLES renderer disables itself if host GL acceleration isn't available. | ||
29 | USE_OPENGL_RENDERER := true | ||
30 | |||
31 | TARGET_COPY_OUT_VENDOR := vendor | ||
32 | # ~100 MB vendor image. Please adjust system image / vendor image sizes | ||
33 | # when finalizing them. | ||
34 | BOARD_VENDORIMAGE_PARTITION_SIZE := 100000000 | ||
35 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
36 | BOARD_FLASH_BLOCK_SIZE := 512 | ||
37 | TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true | ||
38 | DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml | ||
39 | |||
40 | # Android generic system image always create metadata partition | ||
41 | BOARD_USES_METADATA_PARTITION := true | ||
42 | |||
43 | # Set this to create /cache mount point for non-A/B devices that mounts /cache. | ||
44 | # The partition size doesn't matter, just to make build pass. | ||
45 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | ||
46 | BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 | ||
47 | |||
48 | BOARD_SEPOLICY_DIRS += device/generic/goldfish/sepolicy/common | ||
49 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true | ||
50 | |||
51 | BUILD_BROKEN_DUP_RULES := false | ||