blob: bf015e502468da3231b417df160651e9783a9059 [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
Anton Hanssoncd2f9442019-03-22 15:02:08 +00007TARGET_NO_RECOVERY := true
Anton Hansson40c47732018-11-22 15:39:10 +00008
SzuWei Lin6b26f522020-05-14 16:26:55 +08009BOARD_EXT4_SHARE_DUP_BLOCKS := true
10
Anton Hansson40c47732018-11-22 15:39:10 +000011TARGET_USERIMAGES_USE_EXT4 := true
12
Justin Yun6151e3f2019-06-25 15:58:13 +090013# Mainline devices must have /system_ext, /vendor and /product partitions.
14TARGET_COPY_OUT_SYSTEM_EXT := system_ext
Anton Hansson97915182018-12-06 18:25:32 +000015TARGET_COPY_OUT_VENDOR := vendor
16TARGET_COPY_OUT_PRODUCT := product
17
Jeongik Cha9478f662019-08-20 19:49:12 +090018# Creates metadata partition mount point under root for
19# the devices with metadata parition
20BOARD_USES_METADATA_PARTITION := true
21
Anton Hansson40c47732018-11-22 15:39:10 +000022BOARD_VNDK_VERSION := current
23
24# Required flag for non-64 bit devices from P.
25TARGET_USES_64_BIT_BINDER := true
26
Anton Hanssonac952ee2019-01-09 16:12:38 +000027# 64 bit mediadrmserver
28TARGET_ENABLE_MEDIADRM_64 := true
29
Anton Hansson40c47732018-11-22 15:39:10 +000030# Puts odex files on system_other, as well as causing dex files not to get
31# stripped from APKs.
32BOARD_USES_SYSTEM_OTHER_ODEX := true
33
Andrew Lehmer4c42d172019-05-14 21:16:46 +000034# Audio: must using XML format for Treblized devices
35USE_XML_AUDIO_POLICY_CONF := 1
36
Anton Hansson60bf75a2019-02-06 15:41:36 +000037# Bluetooth defines
38# TODO(b/123695868): Remove the need for this
39BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth
40
Anton Hanssonde6f4cf2018-12-04 16:51:21 +000041BOARD_AVB_ENABLE := true
42BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
Anton Hanssonb100f5b2019-02-08 13:34:49 +000043
44BOARD_CHARGER_ENABLE_SUSPEND := true
Anton Hansson571fab02019-03-21 14:54:43 +000045
Anton Hansson018bd132019-03-22 14:12:26 +000046# Enable system property split for Treble
47BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
Anton Hansson66bd1852019-04-05 18:45:17 +010048
Anton Hanssonc4f11be2019-06-26 15:56:34 +010049# Include stats logging code in LMKD
50TARGET_LMKD_STATS_LOG := true