PageRenderTime 24ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/BoardConfigCommon.mk

https://gitlab.com/SOKP/device_samsung_klte-common
Makefile | 102 lines | 56 code | 18 blank | 28 comment | 0 complexity | 6d09d595f7c8d545f08321d99034c30d MD5 | raw file
  1. # Copyright (C) 2014 The CyanogenMod Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # inherit from common msm8974
  15. -include device/samsung/msm8974-common/BoardConfigCommon.mk
  16. LOCAL_PATH := device/samsung/klte-common
  17. TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
  18. # Bootloader
  19. TARGET_BOOTLOADER_BOARD_NAME := MSM8974
  20. # Kernel
  21. BOARD_KERNEL_BASE := 0x00000000
  22. BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 androidboot.selinux=permissive
  23. BOARD_KERNEL_PAGESIZE := 2048
  24. BOARD_KERNEL_SEPARATED_DT := true
  25. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01e00000
  26. TARGET_KERNEL_CONFIG := msm8974_sec_defconfig
  27. TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig
  28. TARGET_KERNEL_SOURCE := kernel/samsung/klte
  29. # Audio
  30. BOARD_HAVE_NEW_QCOM_CSDCLIENT := true
  31. AUDIO_FEATURE_DISABLED_ANC_HEADSET := true
  32. AUDIO_FEATURE_DISABLED_FM := true
  33. AUDIO_FEATURE_DISABLED_MULTI_VOICE_SESSIONS := true
  34. AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true
  35. # Bluetooth
  36. BOARD_BLUEDROID_VENDOR_CONF := $(LOCAL_PATH)/bluetooth/vnd_klte.txt
  37. BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
  38. BOARD_BLUETOOTH_USES_HCIATTACH_PROPERTY := false
  39. BOARD_HAVE_BLUETOOTH_BCM := true
  40. # Camera
  41. BOARD_USES_LEGACY_MMAP := true
  42. USE_DEVICE_SPECIFIC_CAMERA := true
  43. # CMHW
  44. BOARD_HARDWARE_CLASS += device/samsung/klte-common/cmhw
  45. BOARD_HARDWARE_CLASS += hardware/samsung/cmhw
  46. # Lights
  47. TARGET_PROVIDES_LIBLIGHT := true
  48. # Partitions
  49. BOARD_FLASH_BLOCK_SIZE := 131072
  50. TARGET_USERIMAGES_USE_EXT4 := true
  51. # Power HAL
  52. TARGET_POWERHAL_SET_INTERACTIVE_EXT := $(LOCAL_PATH)/power/power_ext.c
  53. TARGET_POWERHAL_VARIANT := qcom
  54. # Radio
  55. BOARD_RIL_CLASS := ../../../device/samsung/klte-common/ril
  56. # Recovery
  57. BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/samsung/klte-common/recovery/recovery_keys.c
  58. BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_23x41.h\"
  59. BOARD_USES_MMCUTILS := true
  60. BOARD_HAS_LARGE_FILESYSTEM := true
  61. BOARD_HAS_NO_MISC_PARTITION := true
  62. BOARD_HAS_NO_SELECT_BUTTON := true
  63. BOARD_RECOVERY_SWIPE := true
  64. TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom
  65. # SELinux
  66. -include device/qcom/sepolicy/sepolicy.mk
  67. BOARD_SEPOLICY_DIRS += \
  68. device/samsung/klte-common/sepolicy
  69. # Wifi
  70. BOARD_HAVE_SAMSUNG_WIFI := true
  71. BOARD_WLAN_DEVICE := bcmdhd
  72. BOARD_HOSTAPD_DRIVER := NL80211
  73. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
  74. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  75. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
  76. WPA_SUPPLICANT_VERSION := VER_0_8_X
  77. WIFI_BAND := 802_11_ABG
  78. WIFI_DRIVER_MODULE_ARG := "firmware_path=/system/etc/wifi/bcmdhd_sta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
  79. WIFI_DRIVER_MODULE_AP_ARG := "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt"
  80. WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
  81. WIFI_DRIVER_FW_PATH_STA := "/system/etc/wifi/bcmdhd_sta.bin"
  82. WIFI_DRIVER_FW_PATH_AP := "/system/etc/wifi/bcmdhd_apsta.bin"
  83. # inherit from the proprietary version
  84. -include vendor/samsung/klte-common/BoardConfigVendor.mk