Jelajahi Sumber

dm2q: Refactor BoardConfig.mk for cleanup and updates

Rafael Alvarado Navarro 1 tahun lalu
induk
melakukan
169d86138e
1 mengubah file dengan 6 tambahan dan 24 penghapusan
  1. 6 24
      BoardConfig.mk

+ 6 - 24
BoardConfig.mk

@@ -14,8 +14,6 @@ ALLOW_MISSING_DEPENDENCIES := true
 # Rules
 BUILD_BROKEN_DUP_RULES := true
 BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
-BUILD_BROKEN_NINJA_USES_ENV_VARS += RTIC_MPGEN
-BUILD_BROKEN_PLUGIN_VALIDATION := soong-libaosprecovery_defaults soong-libguitwrp_defaults soong-libminuitwrp_defaults soong-vold_defaults
 
 # Architecture
 TARGET_ARCH := arm64
@@ -76,11 +74,6 @@ BOARD_MKBOOTIMG_ARGS += --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
 BOARD_MKBOOTIMG_ARGS += --dtb $(TARGET_PREBUILT_DTB) --board "SRPVH05C005"
 BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/mkboot/bootimg.mk
 
-# Verified Boot
-BOARD_AVB_ENABLE := true
-
-# Partitions
-BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
 
 # Recovery
 BOARD_HAS_LARGE_FILESYSTEM := true
@@ -151,13 +144,12 @@ TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
 # Crypto
 PLATFORM_SECURITY_PATCH := 2029-12-31
 VENDOR_SECURITY_PATCH := 2029-12-31
-PLATFORM_VERSION := 99.87.36
+PLATFORM_VERSION := 12
 TW_INCLUDE_CRYPTO := false
 TW_INCLUDE_CRYPTO_FBE := false
 BOARD_USES_QCOM_FBE_DECRYPTION := false
 TW_INCLUDE_FBE_METADATA_DECRYPT := false
 BOARD_USES_METADATA_PARTITION := true
-TW_USE_FSCRYPT_POLICY := 2
 
 # VNDK Treble
 BOARD_VNDK_VERSION := current
@@ -184,8 +176,6 @@ TARGET_USE_CUSTOM_LUN_FILE_PATH := /config/usb_gadget/g1/functions/mass_storage.
 TW_SCREEN_BLANK_ON_BOOT := true
 TW_EXCLUDE_APEX := true
 TW_INCLUDE_NTFS_3G := true
-TARGET_USES_MKE2FS := true
-TW_EXCLUDE_DEFAULT_USB_INIT := true
 TW_NO_HAPTICS := true
 TW_USE_NEW_MINADBD := true
 TW_INPUT_BLACKLIST := "hbtp_vm"
@@ -205,29 +195,21 @@ TW_INCLUDE_RESETPROP := true
 TW_INCLUDE_FB2PNG := true
 TW_INCLUDE_NTFS_3G := true
 TW_INCLUDE_LIBRESETPROP := true
-
+TW_EXCLUDE_DEFAULT_USB_INIT := true
+TW_USB_STORAGE := true
 
 # Download mode
 TW_NO_REBOOT_BOOTLOADER := true
 TW_HAS_DOWNLOAD_MODE := true
 
 # Logd
-TARGET_USES_LOGD := true
+TWRP_EVENT_LOGGING := true
 TWRP_INCLUDE_LOGCAT := true
-TARGET_RECOVERY_DEVICE_MODULES += debuggerd
-RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/debuggerd
-TARGET_RECOVERY_DEVICE_MODULES += strace
-RECOVERY_BINARY_SOURCE_FILES += $(TARGET_OUT_EXECUTABLES)/strace
-
-# Fastbootd
-TW_INCLUDE_FASTBOOTD := true
-
-# F2FS
-TW_ENABLE_FS_COMPRESSION := true
+TARGET_USES_LOGD := true
 
 # Super Image Tools
 TW_INCLUDE_LPDUMP := true
 TW_INCLUDE_LPTOOLS := true
 
 # Statusbar icons flags
-TW_STATUS_ICONS_ALIGN := center
+TW_STATUS_ICONS_ALIGN := center