xref: /aosp_15_r20/build/make/target/board/BoardConfigMainlineCommon.mk (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1# BoardConfigMainlineCommon.mk
2#
3# Common compile-time definitions for mainline images.
4
5# Ensure all trunk-stable flags are available.
6include build/make/target/product/build_variables.mk
7
8# The generic product target doesn't have any hardware-specific pieces.
9TARGET_NO_BOOTLOADER := true
10TARGET_NO_RECOVERY := true
11
12BOARD_EXT4_SHARE_DUP_BLOCKS := true
13
14TARGET_USERIMAGES_USE_EXT4 := true
15
16# Mainline devices must have /system_ext, /vendor and /product partitions.
17TARGET_COPY_OUT_SYSTEM_EXT := system_ext
18TARGET_COPY_OUT_VENDOR := vendor
19TARGET_COPY_OUT_PRODUCT := product
20BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
21BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
22
23# Creates metadata partition mount point under root for
24# the devices with metadata parition
25BOARD_USES_METADATA_PARTITION := true
26
27# 64 bit mediadrmserver
28TARGET_ENABLE_MEDIADRM_64 := true
29
30# 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
34# Audio: must using XML format for Treblized devices
35USE_XML_AUDIO_POLICY_CONF := 1
36
37# 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
41BOARD_AVB_ENABLE := true
42BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
43
44BOARD_CHARGER_ENABLE_SUSPEND := true
45
46# Enable system property split for Treble
47BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
48
49# Include stats logging code in LMKD
50TARGET_LMKD_STATS_LOG := true
51