aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Hansson2018-11-22 09:39:10 -0600
committerAnton Hansson2018-11-29 14:56:39 -0600
commit40c4773288d7fa4af8368177c5f0931cd9b83da4 (patch)
tree14d7a54efff9f9f919c28f3d408a05d8ecd5a8c6 /target/board/BoardConfigGsiCommon.mk
parentd5bb13addb4ea0548800478670b04fbe42e876c6 (diff)
downloadplatform-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.mk21
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. 7include build/make/target/board/BoardConfigMainlineCommon.mk
7TARGET_NO_BOOTLOADER := true 8
8TARGET_NO_KERNEL := true 9# This flag is set by mainline but isn't desired for GSI.
10BOARD_USES_SYSTEM_OTHER_ODEX :=
9 11
10# GSIs always use ext4.
11TARGET_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.
41TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop 41TARGET_SYSTEM_PROP := build/make/target/board/gsi_system.prop
42endif 42endif
43BOARD_VNDK_VERSION := current
44
45# system-as-root is mandatory from Android P
46TARGET_NO_RECOVERY := true
47BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
48
49# 64 bits binder interface is mandatory from Android P
50TARGET_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
53BOARD_USES_METADATA_PARTITION := true 45BOARD_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.
57BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 49BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
58BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216 50BOARD_CACHEIMAGE_PARTITION_SIZE := 16777216
59
60# Audio: must using XML format for Treblized devices
61USE_XML_AUDIO_POLICY_CONF := 1