BoardConfig.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #
  2. # Copyright (C) 2018 The Android Open Source Project
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. #
  17. LOCAL_PATH := device/nokia/PL2
  18. # Architecture
  19. TARGET_ARCH := arm64
  20. TARGET_ARCH_VARIANT := armv8-a
  21. TARGET_CPU_ABI := arm64-v8a
  22. TARGET_CPU_ABI2 :=
  23. TARGET_CPU_VARIANT := kryo
  24. TARGET_2ND_ARCH := arm
  25. TARGET_2ND_ARCH_VARIANT := armv7-a-neon
  26. TARGET_2ND_CPU_ABI := armeabi-v7a
  27. TARGET_2ND_CPU_ABI2 := armeabi
  28. TARGET_2ND_CPU_VARIANT := cortex-a53
  29. # Platform
  30. TARGET_BOARD_PLATFORM := sdm660
  31. TARGET_BOARD_PLATFORM_GPU := qcom-adreno512
  32. # Bootloader
  33. TARGET_BOOTLOADER_BOARD_NAME := sdm660
  34. TARGET_NO_BOOTLOADER := true
  35. TARGET_USES_UEFI := true
  36. # Crypto
  37. TARGET_HW_DISK_ENCRYPTION := true
  38. # Enable CPUSets
  39. ENABLE_CPUSETS := true
  40. ENABLE_SCHEDBOOST := true
  41. # Kernel
  42. BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 androidboot.hardware=qcom msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 sched_enable_hmp=1 sched_enable_power_aware=1 service_locator.enable=1 swiotlb=1 androidboot.configfs=true androidboot.usbcontroller=a800000.dwc3 buildvariant=eng androidboot.fastboot=1
  43. BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
  44. BOARD_KERNEL_BASE := 0x00000000
  45. BOARD_KERNEL_OFFSET := 0x00008000
  46. BOARD_KERNEL_PAGESIZE := 4096
  47. BOARD_KERNEL_TAGS_OFFSET := 0x00000100
  48. BOARD_RAMDISK_OFFSET := 0x01000000
  49. BOARD_SECOND_OFFSET := 0x00f00000
  50. TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/Image.gz-dtb
  51. # Partitions
  52. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
  53. BOARD_FLASH_BLOCK_SIZE := 131072
  54. BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
  55. BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
  56. BOARD_ROOT_EXTRA_FOLDERS := bt_firmware dsp firmware persist
  57. BOARD_USES_RECOVERY_AS_BOOT := true
  58. BOARD_HAS_REMOVABLE_STORAGE := true
  59. BOARD_SUPPRESS_SECURE_ERASE := true
  60. TARGET_USERIMAGES_USE_EXT4 := true
  61. BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
  62. # Recovery
  63. TARGET_RECOVERY_WIPE := $(LOCAL_PATH)/recovery/root/etc/recovery.wipe
  64. BOARD_HAS_LARGE_FILESYSTEM := true
  65. BOARD_HAS_NO_SELECT_BUTTON := true
  66. # Vendor
  67. TARGET_COPY_OUT_VENDOR := vendor
  68. # TWRP Configuration
  69. AB_OTA_UPDATER := true
  70. TW_THEME := portrait_hdpi
  71. TW_INCLUDE_CRYPTO := true
  72. TW_MAX_BRIGHTNESS := 100
  73. TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
  74. TW_EXCLUDE_SUPERSU := true
  75. TW_EXTRA_LANGUAGES := true
  76. TW_NO_SCREEN_BLANK := true
  77. TW_INPUT_BLACKLIST := "hbtp_vm"
  78. TARGET_RECOVERY_QCOM_RTC_FIX := true
  79. TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
  80. RECOVERY_SDCARD_ON_DATA := true
  81. RECOVERY_GRAPHICS_USE_LINELENGTH := true
  82. TARGET_RECOVERY_DEVICE_MODULES += android.hardware.boot@1.0
  83. TW_RECOVERY_ADDITIONAL_RELINK_FILES := ${OUT}/system/lib64/android.hardware.boot@1.0.so