device_xiaomi_sweet/BoardConfig.mk

56 lines
1.4 KiB
Makefile
Raw Normal View History

2021-07-09 13:34:30 -04:00
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
2021-07-10 07:17:56 -04:00
# Inherit from sm6150-common
include device/xiaomi/sm6150-common/BoardConfigCommon.mk
2021-07-09 13:34:30 -04:00
DEVICE_PATH := device/xiaomi/sweet
2021-07-10 07:14:10 -04:00
# Assert
TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
# Audio
TARGET_PROVIDES_AUDIO_EXTNS := true
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
ODM_MANIFEST_SKUS += sweet
ODM_MANIFEST_SWEET_FILES := \
$(DEVICE_PATH)/configs/hidl/manifest-nfc.xml
# Init
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_sweet
TARGET_RECOVERY_DEVICE_MODULES := libinit_sweet
2021-07-10 07:16:36 -04:00
# Kernel
TARGET_KERNEL_CONFIG += vendor/sweet.config
2021-07-10 07:16:36 -04:00
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
BOARD_CACHEIMAGE_PARTITION_SIZE := 402653184
BOARD_DTBOIMG_PARTITION_SIZE := 33554432
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 134217728
BOARD_SUPER_PARTITION_SIZE := 9126805504
BOARD_USERDATAIMAGE_PARTITION_SIZE := 114980532224
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead
# Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
2021-07-10 09:16:26 -04:00
# Screen density
TARGET_SCREEN_DENSITY := 440
# Sepolicy
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
# Vendor security patch level
VENDOR_SECURITY_PATCH := 2023-11-01
2021-07-10 07:14:10 -04:00
# Inherit from proprietary files
include vendor/xiaomi/sweet/BoardConfigVendor.mk