BoardConfig.mk 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # Copyright 2018 The Android 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. # This contains the module build definitions for the hardware-specific
  17. # components for this device.
  18. #
  19. # As much as possible, those components should be built unconditionally,
  20. # with device-specific names to avoid collisions, to avoid device-specific
  21. # bitrot and build breakages. Building a component unconditionally does
  22. # *not* include it on all devices, so it is safe even with hardware-specific
  23. # components.
  24. LOCAL_PATH := device/nokia/PL2
  25. TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
  26. # Architecture
  27. TARGET_ARCH := arm64
  28. TARGET_ARCH_VARIANT := armv8-a
  29. TARGET_CPU_ABI := arm64-v8a
  30. TARGET_CPU_ABI2 :=
  31. TARGET_CPU_VARIANT := generic
  32. TARGET_2ND_ARCH := arm
  33. TARGET_2ND_ARCH_VARIANT := armv8-a
  34. TARGET_2ND_CPU_ABI := armeabi-v7a
  35. TARGET_2ND_CPU_ABI2 := armeabi
  36. TARGET_2ND_CPU_VARIANT := cortex-a53
  37. # Bootloader
  38. TARGET_BOOTLOADER_BOARD_NAME := sdm660
  39. TARGET_NO_BOOTLOADER := true
  40. # Kernel
  41. 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
  42. BOARD_KERNEL_CMDLINE += skip_override androidboot.selinux=permissive
  43. BOARD_KERNEL_BASE := 0x00000000
  44. BOARD_KERNEL_OFFSET := 0x00008000
  45. BOARD_KERNEL_PAGESIZE := 4096
  46. BOARD_KERNEL_TAGS_OFFSET := 0x00000100
  47. BOARD_RAMDISK_OFFSET := 0x01000000
  48. BOARD_SECOND_OFFSET := 0x00f00000
  49. TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/prebuilt/Image.gz-dtb
  50. # Platform
  51. TARGET_BOARD_PLATFORM := sdm660
  52. TARGET_BOARD_PLATFORM_GPU := qcom-adreno508
  53. # Encryption
  54. #PLATFORM_VERSION := 16.1.0
  55. PLATFORM_SECURITY_PATCH := 2025-12-31
  56. # Partitions
  57. BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
  58. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3036676096
  59. BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474820096
  60. BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
  61. BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
  62. # Recovery
  63. BOARD_HAS_LARGE_FILESYSTEM := true
  64. BOARD_HAS_NO_SELECT_BUTTON := true
  65. TARGET_NO_KERNEL := false
  66. TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
  67. TARGET_USERIMAGES_USE_EXT4 := true
  68. # TWRP specific build flags
  69. RECOVERY_SDCARD_ON_DATA := true
  70. TARGET_RECOVERY_QCOM_RTC_FIX := true
  71. TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness"
  72. TW_MAX_BRIGHTNESS := 100
  73. TW_DEFAULT_BRIGHTNESS := "30"
  74. TW_EXTRA_LANGUAGES := true
  75. TW_INCLUDE_CRYPTO := true
  76. TW_INCLUDE_NTFS_3G := true
  77. TW_INPUT_BLACKLIST := "hbtp_vm"
  78. TW_SCREEN_BLANK_ON_BOOT := true
  79. TW_THEME := portrait_hdpi
  80. TW_USE_TOOLBOX := true
  81. TW_INCLUDE_REPACKTOOLS := true
  82. TW_HAS_EDL_MODE := true
  83. # Workaround for error copying vendor files to recovery ramdisk
  84. TARGET_COPY_OUT_VENDOR := system/vendor