6b26f52cf7
BOARD_EXT4_SHARE_DUP_BLOCKS can reduce the image size. Move it to
BoardConfigMainlineCommon.mk to apply on all mainline based
targets.
Bug: 155589918
Test: build aosp_arm-userdebug
Test: build gsi_gms_arm64-userdebug
Test: build sdk_gphone_arm64-userdebug
Change-Id: I8c4c7c9b2982daf6bf02991b4e62a43b296d003e
Merged-In: I8c4c7c9b2982daf6bf02991b4e62a43b296d003e
(cherry picked from commit de9dc88b59
)
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# BoardConfigMainlineCommon.mk
|
|
#
|
|
# Common compile-time definitions for mainline images.
|
|
|
|
# The generic product target doesn't have any hardware-specific pieces.
|
|
TARGET_NO_BOOTLOADER := true
|
|
TARGET_NO_RECOVERY := true
|
|
|
|
BOARD_EXT4_SHARE_DUP_BLOCKS := true
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
# Mainline devices must have /system_ext, /vendor and /product partitions.
|
|
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
TARGET_COPY_OUT_PRODUCT := product
|
|
|
|
# Creates metadata partition mount point under root for
|
|
# the devices with metadata parition
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
BOARD_VNDK_VERSION := current
|
|
|
|
# Required flag for non-64 bit devices from P.
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
# 64 bit mediadrmserver
|
|
TARGET_ENABLE_MEDIADRM_64 := true
|
|
|
|
# Puts odex files on system_other, as well as causing dex files not to get
|
|
# stripped from APKs.
|
|
BOARD_USES_SYSTEM_OTHER_ODEX := true
|
|
|
|
# Audio: must using XML format for Treblized devices
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
|
|
|
# Bluetooth defines
|
|
# TODO(b/123695868): Remove the need for this
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := build/make/target/board/mainline_arm64/bluetooth
|
|
|
|
BOARD_AVB_ENABLE := true
|
|
BOARD_AVB_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
|
|
|
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
|
|
|
# Enable system property split for Treble
|
|
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
|
|
|
# Include stats logging code in LMKD
|
|
TARGET_LMKD_STATS_LOG := true
|