BoardConfig.mk 2.3 KB

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