Advertisement
Guest User

BoardConfig.mk 12/29/2014 9:49PM EST

a guest
Dec 29th, 2014
1,437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.61 KB | None | 0 0
  1. #
  2. # Copyright (C) 2014 The CyanogenMod 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. #
  17. # This file sets variables that control the way modules are built
  18. # thorughout the system. It should not be used to conditionally
  19. # disable makefiles (the proper mechanism to control what gets
  20. # included in a build is to use PRODUCT_PACKAGES in a product
  21. # definition file).
  22. #
  23.  
  24. USE_CAMERA_STUB := false
  25. TARGET_NO_BOOTLOADER := true
  26.  
  27. TARGET_SPECIFIC_HEADER_PATH += device/lge/x5/include
  28.  
  29.  
  30. # Vendor Init
  31. TARGET_UNIFIED_DEVICE := true
  32. TARGET_INIT_VENDOR_LIB := libinit_msm
  33.  
  34. # Platform
  35. TARGET_ARCH := arm
  36. TARGET_BOARD_PLATFORM_GPU := qcom-adreno305
  37. TARGET_BOARD_PLATFORM := msm8226
  38. TARGET_CPU_VARIANT := krait
  39. TARGET_CPU_ABI := armeabi-v7a
  40. TARGET_CPU_ABI2 := armeabi
  41. TARGET_ARCH_VARIANT := armv7-a-neon
  42. ARCH_ARM_HAVE_TLS_REGISTER := true
  43. TARGET_BOOTLOADER_BOARD_NAME := x5
  44.  
  45. TARGET_SCREEN_HEIGHT := 960
  46. TARGET_SCREEN_WIDTH := 540
  47.  
  48. # Kernel image
  49. BOARD_KERNEL_SEPARATED_DT := true
  50. BOARD_CUSTOM_BOOTIMG_MK := device/lge/x5/mkbootimg.mk
  51. TARGET_KERNEL_SOURCE := kernel/lge/x5
  52. TARGET_BOARD_USE_DTS := msm8226-x5_spr_us
  53. TARGET_KERNEL_CONFIG := x5_spr_us_defconfig
  54. BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 user_debug=31 msm_rtb.filter=0x37 androidboot.hardware=x5
  55. BOARD_KERNEL_BASE := 0x00000000
  56. BOARD_KERNEL_PAGESIZE := 2048
  57. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01e00000
  58. TARGET_REQUIRES_BUMP := true
  59.  
  60. # Global flags
  61. COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DLG_CAMERA_HARDWARE
  62.  
  63. # Audio
  64. AUDIO_FEATURE_DISABLED_FM := false
  65. AUDIO_FEATURE_DISABLED_SSR := true
  66. BOARD_HAVE_QCOM_FM := true
  67. AUDIO_FEATURE_DISABLED_ANC_HEADSET := true
  68. AUDIO_FEATURE_DISABLED_DS1_DOLBY_DDP := true
  69. BOARD_USES_LEGACY_ALSA_AUDIO := true
  70. BOARD_USES_FLUENCE_INCALL := true
  71. BOARD_USES_SEPERATED_AUDIO_INPUT := true
  72. BOARD_USES_SEPERATED_VOICE_SPEAKER := true
  73. #TARGET_QCOM_AUDIO_VARIANT := caf
  74. TARGET_USES_QCOM_COMPRESSED_AUDIO := true
  75. #TARGET_QCOM_MEDIA_VARIANT := caf
  76.  
  77. # GPS
  78. TARGET_NO_RPC := true
  79.  
  80. # Graphics
  81. BOARD_EGL_CFG := device/lge/x5/prebuilt/egl.cfg
  82. TARGET_DISPLAY_USE_RETIRE_FENCE := true
  83. #TARGET_QCOM_DISPLAY_VARIANT := caf
  84. USE_OPENGL_RENDERER := true
  85. TARGET_USES_C2D_COMPOSITION := true
  86. TARGET_USES_ION := true
  87. NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
  88. OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
  89.  
  90. # Use qcom power hal
  91. #TARGET_POWERHAL_VARIANT := qcom
  92.  
  93. # Use CM PowerHAL
  94. TARGET_POWERHAL_VARIANT := cm
  95. TARGET_USES_CPU_BOOST_HINT := true
  96.  
  97. TARGET_HW_DISK_ENCRYPTION := true
  98.  
  99. # Hardware tunables framework
  100. BOARD_HARDWARE_CLASS := device/lge/x5/cmhw/
  101.  
  102. # Bluetooth
  103. BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/x5/bluetooth
  104. BOARD_HAVE_BLUETOOTH := true
  105. BOARD_HAVE_BLUETOOTH_QCOM := true
  106. BLUETOOTH_HCI_USE_MCT := true
  107.  
  108. # Wifi
  109. BOARD_HAS_QCOM_WLAN := true
  110. BOARD_WLAN_DEVICE := qcwcn
  111. WPA_SUPPLICANT_VERSION := VER_0_8_X
  112. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  113. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
  114. BOARD_HOSTAPD_DRIVER := NL80211
  115. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
  116. TARGET_USES_WCNSS_CTRL := true
  117. TARGET_USES_QCOM_WCNSS_QMI := true
  118. WIFI_DRIVER_FW_PATH_STA := "sta"
  119. WIFI_DRIVER_FW_PATH_AP := "ap"
  120.  
  121. # Enable WEBGL in WebKit
  122. ENABLE_WEBGL := true
  123. TARGET_FORCE_CPU_UPLOAD := true
  124.  
  125. # QCOM hardware
  126. BOARD_USES_QCOM_HARDWARE := true
  127.  
  128. # QCOM enhanced A/V
  129. TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
  130.  
  131. # Camera
  132. USE_DEVICE_SPECIFIC_CAMERA := true
  133. TARGET_DISPLAY_INSECURE_MM_HEAP := true
  134.  
  135. # Number of supplementary service groups allowed by init
  136. TARGET_NR_SVC_SUPP_GIDS := 28
  137. TARGET_BOOTANIMATION_PRELOAD := true
  138. TARGET_BOOTANIMATION_TEXTURE_CACHE := false
  139.  
  140. # Time services
  141. BOARD_USES_QC_TIME_SERVICES := true
  142.  
  143. # Storage
  144. BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true
  145. BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true
  146. BOARD_VOLD_MAX_PARTITIONS := 40
  147. TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file
  148. BOARD_BOOTIMAGE_PARTITION_SIZE := 0x01600000
  149. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x01600000
  150. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
  151. BOARD_FLASH_BLOCK_SIZE := 131072
  152. BOARD_HAS_LARGE_FILESYSTEM := true
  153.  
  154. # TWRP Recovery
  155. TARGET_RECOVERY_FSTAB := device/lge/x5/rootdir/recovery.fstab
  156. RECOVERY_FSTAB_VERSION := 2
  157. DEVICE_RESOLUTION := 540x960
  158. TW_FLASH_FROM_STORAGE := true
  159. BOARD_UMS_LUNFILE := /sys/devices/platform/msm_hsusb/gadget/lun0/file
  160. RECOVERY_SDCARD_ON_DATA := true
  161. TW_INTERNAL_STORAGE_PATH := "/sdcard"
  162. TW_INTERNAL_STORAGE_MOUNT_POINT := "sdcard"
  163. TW_EXTERNAL_STORAGE_PATH := "/external_SD"
  164. TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_SD"
  165. TW_DEFAULT_EXTERNAL_STORAGE := true
  166. TW_FLASH_FROM_STORAGE := true
  167. TARGET_USERIMAGES_USE_EXT4 := true
  168. TARGET_USERIMAGES_USE_F2FS := true
  169. BOARD_HAS_NO_SELECT_BUTTON := true
  170. BOARD_RECOVERY_SWIPE := true
  171. BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\"
  172. BOARD_SUPPRESS_EMMC_WIPE := true
  173. RECOVERY_GRAPHICS_USE_LINELENGTH := true
  174. HAVE_SELINUX := true
  175. TARGET_RECOVERY_QCOM_RTC_FIX := true
  176. TW_SCREEN_BLANK_ON_BOOT := true
  177. TW_NO_REBOOT_BOOTLOADER := true
  178. RECOVERY_SDCARD_ON_DATA := true
  179.  
  180. PRODUCT_COPY_FILES += device/lge/x5/rootdir/twrp.fstab:recovery/root/etc/twrp.fstab
  181.  
  182. BOARD_NFC_HAL_SUFFIX := x5
  183. BOARD_NFC_CHIPSET := pn547
  184.  
  185. # Some other custom variables
  186. TARGET_KERNEL_HAS_NFC := true
  187.  
  188. # SELinux
  189. BOARD_SEPOLICY_DIRS += \
  190.     device/lge/x5/sepolicy
  191.  
  192. BOARD_SEPOLICY_UNION += \
  193.     adbd.te \
  194.     app.te \
  195.     bluetooth_loader.te \
  196.     bridge.te \
  197.     camera.te \
  198.     device.te \
  199.     dhcp.te \
  200.     dnsmasq.te \
  201.     domain.te \
  202.     drmserver.te \
  203.     file_contexts \
  204.     file.te \
  205.     hostapd.te \
  206.     init_shell.te \
  207.     init.te \
  208.     libqc-opt.te \
  209.     mediaserver.te \
  210.     mpdecision.te \
  211.     netd.te \
  212.     netmgrd.te \
  213.     property_contexts \
  214.     property.te \
  215.     qcom.te \
  216.     qmux.te \
  217.     radio.te \
  218.     rild.te \
  219.     rmt.te \
  220.     sdcard_internal.te \
  221.     sdcardd.te \
  222.     sensors.te \
  223.     shell.te \
  224.     surfaceflinger.te \
  225.     system.te \
  226.     tee.te \
  227.     te_macros \
  228.     thermald.te \
  229.     ueventd.te \
  230.     vold.te \
  231.     wpa_supplicant.te \
  232.     zygote.te
  233.  
  234. ifeq ($(TARGET_KERNEL_HAS_NFC),true)
  235.  BOARD_SEPOLICY_UNION += nfc.te
  236. endif
  237.  
  238. ifneq ($(TARGET_BUILD_VARIANT),user)
  239.     BOARD_SEPOLICY_UNION += su.te
  240. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement