BoardConfig.mk 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #
  2. # Copyright (C) 2013-2017 The TeamWin Recovery Project
  3. #
  4. # Copyright (C) 2020 The OrangeFox Recovery Project
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. DEVICE_PATH=device/samsung
  19. USE_CAMERA_STUB := true
  20. TARGET_NO_BOOTLOADER := true
  21. TARGET_BOOTLOADER_BOARD_NAME := MSM8974
  22. # Platform
  23. TARGET_BOARD_PLATFORM := msm8974
  24. TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
  25. # Flags
  26. TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp
  27. TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp
  28. BOARD_NO_SECURE_DISCARD := true
  29. BOARD_USES_QCOM_HARDWARE := true
  30. # Architecture
  31. TARGET_CPU_VARIANT := krait
  32. TARGET_CPU_ABI := armeabi-v7a
  33. TARGET_CPU_ABI2 := armeabi
  34. TARGET_ARCH := arm
  35. TARGET_ARCH_VARIANT := armv7-a-neon
  36. TARGET_CPU_SMP := true
  37. ARCH_ARM_HAVE_TLS_REGISTER := true
  38. BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom androidboot.bootdevice=msm_sdcc.1 user_debug=31 msm_rtb.filter=0x3F
  39. BOARD_KERNEL_BASE := 0x00000000
  40. BOARD_KERNEL_PAGESIZE := 2048
  41. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
  42. BOARD_BOOTIMAGE_PARTITION_SIZE := 0x000D00000
  43. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x000F00000
  44. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x097E00000
  45. BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x2E59F7C00 # 0x2E59FBC00 - 16384 (footer)
  46. BOARD_CACHEIMAGE_PARTITION_SIZE := 0x00C800000
  47. BOARD_FLASH_BLOCK_SIZE := 131072
  48. TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/klte/zImage
  49. TARGET_PREBUILT_DTB := $(DEVICE_PATH)/klte/dtb.img
  50. # Use this flag if the board has a ext4 partition larger than 2gb
  51. BOARD_HAS_LARGE_FILESYSTEM := true
  52. TARGET_USERIMAGES_USE_EXT4 := true
  53. TARGET_USERIMAGES_USE_F2FS := true
  54. BOARD_SUPPRESS_SECURE_ERASE := true
  55. BOARD_CUSTOM_BOOTIMG_MK := $(DEVICE_PATH)/klte/bootimg.mk
  56. # TWRP specific build flags
  57. TW_THEME := portrait_hdpi
  58. RECOVERY_SDCARD_ON_DATA := true
  59. BOARD_HAS_NO_REAL_SDCARD := true
  60. TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
  61. TARGET_RECOVERY_QCOM_RTC_FIX := true
  62. TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/msm_dwc3/f9200000.dwc3/gadget/lun%d/file"
  63. TW_BRIGHTNESS_PATH := "/sys/devices/mdp.0/qcom\x2cmdss_fb_primary.191/leds/lcd-backlight/brightness"
  64. TW_MAX_BRIGHTNESS := 255
  65. TW_DEFAULT_BRIGHTNESS := 162
  66. TW_NO_REBOOT_BOOTLOADER := true
  67. TW_HAS_DOWNLOAD_MODE := true
  68. TW_NO_EXFAT_FUSE := true
  69. TW_MTP_DEVICE := "/dev/mtp_usb"
  70. TW_EXCLUDE_SUPERSU := true
  71. # Encryption support
  72. TW_INCLUDE_CRYPTO := true
  73. TARGET_HW_DISK_ENCRYPTION := true
  74. TARGET_KEYMASTER_WAIT_FOR_QSEE := true
  75. #TW_EXTRA_LANGUAGES := true
  76. TW_INCLUDE_NTFS_3G := true
  77. # Init properties from bootloader version, ex. model info
  78. TARGET_UNIFIED_DEVICE := true
  79. TARGET_INIT_VENDOR_LIB := libinit_klte
  80. TARGET_RECOVERY_DEVICE_MODULES := libinit_klte
  81. TARGET_LIBINIT_DEFINES_FILE := $(DEVICE_PATH)/init/init_klte.cpp
  82. #