diff options
author | Anton Hansson | 2018-11-22 09:39:10 -0600 |
---|---|---|
committer | Anton Hansson | 2018-11-29 14:56:39 -0600 |
commit | 40c4773288d7fa4af8368177c5f0931cd9b83da4 (patch) | |
tree | 14d7a54efff9f9f919c28f3d408a05d8ecd5a8c6 /target/board/BoardConfigGsiCommon.mk | |
parent | d5bb13addb4ea0548800478670b04fbe42e876c6 (diff) | |
download | platform-build-40c4773288d7fa4af8368177c5f0931cd9b83da4.tar.gz platform-build-40c4773288d7fa4af8368177c5f0931cd9b83da4.tar.xz platform-build-40c4773288d7fa4af8368177c5f0931cd9b83da4.zip |
Split GSI and mainline board configs
Make the mainline board config only import a subset of the GSI
options. The current set of attributes is the minimal set to
keep mainline_system_arm64 building, as well as not producing
any diffs in the current set of files in /system. It's possible
we'll need to move a few more over, but we'll do that on a
case-by-case basis.
Make the GSI config inherit the mainline one. The only diff for GSI
should be the addition of BOARD_USES_SYSTEM_OTHER_ODEX.
Bug: 119911662
Test: build mainline_system_arm64
Change-Id: Id5d114bde8b93800fe52c791ccc47cdffd86f382
Diffstat (limited to 'target/board/BoardConfigGsiCommon.mk')
-rw-r--r-- | target/board/BoardConfigGsiCommon.mk | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/target/board/BoardConfigGsiCommon.mk b/target/board/BoardConfigGsiCommon.mk index dfa103aee..a52bb8045 100644 --- a/target/board/BoardConfigGsiCommon.mk +++ b/target/board/BoardConfigGsiCommon.mk | |||
@@ -1,14 +1,14 @@ | |||
1 | # BoardConfigGsiCommon.mk | 1 | # BoardConfigGsiCommon.mk |
2 | # | 2 | # |
3 | # Common compile-time definitions for GSI | 3 | # Common compile-time definitions for GSI |
4 | # Builds upon the mainline config. | ||
4 | # | 5 | # |
5 | 6 | ||
6 | # The generic product target doesn't have any hardware-specific pieces. | 7 | include build/make/target/board/BoardConfigMainlineCommon.mk |
7 | TARGET_NO_BOOTLOADER := true | 8 | |
8 | TARGET_NO_KERNEL := true | 9 | # This flag is set by mainline but isn't desired for GSI. |
10 | BOARD_USES_SYSTEM_OTHER_ODEX := | ||
9 | 11 | ||
10 | # GSIs always use ext4. | ||
11 | TARGET_USERIMAGES_USE_EXT4 := true | ||
12 | # GSIs are historically released in sparse format. | 12 | # GSIs are historically released in sparse format. |
13 | # Some vendors' bootloaders don't work properly with raw format images. So | 13 | # Some vendors' bootloaders don't work properly with raw format images. So |
14 | # we explicit specify this need below (even though it's the current default). | 14 | # we explicit specify this need below (even though it's the current default). |
@@ -40,14 +40,6 @@ ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) | |||
40 | # over those set by the vendor. | 40 | # over those set by the vendor. |
41 | TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop | 41 | TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop |
42 | endif | 42 | endif |
43 | BOARD_VNDK_VERSION := current | ||
44 | |||
45 | # system-as-root is mandatory from Android P | ||
46 | TARGET_NO_RECOVERY := true | ||
47 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true | ||
48 | |||
49 | # 64 bits binder interface is mandatory from Android P | ||
50 | TARGET_USES_64_BIT_BINDER := true | ||
51 | 43 | ||
52 | # Android generic system image always create metadata partition | 44 | # Android generic system image always create metadata partition |
53 | BOARD_USES_METADATA_PARTITION := true | 45 | BOARD_USES_METADATA_PARTITION := true |
@@ -56,6 +48,3 @@ BOARD_USES_METADATA_PARTITION := true | |||
56 | # The partition size doesn't matter, just to make build pass. | 48 | # The partition size doesn't matter, just to make build pass. |
57 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | 49 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
58 | BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 | 50 | BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 |
59 | |||
60 | # Audio: must using XML format for Treblized devices | ||
61 | USE_XML_AUDIO_POLICY_CONF := 1 | ||