2021-07-09 13:34:30 -04:00
|
|
|
#
|
2024-03-23 10:40:53 -04:00
|
|
|
# Copyright (C) 2021-2024 The LineageOS Project
|
2021-07-09 13:34:30 -04:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2022-04-03 09:48:28 -04:00
|
|
|
# Inherit from proprietary files for miuicamera
|
|
|
|
-include vendor/xiaomi/sweet-miuicamera/products/board.mk
|
|
|
|
|
2021-07-09 13:34:30 -04:00
|
|
|
DEVICE_PATH := device/xiaomi/sweet
|
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
|
|
|
|
|
2024-10-01 22:02:56 -04:00
|
|
|
# Broken Rules
|
|
|
|
BUILD_BROKEN_CLANG_PROPERTY := true
|
|
|
|
BUILD_BROKEN_CLANG_ASFLAGS := true
|
|
|
|
BUILD_BROKEN_CLANG_CFLAGS := true
|
|
|
|
BUILD_BROKEN_DEPFILE := true
|
|
|
|
BUILD_BROKEN_DUP_RULES := true
|
|
|
|
BUILD_BROKEN_DUP_SYSPROP := true
|
|
|
|
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
|
|
|
|
BUILD_BROKEN_ENFORCE_SYSPROP_OWNER := true
|
|
|
|
BUILD_BROKEN_INPUT_DIR_MODULES := true
|
|
|
|
BUILD_BROKEN_MISSING_REQUIRED_MODULES := true
|
|
|
|
BUILD_BROKEN_OUTSIDE_INCLUDE_DIRS := true
|
|
|
|
BUILD_BROKEN_PREBUILT_ELF_FILES := true
|
|
|
|
#BUILD_BROKEN_TREBLE_SYSPROP_NEVERALLOW := true
|
|
|
|
BUILD_BROKEN_USES_NETWORK := true
|
|
|
|
BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true
|
|
|
|
BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true
|
|
|
|
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true
|
|
|
|
BUILD_BROKEN_GENRULE_SANDBOXING := true
|
|
|
|
BUILD_BROKEN_DONT_CHECK_SYSTEMSDK := true
|
|
|
|
|
2021-07-12 07:01:17 -04:00
|
|
|
# HIDL
|
|
|
|
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
|
|
|
|
|
2021-07-10 07:16:36 -04:00
|
|
|
# Kernel
|
2023-05-18 06:40:30 -04:00
|
|
|
TARGET_KERNEL_CONFIG += vendor/sweet.config
|
2021-07-10 07:16:36 -04:00
|
|
|
|
2021-03-14 13:21:54 -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_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # (BOARD_SUPER_PARTITION_SIZE - 4194304) 4MiB overhead
|
|
|
|
|
2021-03-16 06:59:27 -04:00
|
|
|
# Properties
|
2024-03-23 10:40:53 -04:00
|
|
|
TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
|
|
|
|
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
|
2021-03-16 06:59:27 -04:00
|
|
|
|
2021-07-10 09:16:26 -04:00
|
|
|
# Screen density
|
2020-11-16 05:19:54 -05:00
|
|
|
TARGET_SCREEN_DENSITY := 410
|
2021-07-10 09:16:26 -04:00
|
|
|
|
2024-10-01 22:02:56 -04:00
|
|
|
# Security patch level
|
|
|
|
BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
|
|
|
|
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
|
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
|