BoardConfigCommon.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #
  2. # Copyright (C) 2022 The LineageOS Project
  3. #
  4. # SPDX-License-Identifier: Apache-2.0
  5. #
  6. # Inherit from the proprietary version
  7. include vendor/xiaomi/sm8450-common/BoardConfigVendor.mk
  8. COMMON_PATH := device/xiaomi/sm8450-common
  9. # A/B
  10. AB_OTA_UPDATER := true
  11. AB_OTA_PARTITIONS += \
  12. boot \
  13. dtbo \
  14. odm \
  15. product \
  16. recovery \
  17. system \
  18. system_ext \
  19. vbmeta \
  20. vbmeta_system \
  21. vendor \
  22. vendor_boot \
  23. vendor_dlkm
  24. # Architecture
  25. TARGET_ARCH := arm64
  26. TARGET_ARCH_VARIANT := armv8-a-branchprot
  27. TARGET_CPU_ABI := arm64-v8a
  28. TARGET_CPU_ABI2 :=
  29. TARGET_CPU_VARIANT := kryo300
  30. TARGET_2ND_ARCH := arm
  31. TARGET_2ND_ARCH_VARIANT := armv8-2a
  32. TARGET_2ND_CPU_ABI := armeabi-v7a
  33. TARGET_2ND_CPU_ABI2 := armeabi
  34. TARGET_2ND_CPU_VARIANT := cortex-a75
  35. # Boot control
  36. $(call soong_config_set, ufsbsg, ufsframework, bsg)
  37. # Bootloader
  38. TARGET_BOOTLOADER_BOARD_NAME := taro
  39. TARGET_NO_BOOTLOADER := true
  40. # Metadata
  41. BOARD_USES_METADATA_PARTITION := true
  42. # Partitions
  43. BOARD_FLASH_BLOCK_SIZE := 0x020000 # (BOARD_KERNEL_PAGESIZE * 64)
  44. BOARD_BOOTIMAGE_PARTITION_SIZE := 0x0C000000
  45. BOARD_DTBOIMG_PARTITION_SIZE := 0x01800000
  46. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x06400000
  47. BOARD_SUPER_PARTITION_SIZE := 9126805504 # 0x220000000
  48. BOARD_USERDATAIMAGE_PARTITION_SIZE := 239033364480 # 0x37A77FB000
  49. BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x06000000
  50. BOARD_SUPER_PARTITION_GROUPS := qti_dynamic_partitions
  51. BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor vendor_dlkm
  52. BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # 0x21FC00000 # BOARD_SUPER_PARTITION_SIZE - overhead (4MiB)
  53. BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
  54. BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
  55. BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
  56. BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
  57. BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
  58. BOARD_VENDOR_DLKMIMAGE_FILE_SYSTEM_TYPE := ext4
  59. TARGET_COPY_OUT_ODM := odm
  60. TARGET_COPY_OUT_PRODUCT := product
  61. TARGET_COPY_OUT_SYSTEM_EXT := system_ext
  62. TARGET_COPY_OUT_VENDOR := vendor
  63. TARGET_COPY_OUT_VENDOR_DLKM := vendor_dlkm
  64. # Platform
  65. BOARD_USES_QCOM_HARDWARE := true
  66. TARGET_BOARD_PLATFORM := taro