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.
6TARGET_NO_BOOTLOADER := true
7TARGET_NO_RECOVERY := true
8
9BOARD_EXT4_SHARE_DUP_BLOCKS := true
10
11TARGET_USERIMAGES_USE_EXT4 := true
12
13# Mainline devices must have /system_ext, /vendor and /product partitions.
14TARGET_COPY_OUT_SYSTEM_EXT := system_ext
15TARGET_COPY_OUT_VENDOR := vendor
16TARGET_COPY_OUT_PRODUCT := product
17
18# Creates metadata partition mount point under root for
19# the devices with metadata parition
20BOARD_USES_METADATA_PARTITION := true
21
22# Default is current, but allow devices to override vndk version if needed.
23BOARD_VNDK_VERSION ?= current
24
25# Required flag for non-64 bit devices from P.
26TARGET_USES_64_BIT_BINDER := true
27
28# 64 bit mediadrmserver
29TARGET_ENABLE_MEDIADRM_64 := true
30
31# Puts odex files on system_other, as well as causing dex files not to get
32# stripped from APKs.
33BOARD_USES_SYSTEM_OTHER_ODEX := true
34
35# Audio: must using XML format for Treblized devices
36USE_XML_AUDIO_POLICY_CONF := 1
37
38# Bluetooth defines
39# TODO(b/123695868): Remove the need for this
40BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth
41
42BOARD_AVB_ENABLE := true
43BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
44
45BOARD_CHARGER_ENABLE_SUSPEND := true
46
47# Enable system property split for Treble
48BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
49
50# Include stats logging code in LMKD
51TARGET_LMKD_STATS_LOG := true
52