BoardConfig.mk 2.5 KB

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