BoardConfig.mk 2.7 KB

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