BoardConfig.mk 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #
  2. # Copyright (C) 2022 The OrangeFox Recovery 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. ALLOW_MISSING_DEPENDENCIES := true
  17. DEVICE_PATH := device/samsung/herolte
  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 := cortex-a53
  24. TARGET_CPU_SMP := true
  25. #TARGET_2ND_ARCH := arm64
  26. #TARGET_2ND_ARCH_VARIANT := armv8-a
  27. #TARGET_2ND_CPU_ABI := armeabi-v8a
  28. #TARGET_2ND_CPU_ABI2 := armeabi
  29. #TARGET_2ND_CPU_VARIANT := exynos-m1
  30. TARGET_2ND_ARCH := arm
  31. TARGET_2ND_ARCH_VARIANT := armv8-a
  32. TARGET_2ND_CPU_ABI := armeabi-v7a
  33. TARGET_2ND_CPU_ABI2 := armeabi
  34. TARGET_2ND_CPU_VARIANT := cortex-a53
  35. # Kernel
  36. TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel
  37. BOARD_KERNEL_BASE := 0x10000000
  38. BOARD_KERNEL_PAGESIZE := 2048
  39. BOARD_MKBOOTIMG_ARGS := \
  40. --kernel_offset 0x00008000 \
  41. --ramdisk_offset 0x01000000 \
  42. --tags_offset 0x00000100 \
  43. --dt $(DEVICE_PATH)/prebuilt/dt-herolte.img
  44. # Bootloader
  45. TARGET_NO_BOOTLOADER := true
  46. TARGET_BOOTLOADER_BOARD_NAME := universal8890
  47. # Platform
  48. TARGET_BOARD_PLATFORM := exynos8890
  49. # File systems
  50. BOARD_HAS_LARGE_FILESYSTEM := true
  51. TARGET_USERIMAGES_USE_EXT4 := true
  52. TARGET_USERIMAGES_USE_F2FS := true
  53. # Crypto
  54. TW_INCLUDE_CRYPTO := true
  55. TW_INCLUDE_CRYPTO_FBE := true
  56. # Recovery
  57. LZMA_COMPRESSION := -9
  58. LZMA_RAMDISK_TARGETS := recovery
  59. RECOVERY_SDCARD_ON_DATA := true
  60. TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888"
  61. TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/system/etc/recovery.fstab
  62. # TWRP specific build flags
  63. TW_THEME := portrait_hdpi
  64. TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/15400000.usb/15400000.dwc3/gadget/lun%d/file"
  65. TW_BRIGHTNESS_PATH := "/sys/devices/13900000.dsim/backlight/panel/brightness"
  66. TW_MAX_BRIGHTNESS := 255
  67. TW_DEFAULT_BRIGHTNESS := 172
  68. TW_CUSTOM_CPU_TEMP_PATH := "/sys/class/thermal/thermal_zone1/temp"
  69. TW_NO_REBOOT_BOOTLOADER := true
  70. TW_HAS_DOWNLOAD_MODE := true
  71. TW_INCLUDE_NTFS_3G := true
  72. TW_USE_NEW_MINADBD := true
  73. BOARD_HAS_NO_REAL_SDCARD := true
  74. TW_EXCLUDE_TWRPAPP := true
  75. TW_FORCE_USE_BUSYBOX := true
  76. TW_INCLUDE_RESETPROP := true
  77. TW_EXTRA_LANGUAGES := true