Advertisement
JairoAbreu

Untitled

Mar 10th, 2021
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. #
  2. # Copyright (C) 2019 The TwrpBuilder Open-Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16.  
  17. LOCAL_PATH := device/xiaomi/davinci
  18.  
  19. # Architecture
  20. TARGET_ARCH := arm64
  21. TARGET_ARCH_VARIANT := armv8-a
  22. TARGET_CPU_ABI := arm64-v8a
  23. TARGET_CPU_ABI2 :=
  24. TARGET_CPU_VARIANT := kryo
  25.  
  26. TARGET_2ND_ARCH := arm
  27. TARGET_2ND_ARCH_VARIANT := armv8-a
  28. TARGET_2ND_CPU_ABI := armeabi-v7a
  29. TARGET_2ND_CPU_ABI2 := armeabi
  30. TARGET_2ND_CPU_VARIANT := cortex-a73
  31. TARGET_USES_64_BIT_BINDER := true
  32.  
  33. # Bootloader
  34. TARGET_BOOTLOADER_BOARD_NAME := sm6150
  35. TARGET_NO_BOOTLOADER := true
  36.  
  37. # Platform
  38. TARGET_BOARD_PLATFORM := sm6150
  39.  
  40. # Kernel
  41. BOARD_KERNEL_BASE := 0x00000000
  42. BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa88000
  43. BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom androidboot.console=ttyMSM0
  44. BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3
  45. BOARD_KERNEL_CMDLINE += service_locator.enable=1
  46. BOARD_KERNEL_CMDLINE += loop.max_part=7
  47. BOARD_KERNEL_PAGESIZE := 4096
  48. TARGET_KERNEL_ARCH := arm64
  49. TARGET_KERNEL_CLANG_COMPILE := true
  50.  
  51. BOARD_BOOTIMG_HEADER_VERSION := 1
  52. BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
  53.  
  54. ifeq ($(FOX_BUILD_FULL_KERNEL_SOURCES),1)
  55. BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
  56. TARGET_KERNEL_CONFIG := davinci_defconfig
  57. TARGET_KERNEL_SOURCE := kernel/xiaomi/davinci
  58. else
  59. TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/Image.gz-dtb
  60. TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/Image.gz-dtb
  61. PRODUCT_COPY_FILES += \
  62. $(TARGET_PREBUILT_KERNEL):kernel
  63. endif
  64.  
  65. # Assert
  66. TARGET_OTA_ASSERT_DEVICE := davinci,davinciin
  67.  
  68. # Avb
  69. BOARD_AVB_ENABLE := true
  70. BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flag 2
  71. BOARD_AVB_RECOVERY_ALGORITHM := SHA256_RSA4096
  72. BOARD_AVB_ROLLBACK_INDEX := 1
  73. BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1
  74.  
  75. # Partitions
  76. BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
  77. BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
  78. BOARD_DTBOIMG_PARTITION_SIZE := 33554432
  79. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
  80. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3758096384
  81. BOARD_USERDATAIMAGE_PARTITION_SIZE := 55371083776
  82. BOARD_VENDORIMAGE_PARTITION_SIZE := 1610612736
  83. BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
  84.  
  85. # System as root
  86. BOARD_SUPPRESS_SECURE_ERASE := true
  87.  
  88. # Workaround for error copying vendor files to recovery ramdisk
  89. TARGET_COPY_OUT_VENDOR := vendor
  90.  
  91. # Recovery
  92. BOARD_HAS_LARGE_FILESYSTEM := true
  93. TARGET_USERIMAGES_USE_EXT4 := true
  94. TARGET_USERIMAGES_USE_F2FS := true
  95.  
  96. # TWRP specific build flags
  97. TW_THEME := portrait_hdpi
  98.  
  99. # Hack: prevent anti rollback
  100. PLATFORM_SECURITY_PATCH := 2099-12-31
  101. PLATFORM_VERSION := 16.1.0
  102.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement