BoardConfig.mk 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. # Kernel
  31. TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/prebuilt/kernel
  32. BOARD_KERNEL_BASE := 0x10000000
  33. BOARD_KERNEL_PAGESIZE := 2048
  34. BOARD_MKBOOTIMG_ARGS := \
  35. --kernel_offset 0x00008000 \
  36. --ramdisk_offset 0x01000000 \
  37. --tags_offset 0x00000100 \
  38. --dt $(DEVICE_PATH)/prebuilt/dt-herolte.img
  39. # Bootloader
  40. TARGET_NO_BOOTLOADER := true
  41. TARGET_BOOTLOADER_BOARD_NAME := universal8890
  42. # Platform
  43. TARGET_BOARD_PLATFORM := exynos8890
  44. # File systems
  45. BOARD_HAS_LARGE_FILESYSTEM := true
  46. TARGET_USERIMAGES_USE_EXT4 := true
  47. TARGET_USERIMAGES_USE_F2FS := true
  48. # Crypto
  49. TW_INCLUDE_CRYPTO := true
  50. TW_INCLUDE_CRYPTO_FBE := true
  51. # Recovery
  52. LZMA_COMPRESSION := -9
  53. LZMA_RAMDISK_TARGETS := recovery
  54. RECOVERY_SDCARD_ON_DATA := true
  55. TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888"
  56. TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/system/etc/recovery.fstab
  57. # TWRP specific build flags
  58. TW_THEME := portrait_hdpi
  59. TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/15400000.usb/15400000.dwc3/gadget/lun%d/file"
  60. TW_BRIGHTNESS_PATH := "/sys/devices/13900000.dsim/backlight/panel/brightness"
  61. TW_MAX_BRIGHTNESS := 255
  62. TW_DEFAULT_BRIGHTNESS := 172
  63. TW_CUSTOM_CPU_TEMP_PATH := "/sys/class/thermal/thermal_zone1/temp"
  64. TW_NO_REBOOT_BOOTLOADER := true
  65. TW_HAS_DOWNLOAD_MODE := true
  66. TW_INCLUDE_NTFS_3G := true
  67. TW_USE_NEW_MINADBD := true
  68. BOARD_HAS_NO_REAL_SDCARD := true
  69. TW_EXCLUDE_TWRPAPP := true
  70. TW_FORCE_USE_BUSYBOX := true
  71. TW_INCLUDE_RESETPROP := true
  72. TW_EXTRA_LANGUAGES := true