Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 1 | FORCE_32_BIT := true |
| 2 | |
| 3 | -include vendor/samsung/gprimeltecan/BoardConfigVendor.mk |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 4 | |
| 5 | LOCAL_PATH := device/samsung/gprimeltecan |
| 6 | |
| 7 | # Inherit from common |
| 8 | -include device/samsung/qcom-common/BoardConfigCommon.mk |
| 9 | |
| 10 | TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include |
| 11 | |
| 12 | # ANT+ |
| 13 | BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease" |
| 14 | |
| 15 | # Platform |
| 16 | TARGET_ARCH := arm |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 17 | TARGET_BOARD_PLATFORM := msm8916 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 18 | TARGET_CPU_ABI := armeabi-v7a |
| 19 | TARGET_CPU_ABI2 := armeabi |
| 20 | TARGET_ARCH_VARIANT := armv7-a-neon |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 21 | TARGET_BOARD_PLATFORM_GPU := qcom-adreno306 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 22 | #ARCH_ARM_HAVE_TLS_REGISTER := true |
| 23 | |
| 24 | # Architecture |
| 25 | TARGET_CPU_SMP := true |
| 26 | TARGET_CPU_VARIANT := cortex-a53 |
| 27 | TARGET_GLOBAL_CFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 28 | TARGET_GLOBAL_CPPFLAGS += -mfpu=neon -mfloat-abi=softfp |
| 29 | |
| 30 | # Audio |
| 31 | AUDIO_FEATURE_LOW_LATENCY_PRIMARY := true |
| 32 | BOARD_USES_ALSA_AUDIO := true |
| 33 | |
| 34 | # Asserts |
Zvikomborero VIncent Zvikaramba | eb9334e | 2016-08-19 11:13:11 -0400 | [diff] [blame] | 35 | TARGET_OTA_ASSERT_DEVICE := gprimeltecan,gprimeltevl,samsung_sm_g530w,g530w |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 36 | |
| 37 | # Bluetooth |
| 38 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth |
| 39 | BOARD_HAVE_BLUETOOTH := true |
| 40 | BOARD_HAVE_BLUETOOTH_QCOM := true |
| 41 | BLUETOOTH_HCI_USE_MCT := true |
| 42 | |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 43 | # Custom RIL class |
Zvikomborero VIncent Zvikaramba | 46818ce | 2016-07-25 19:59:57 -0400 | [diff] [blame] | 44 | BOARD_RIL_CLASS := ../../../device/samsung/gprimeltecan/ril |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 45 | PROTOBUF_SUPPORTED := true |
| 46 | |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 47 | # Bootloader |
| 48 | TARGET_BOOTLOADER_BOARD_NAME := MSM8916 |
| 49 | |
| 50 | # Camera |
| 51 | TARGET_USE_VENDOR_CAMERA_EXT := true |
Zvikomborero VIncent Zvikaramba | 323d316 | 2016-07-25 03:15:09 -0400 | [diff] [blame] | 52 | TARGET_PROVIDES_CAMERA_HAL := true |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 53 | USE_DEVICE_SPECIFIC_CAMERA := true |
| 54 | |
| 55 | # Charger |
Zvikomborero VIncent Zvikaramba | a695580 | 2016-08-18 13:51:49 -0400 | [diff] [blame] | 56 | BOARD_CHARGER_ENABLE_SUSPEND := true |
Zvikomborero VIncent Zvikaramba | 081e3a0 | 2016-07-26 06:07:53 -0400 | [diff] [blame] | 57 | BOARD_CHARGER_SHOW_PERCENTAGE := true |
Zvikomborero VIncent Zvikaramba | a695580 | 2016-08-18 13:51:49 -0400 | [diff] [blame] | 58 | BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging |
| 59 | |
| 60 | # Enable QCOM FM feature |
Zvikomborero VIncent Zvikaramba | bb189a9 | 2016-08-18 21:18:15 -0400 | [diff] [blame] | 61 | AUDIO_FEATURE_ENABLED_FM := true |
| 62 | BOARD_HAVE_QCOM_FM := true |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 63 | |
Zvikomborero VIncent Zvikaramba | 50c5cb3 | 2016-07-23 01:50:09 -0400 | [diff] [blame] | 64 | #sec_s3fwrn5 <- NFC HAL |
| 65 | |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 66 | # CMHW |
| 67 | BOARD_HARDWARE_CLASS += $(LOCAL_PATH)/cmhw |
| 68 | |
| 69 | # Crypto |
| 70 | TARGET_HW_DISK_ENCRYPTION := true |
| 71 | |
| 72 | # default.prop |
| 73 | ADDITIONAL_DEFAULT_PROPERTIES += \ |
| 74 | camera2.portability.force_api=1 |
| 75 | |
| 76 | # Display |
| 77 | MAX_EGL_CACHE_KEY_SIZE := 12*1024 |
| 78 | MAX_EGL_CACHE_SIZE := 2048*1024 |
| 79 | NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 |
Zvikomborero Vincent Zvikaramba | 94239f9 | 2016-07-28 03:48:03 -0400 | [diff] [blame] | 80 | OVERRIDE_RS_DRIVER := libRSDriver.so |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 81 | TARGET_CONTINUOUS_SPLASH_ENABLED := true |
| 82 | TARGET_HAVE_NEW_GRALLOC := true |
| 83 | |
| 84 | # Encryption |
| 85 | TARGET_SWV8_DISK_ENCRYPTION := true |
| 86 | |
| 87 | # FM |
| 88 | AUDIO_FEATURE_ENABLED_FM := true |
| 89 | TARGET_QCOM_NO_FM_FIRMWARE := true |
| 90 | |
| 91 | # Fonts |
| 92 | EXTENDED_FONT_FOOTPRINT := true |
| 93 | |
| 94 | # GPS |
Vincent Zvikaramba | fe30ac6 | 2016-07-27 12:08:03 -0400 | [diff] [blame] | 95 | #TARGET_GPS_HAL_PATH := $(LOCAL_PATH)/gps |
| 96 | #TARGET_NO_RPC := true |
Zvikomborero VIncent Zvikaramba | 46818ce | 2016-07-25 19:59:57 -0400 | [diff] [blame] | 97 | |
Zvikomborero VIncent Zvikaramba | d9b888a | 2016-08-18 13:51:47 -0400 | [diff] [blame] | 98 | # Healthd |
| 99 | BOARD_HAL_STATIC_LIBRARIES := libhealthd.qcom |
| 100 | |
Zvikomborero VIncent Zvikaramba | c313e05 | 2016-08-10 12:57:35 -0400 | [diff] [blame] | 101 | #ART |
Zvikomborero VIncent Zvikaramba | cd0cc55 | 2016-08-10 16:18:52 -0400 | [diff] [blame] | 102 | #WITH_DEXPREOPT := true |
Zvikomborero VIncent Zvikaramba | c313e05 | 2016-08-10 12:57:35 -0400 | [diff] [blame] | 103 | |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 104 | # Init |
| 105 | TARGET_INIT_VENDOR_LIB := libinit_msm |
| 106 | TARGET_LIBINIT_DEFINES_FILE := $(LOCAL_PATH)/init/init_gprimeltecan.cpp |
| 107 | TARGET_PLATFORM_DEVICE_BASE := /devices/soc.0/ |
| 108 | TARGET_UNIFIED_DEVICE := true |
| 109 | TARGET_PROVIDES_INIT_RC := true |
| 110 | |
| 111 | # Kernel |
| 112 | BOARD_CUSTOM_BOOTIMG_MK := $(LOCAL_PATH)/mkbootimg.mk |
| 113 | BOARD_KERNEL_BASE := 0x80000000 |
Vincent Zvikaramba | fe30ac6 | 2016-07-27 12:08:03 -0400 | [diff] [blame] | 114 | BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=23 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 115 | BOARD_KERNEL_PAGESIZE := 2048 |
| 116 | BOARD_KERNEL_SEPARATED_DT := true |
| 117 | BOARD_KERNEL_TAGS_OFFSET := 0x01E00000 |
| 118 | BOARD_RAMDISK_OFFSET := 0x02000000 |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 119 | TARGET_KERNEL_CONFIG := msm8916_sec_defconfig |
| 120 | TARGET_KERNEL_VARIANT_CONFIG := msm8916_sec_fortuna_can_defconfig |
| 121 | TARGET_KERNEL_SELINUX_CONFIG := selinux_defconfig |
| 122 | TARGET_KERNEL_SELINUX_LOG_CONFIG := selinux_log_defconfig |
Zvikomborero VIncent Zvikaramba | 11a048c | 2016-08-13 23:53:29 -0400 | [diff] [blame] | 123 | TARGET_KERNEL_SOURCE := kernel/samsung/grandprime |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 124 | |
| 125 | # Lights |
Zvikomborero VIncent Zvikaramba | 50c5cb3 | 2016-07-23 01:50:09 -0400 | [diff] [blame] | 126 | TARGET_PROVIDES_LIBLIGHT := false |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 127 | |
| 128 | # malloc implementation |
| 129 | MALLOC_IMPL := dlmalloc |
| 130 | |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 131 | # Partition sizes |
| 132 | TARGET_USERIMAGES_USE_EXT4 := true |
| 133 | BOARD_BOOTIMAGE_PARTITION_SIZE := 13631488 |
| 134 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 15728640 |
| 135 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2359296000 |
| 136 | BOARD_SYSTEMIMAGE_PARTITION_TPE := ext4 |
| 137 | BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800 |
| 138 | BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 |
| 139 | BOARD_PERSISTIMAGE_PARTITION_SIZE := 8388608 |
| 140 | BOARD_PERSISTIMAGE_FILE_SYSTEM_TYPE := ext4 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 141 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 4942966784 |
| 142 | BOARD_FLASH_BLOCK_SIZE := 131072 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 143 | |
| 144 | # Power |
| 145 | TARGET_POWERHAL_VARIANT := qcom |
Zvikomborero VIncent Zvikaramba | a695580 | 2016-08-18 13:51:49 -0400 | [diff] [blame] | 146 | #CM_POWERHAL_EXTENSION := qcom |
| 147 | |
| 148 | # Media |
| 149 | TARGET_QCOM_MEDIA_VARIANT := caf |
| 150 | TARGET_ENABLE_QC_AV_ENHANCEMENTS := true |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 151 | |
| 152 | # Qualcomm support |
| 153 | TARGET_USES_QCOM_BSP := true |
| 154 | COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_BSP |
Zvikomborero VIncent Zvikaramba | d9b888a | 2016-08-18 13:51:47 -0400 | [diff] [blame] | 155 | #HAVE_SYNAPTICS_I2C_RMI4_FW_UPGRADE := true |
| 156 | #USE_DEVICE_SPECIFIC_QCOM_PROPRIETARY := true |
| 157 | #TARGET_USES_NEW_ION_API := true |
| 158 | |
| 159 | #Includes |
| 160 | TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 161 | |
| 162 | # Recovery |
| 163 | BOARD_USE_CUSTOM_RECOVERY_FONT := \"roboto_15x24.h\" |
| 164 | BOARD_SUPPRESS_EMMC_WIPE := true |
| 165 | TARGET_RECOVERY_PIXEL_FORMAT := ABGR_8888 |
| 166 | TARGET_RECOVERY_QCOM_RTC_FIX := true |
| 167 | TARGET_USERIMAGES_USE_EXT4 := true |
Vincent Zvikaramba | fe30ac6 | 2016-07-27 12:08:03 -0400 | [diff] [blame] | 168 | TARGET_USERIMAGES_USE_F2FS := false |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 169 | |
| 170 | # RIL |
| 171 | TARGET_RIL_VARIANT := caf |
Zvikomborero VIncent Zvikaramba | d8c6066 | 2016-07-26 01:29:33 -0400 | [diff] [blame] | 172 | #override to enable audio. |
Zvikomborero VIncent Zvikaramba | 081e3a0 | 2016-07-26 06:07:53 -0400 | [diff] [blame] | 173 | BOARD_PROVIDES_LIBRIL := false |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 174 | |
| 175 | # SELinux |
| 176 | include device/qcom/sepolicy/sepolicy.mk |
Zvikomborero VIncent Zvikaramba | 8b4bdcb | 2016-07-22 01:42:16 -0400 | [diff] [blame] | 177 | include vendor/cm/sepolicy/sepolicy.mk |
| 178 | include vendor/cm/sepolicy/qcom/sepolicy.mk |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 179 | |
| 180 | BOARD_SEPOLICY_DIRS += \ |
| 181 | device/samsung/gprimeltecan/sepolicy |
| 182 | |
| 183 | BOARD_SEPOLICY_UNION += \ |
Zvikomborero VIncent Zvikaramba | 07a989e | 2016-08-19 03:48:37 -0400 | [diff] [blame] | 184 | audiod.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 185 | ueventd.te \ |
| 186 | file.te \ |
| 187 | shell.te \ |
| 188 | surfaceflinger.te \ |
Zvikomborero VIncent Zvikaramba | 112c12b | 2016-08-19 02:57:37 -0400 | [diff] [blame] | 189 | bluetooth.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 190 | bluetooth_loader.te \ |
| 191 | wcnss_service.te \ |
| 192 | healthd.te \ |
Zvikomborero VIncent Zvikaramba | 112c12b | 2016-08-19 02:57:37 -0400 | [diff] [blame] | 193 | kernel.te \ |
| 194 | property.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 195 | rild.te \ |
| 196 | qseecomd.te \ |
| 197 | system_server.te \ |
| 198 | time_daemon.te \ |
| 199 | sysinit.te \ |
Zvikomborero VIncent Zvikaramba | 112c12b | 2016-08-19 02:57:37 -0400 | [diff] [blame] | 200 | system_app.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 201 | mm-qcamerad.te \ |
| 202 | file_contexts \ |
| 203 | init_shell.te \ |
Zvikomborero VIncent Zvikaramba | ec0cfbc | 2016-07-26 01:48:40 -0400 | [diff] [blame] | 204 | init.te \ |
Zvikomborero VIncent Zvikaramba | 541d5a2 | 2016-07-26 02:55:00 -0400 | [diff] [blame] | 205 | lkmd.te \ |
| 206 | qmuxd.te \ |
| 207 | rfs_access.te \ |
| 208 | rmt_storage.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 209 | keystore.te \ |
| 210 | perfd.te \ |
| 211 | mediaserver.te \ |
Zvikomborero VIncent Zvikaramba | 112c12b | 2016-08-19 02:57:37 -0400 | [diff] [blame] | 212 | vold.te \ |
Zvikomborero VIncent Zvikaramba | 3927d12 | 2016-08-21 22:49:17 -0400 | [diff] [blame^] | 213 | smdexe.te \ |
| 214 | sec-ril.te \ |
| 215 | radio.te \ |
| 216 | qmuxd.te \ |
| 217 | qmiproxy.te \ |
| 218 | mtp.te \ |
| 219 | otp_server.te \ |
| 220 | mediaserver.te \ |
| 221 | cs.te \ |
| 222 | ddexe.te \ |
| 223 | insthk.te \ |
| 224 | at_distributor.te \ |
| 225 | connfwexe.te \ |
| 226 | ftm_ptt.te \ |
| 227 | ss_conn_daemon.te \ |
| 228 | wlandutservice.te \ |
Zvikomborero VIncent Zvikaramba | a4ae2bf | 2016-07-25 00:41:06 -0400 | [diff] [blame] | 229 | property_contexts |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 230 | |
| 231 | # Time services |
| 232 | BOARD_USES_QC_TIME_SERVICES := true |
| 233 | |
| 234 | # TWRP |
| 235 | #RECOVERY_VARIANT := twrp |
| 236 | BOARD_HAS_LARGE_FILESYSTEM := true |
| 237 | BOARD_HAS_NO_SELECT_BUTTON := true |
| 238 | BOARD_SUPPRESS_SECURE_ERASE := true |
| 239 | RECOVERY_GRAPHICS_USE_LINELENGTH := true |
| 240 | RECOVERY_SDCARD_ON_DATA := true |
| 241 | TW_BRIGHTNESS_PATH := "/sys/class/leds/lcd-backlight/brightness" |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 242 | TW_MAX_BRIGHTNESS := 255 |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 243 | TW_HAS_DOWNLOAD_MODE := true |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 244 | TW_HAS_MTP := true |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 245 | TW_INCLUDE_CRYPTO := true |
| 246 | TW_INPUT_BLACKLIST := "accelerometer" |
| 247 | TW_INTERNAL_STORAGE_PATH := "/data/media/0" |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 248 | TW_MTP_DEVICE := /dev/usb_mtp_gadget |
| 249 | TW_NEW_ION_HEAP := true |
| 250 | TW_NO_REBOOT_BOOTLOADER := true |
| 251 | TW_NO_SCREEN_TIMEOUT := true |
| 252 | TW_NO_USB_STORAGE := true |
| 253 | TW_TARGET_USES_QCOM_BSP := true |
| 254 | TW_THEME := portrait_hdpi |
| 255 | ifeq ($(TW),) |
| 256 | TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery.fstab |
| 257 | else |
| 258 | TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/twrp.fstab |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 259 | endif |
| 260 | |
| 261 | # Vold |
| 262 | BOARD_VOLD_DISC_HAS_MULTIPLE_MAJORS := true |
| 263 | BOARD_VOLD_MAX_PARTITIONS := 67 |
| 264 | TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file |
| 265 | |
| 266 | # Wifi |
Zvikomborero VIncent Zvikaramba | d6daffd | 2016-08-03 21:54:18 -0400 | [diff] [blame] | 267 | WLAN_CHIPSET := pronto |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 268 | BOARD_HAS_QCOM_WLAN := true |
| 269 | BOARD_HAS_QCOM_WLAN_SDK := true |
| 270 | BOARD_HAVE_SAMSUNG_WIFI := true |
| 271 | BOARD_HOSTAPD_DRIVER := NL80211 |
| 272 | BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_qcwcn |
| 273 | BOARD_WLAN_DEVICE := qcwcn |
| 274 | BOARD_WPA_SUPPLICANT_DRIVER := NL80211 |
| 275 | BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_qcwcn |
| 276 | TARGET_USES_QCOM_WCNSS_QMI := true |
| 277 | TARGET_USES_WCNSS_CTRL := true |
| 278 | WIFI_DRIVER_FW_PATH_AP := "ap" |
| 279 | WIFI_DRIVER_FW_PATH_STA := "sta" |
| 280 | WPA_SUPPLICANT_VERSION := VER_0_8_X |
Zvikomborero VIncent Zvikaramba | d6daffd | 2016-08-03 21:54:18 -0400 | [diff] [blame] | 281 | WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/wlan.ko" |
| 282 | WIFI_DRIVER_MODULE_NAME := "wlan" |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 283 | |
| 284 | # inherit from the proprietary version |
| 285 | -include vendor/samsung/gprimeltecan/BoardConfigVendor.mk |
Zvikomborero VIncent Zvikaramba | d6daffd | 2016-08-03 21:54:18 -0400 | [diff] [blame] | 286 | |
| 287 | #make, move, symlink and strip the wlan kernel module. |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 288 | KERNEL_EXTERNAL_MODULES: |
Zvikomborero VIncent Zvikaramba | 69fbcf2 | 2016-08-19 01:19:52 -0400 | [diff] [blame] | 289 | +$(MAKE) -C device/samsung/$(TARGET_DEVICE)/wlan/prima/ WLAN_ROOT=$(ANDROID_BUILD_TOP)/device/samsung/$(TARGET_DEVICE)/wlan/prima/ \ |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 290 | KERNEL_SOURCE=$(KERNEL_OUT) ARCH="arm" \ |
| 291 | CROSS_COMPILE="arm-eabi-" |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 292 | mkdir $(KERNEL_MODULES_OUT)/$(WLAN_CHIPSET)/ -p |
| 293 | ln -sf /system/lib/modules/$(WLAN_CHIPSET)/$(WLAN_CHIPSET)_wlan.ko $(TARGET_OUT)/lib/modules/wlan.ko |
Zvikomborero VIncent Zvikaramba | 69fbcf2 | 2016-08-19 01:19:52 -0400 | [diff] [blame] | 294 | mv device/samsung/$(TARGET_DEVICE)/wlan/prima/wlan.ko $(KERNEL_MODULES_OUT)/$(WLAN_CHIPSET)/$(WLAN_CHIPSET)_wlan.ko |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 295 | arm-eabi-strip --strip-debug $(KERNEL_MODULES_OUT)/$(WLAN_CHIPSET)/$(WLAN_CHIPSET)_wlan.ko |
Zvikomborero VIncent Zvikaramba | 69fbcf2 | 2016-08-19 01:19:52 -0400 | [diff] [blame] | 296 | +$(MAKE) -C device/samsung/$(TARGET_DEVICE)/wlan/prima/ clean |
Zvikomborero VIncent Zvikaramba | 4c44368 | 2016-08-12 09:35:35 -0400 | [diff] [blame] | 297 | TARGET_KERNEL_MODULES := KERNEL_EXTERNAL_MODULES |