blob: a81145f28888140b21985ec211e0a5f8879cd95a [file] [log] [blame]
#
# Copyright 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
WLAN_BSP_SRC = hardware/bsp/qcom/peripheral/wifi/wcn3620
WLAN_BIN_SRC = vendor/bsp/qcom/device/dragonboard/linux_410c_board_support_package_LA.BR.1.2.4_rb1.10/etc/firmware/wlan/prima/
FIRMWARE_DST = system/vendor/firmware
# WiFi driver -- loaded by drivers/staging/prima.
WLAN_FIRMWARE_DST = $(FIRMWARE_DST)/wlan/prima
PRIMA_FILES = \
WCNSS_cfg.dat \
WCNSS_qcom_cfg.ini \
WCNSS_qcom_wlan_nv.bin \
WCNSS_wlan_dictionary.dat
PRIMA_COPY_FILES += \
$(join $(patsubst %, $(WLAN_BIN_SRC)/%, $(PRIMA_FILES)), $(patsubst %, :$(WLAN_FIRMWARE_DST)/%, $(PRIMA_FILES)))
PRODUCT_COPY_FILES += $(PRIMA_COPY_FILES)
WIFI_DRIVER_HAL_MODULE := wifi_driver.$(soc_name)
WIFI_DRIVER_HAL_PERIPHERAL := wcn3620
BOARD_SEPOLICY_DIRS += $(WLAN_BSP_SRC)/sepolicy