blob: e13317f3b5277510e29f3e8648cf518965ccb17f [file] [log] [blame]
Anton Hansson40c47732018-11-22 15:39:10 +00001# BoardConfigMainlineCommon.mk
2#
3# Common compile-time definitions for mainline images.
4
5# The generic product target doesn't have any hardware-specific pieces.
6TARGET_NO_BOOTLOADER := true
7TARGET_NO_KERNEL := true
8
9TARGET_USERIMAGES_USE_EXT4 := true
10
Anton Hansson97915182018-12-06 18:25:32 +000011# Mainline devices must have /vendor and /product partitions.
12TARGET_COPY_OUT_VENDOR := vendor
13TARGET_COPY_OUT_PRODUCT := product
14
Anton Hansson40c47732018-11-22 15:39:10 +000015# system-as-root is mandatory from Android P
16TARGET_NO_RECOVERY := true
17BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
18
19BOARD_VNDK_VERSION := current
20
21# Required flag for non-64 bit devices from P.
22TARGET_USES_64_BIT_BINDER := true
23
Anton Hanssonac952ee2019-01-09 16:12:38 +000024# 64 bit mediadrmserver
25TARGET_ENABLE_MEDIADRM_64 := true
26
Anton Hansson40c47732018-11-22 15:39:10 +000027# Puts odex files on system_other, as well as causing dex files not to get
28# stripped from APKs.
29BOARD_USES_SYSTEM_OTHER_ODEX := true
30
31# Audio: must using XML format for Treblized devices
32USE_XML_AUDIO_POLICY_CONF := 1
Anton Hanssonde6f4cf2018-12-04 16:51:21 +000033
Anton Hansson60bf75a2019-02-06 15:41:36 +000034# Bluetooth defines
35# TODO(b/123695868): Remove the need for this
36BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth
37
Anton Hanssonde6f4cf2018-12-04 16:51:21 +000038BOARD_AVB_ENABLE := true
39BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
Anton Hanssonb100f5b2019-02-08 13:34:49 +000040
41BOARD_CHARGER_ENABLE_SUSPEND := true