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 13:56:00 -04:00
|
|
|
BUILD_BROKEN_DUP_RULES := true
|
2021-07-10 07:14:10 -04:00
|
|
|
|
2021-07-10 10:56:57 -04:00
|
|
|
# Assert
|
|
|
|
TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
|
|
|
|
|
2021-07-10 06:26:35 -04:00
|
|
|
# Audio
|
|
|
|
TARGET_PROVIDES_AUDIO_EXTNS := true
|
|
|
|
|
2021-07-12 07:01:17 -04:00
|
|
|
# HIDL
|
|
|
|
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
|
2020-07-25 07:45:59 -04:00
|
|
|
ODM_MANIFEST_SKUS += sweet
|
|
|
|
ODM_MANIFEST_SWEET_FILES := \
|
|
|
|
$(DEVICE_PATH)/configs/hidl/manifest-nfc.xml
|
2021-07-12 07:01:17 -04:00
|
|
|
|
2019-08-26 17:40:14 -04:00
|
|
|
# Init
|
|
|
|
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_sweet
|
|
|
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_sweet
|
|
|
|
|
2021-07-10 07:16:36 -04:00
|
|
|
# Kernel
|
2023-03-18 17:42:50 -04:00
|
|
|
TARGET_KERNEL_CONFIG := sweet_defconfig
|
2021-07-10 07:16:36 -04:00
|
|
|
|
2021-03-14 13:21:54 -04:00
|
|
|
# Partitions
|
|
|
|
BOARD_FLASH_BLOCK_SIZE := 131072
|
|
|
|
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_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
|
|
|
|
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
|
|
|
|
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead
|
|
|
|
|
|
|
|
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
|
|
|
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
|
2020-07-15 14:01:05 -04:00
|
|
|
BOARD_ODMIMAGE_PARTITION_RESERVED_SIZE := 104857600
|
2020-12-01 05:46:52 -05:00
|
|
|
ifeq ($(WITH_GMS),true)
|
|
|
|
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 104857600
|
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 104857600
|
|
|
|
else
|
2020-09-07 17:56:46 -04:00
|
|
|
BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1
|
|
|
|
BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1887436800
|
|
|
|
BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := -1
|
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 1887436800
|
2020-12-01 05:46:52 -05:00
|
|
|
endif
|
2020-07-15 14:01:05 -04:00
|
|
|
BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 104857600
|
|
|
|
BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 104857600
|
|
|
|
|
2021-03-14 13:21:54 -04:00
|
|
|
TARGET_COPY_OUT_ODM := odm
|
|
|
|
TARGET_COPY_OUT_PRODUCT := product
|
|
|
|
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
|
|
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
|
|
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
|
2021-03-16 06:59:27 -04:00
|
|
|
# Properties
|
|
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
|
|
|
|
2021-07-10 03:00:09 -04:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
|
|
|
|
|
2021-07-10 09:16:26 -04:00
|
|
|
# Screen density
|
|
|
|
TARGET_SCREEN_DENSITY := 440
|
|
|
|
|
2021-03-31 16:52:59 -04:00
|
|
|
# Sepolicy
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
|
|
|
|
|
2022-06-27 18:29:08 -04:00
|
|
|
# Vendor security patch level
|
2023-01-21 18:41:31 -05:00
|
|
|
VENDOR_SECURITY_PATCH := 2022-11-01
|
2022-06-27 18:29:08 -04:00
|
|
|
|
2021-07-10 07:14:10 -04:00
|
|
|
# Inherit from proprietary files
|
|
|
|
include vendor/xiaomi/sweet/BoardConfigVendor.mk
|