Guest User

BoardConfigCommon.mk

a guest
Aug 2nd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. #
  2. # Copyright (C) 2013-2015 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. TARGET_SPECIFIC_HEADER_PATH := device/lge/g2-common/include
  18.  
  19. # Architecture
  20. TARGET_ARCH := arm
  21. TARGET_ARCH_VARIANT := armv7-a-neon
  22. TARGET_BOARD_PLATFORM := msm8974
  23. TARGET_BOARD_PLATFORM_GPU := qcom-adreno330
  24. TARGET_CPU_ABI := armeabi-v7a
  25. TARGET_CPU_ABI2 := armeabi
  26. TARGET_CPU_VARIANT := krait
  27.  
  28. # Assertions
  29. TARGET_BOARD_INFO_FILE ?= device/lge/g2-common/board-info.txt
  30.  
  31. # Bootloader
  32. TARGET_BOOTLOADER_BOARD_NAME := galbi
  33. TARGET_NO_BOOTLOADER := true
  34. TARGET_NO_RADIOIMAGE := true
  35.  
  36. # Kernel
  37. BOARD_CUSTOM_BOOTIMG := true
  38. BOARD_CUSTOM_BOOTIMG_MK := device/lge/g2-common/releasetools/mkbootimg.mk
  39. BOARD_KERNEL_BASE := 0x00000000
  40. BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.hardware=g2 androidboot.bootdevice=msm_sdcc.1 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd selinux=0
  41. BOARD_KERNEL_PAGESIZE := 2048
  42. BOARD_KERNEL_SEPARATED_DT := true
  43. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x05000000 --tags_offset 0x04800000
  44. TARGET_KERNEL_SOURCE := kernel/lge/msm8974
  45.  
  46. # Audio
  47. AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true
  48. BOARD_USES_ALSA_AUDIO:= true
  49.  
  50. # Bluetooth
  51. BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/lge/g2-common/bluetooth
  52. BOARD_BLUEDROID_VENDOR_CONF := device/lge/g2-common/bluetooth/vnd_g2.txt
  53. BOARD_HAVE_BLUETOOTH := true
  54. BOARD_HAVE_BLUETOOTH_BCM := true
  55.  
  56. # Camera
  57. COMMON_GLOBAL_CFLAGS += -DLG_CAMERA_HARDWARE
  58. USE_DEVICE_SPECIFIC_CAMERA := true
  59.  
  60. # Charger
  61. BOARD_CHARGER_ENABLE_SUSPEND := true
  62. COMMON_GLOBAL_CFLAGS += \
  63. -DBOARD_CHARGING_CMDLINE_NAME='"androidboot.mode"' \
  64. -DBOARD_CHARGING_CMDLINE_VALUE='"chargerlogo"'
  65.  
  66. # CMHW
  67. BOARD_HARDWARE_CLASS := device/lge/g2-common/cmhw/
  68.  
  69. # Display
  70. HAVE_ADRENO_SOURCE := false
  71. MAX_EGL_CACHE_KEY_SIZE := 12*1024
  72. MAX_EGL_CACHE_SIZE := 2048*1024
  73. NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
  74. OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
  75. TARGET_USES_ION := true
  76. USE_OPENGL_RENDERER := true
  77.  
  78. # Fonts
  79. EXTENDED_FONT_FOOTPRINT := true
  80.  
  81. # Lights
  82. TARGET_PROVIDES_LIBLIGHT := true
  83.  
  84. # Partitions
  85. BOARD_FLASH_BLOCK_SIZE := 131072
  86. BOARD_BOOTIMAGE_PARTITION_SIZE := 23068672 # 22M
  87. BOARD_CACHEIMAGE_PARTITION_SIZE := 734003200 #700M
  88. BOARD_RECOVERYIMAGE_PARTITION_SIZE := 23068672 # 22M
  89. BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2684354560 # 2.5G (actually 2.75, but leave room for model variation)
  90. BOARD_USERDATAIMAGE_PARTITION_SIZE := 13725837312 # 12.8G (its much larger, but this is enough for now)
  91.  
  92. # Power
  93. TARGET_POWERHAL_VARIANT := qcom
  94.  
  95. # Qualcomm support
  96. BOARD_USES_QCOM_HARDWARE := true
  97. BOARD_USES_QC_TIME_SERVICES := true
  98.  
  99. # Recovery
  100. COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
  101. TARGET_RECOVERY_FSTAB = device/lge/g2-common/rootdir/etc/fstab.g2
  102. TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
  103. TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_g2
  104. TARGET_USERIMAGES_USE_EXT4 := true
  105. TARGET_USERIMAGES_USE_F2FS := true
  106.  
  107. # Releasetools
  108. TARGET_RELEASETOOLS_EXTENSIONS := device/lge/g2-common/releasetools
  109.  
  110. # RIL
  111. BOARD_RIL_CLASS := ../../../device/lge/g2-common/ril/
  112. TARGET_RELEASE_CPPFLAGS += -DNEEDS_LGE_RIL_SYMBOLS
  113.  
  114. # SELinux policies
  115. include device/qcom/sepolicy/sepolicy.mk
  116.  
  117. BOARD_SEPOLICY_DIRS += \
  118. device/lge/g2-common/sepolicy
  119.  
  120. # Wi-Fi
  121. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  122. WPA_SUPPLICANT_VERSION := VER_0_8_X
  123. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  124. BOARD_HOSTAPD_DRIVER := NL80211
  125. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd
  126. BOARD_WLAN_DEVICE := bcmdhd
  127. WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/bcmdhd/parameters/firmware_path"
  128. WIFI_DRIVER_FW_PATH_STA := "/system/etc/firmware/fw_bcmdhd.bin"
  129. WIFI_DRIVER_FW_PATH_AP := "/system/etc/firmware/fw_bcmdhd_apsta.bin"
Add Comment
Please, Sign In to add comment