Anton Hansson | 40c4773 | 2018-11-22 15:39:10 +0000 | [diff] [blame] | 1 | # BoardConfigMainlineCommon.mk |
| 2 | # |
| 3 | # Common compile-time definitions for mainline images. |
| 4 | |
| 5 | # The generic product target doesn't have any hardware-specific pieces. |
| 6 | TARGET_NO_BOOTLOADER := true |
| 7 | TARGET_NO_KERNEL := true |
| 8 | |
| 9 | TARGET_USERIMAGES_USE_EXT4 := true |
| 10 | |
Anton Hansson | 9791518 | 2018-12-06 18:25:32 +0000 | [diff] [blame] | 11 | # Mainline devices must have /vendor and /product partitions. |
| 12 | TARGET_COPY_OUT_VENDOR := vendor |
Anton Hansson | 1683198 | 2019-03-22 14:10:19 +0000 | [diff] [blame] | 13 | BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 14 | |
Anton Hansson | 9791518 | 2018-12-06 18:25:32 +0000 | [diff] [blame] | 15 | TARGET_COPY_OUT_PRODUCT := product |
Anton Hansson | 1683198 | 2019-03-22 14:10:19 +0000 | [diff] [blame] | 16 | BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Anton Hansson | 9791518 | 2018-12-06 18:25:32 +0000 | [diff] [blame] | 17 | |
Anton Hansson | 40c4773 | 2018-11-22 15:39:10 +0000 | [diff] [blame] | 18 | # system-as-root is mandatory from Android P |
| 19 | TARGET_NO_RECOVERY := true |
| 20 | BOARD_BUILD_SYSTEM_ROOT_IMAGE := true |
| 21 | |
| 22 | BOARD_VNDK_VERSION := current |
| 23 | |
| 24 | # Required flag for non-64 bit devices from P. |
| 25 | TARGET_USES_64_BIT_BINDER := true |
| 26 | |
Anton Hansson | ac952ee | 2019-01-09 16:12:38 +0000 | [diff] [blame] | 27 | # 64 bit mediadrmserver |
| 28 | TARGET_ENABLE_MEDIADRM_64 := true |
| 29 | |
Anton Hansson | 40c4773 | 2018-11-22 15:39:10 +0000 | [diff] [blame] | 30 | # Puts odex files on system_other, as well as causing dex files not to get |
| 31 | # stripped from APKs. |
| 32 | BOARD_USES_SYSTEM_OTHER_ODEX := true |
| 33 | |
| 34 | # Audio: must using XML format for Treblized devices |
| 35 | USE_XML_AUDIO_POLICY_CONF := 1 |
Anton Hansson | de6f4cf | 2018-12-04 16:51:21 +0000 | [diff] [blame] | 36 | |
Anton Hansson | 60bf75a | 2019-02-06 15:41:36 +0000 | [diff] [blame] | 37 | # Bluetooth defines |
| 38 | # TODO(b/123695868): Remove the need for this |
| 39 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth |
| 40 | |
Anton Hansson | de6f4cf | 2018-12-04 16:51:21 +0000 | [diff] [blame] | 41 | BOARD_AVB_ENABLE := true |
| 42 | BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP) |
Anton Hansson | b100f5b | 2019-02-08 13:34:49 +0000 | [diff] [blame] | 43 | |
| 44 | BOARD_CHARGER_ENABLE_SUSPEND := true |
Anton Hansson | 571fab0 | 2019-03-21 14:54:43 +0000 | [diff] [blame] | 45 | |
| 46 | # Enable A/B update |
| 47 | AB_OTA_UPDATER := true |
| 48 | AB_OTA_PARTITIONS := system |
Anton Hansson | 018bd13 | 2019-03-22 14:12:26 +0000 | [diff] [blame^] | 49 | |
| 50 | # Enable system property split for Treble |
| 51 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |