Skip to content
Snippets Groups Projects
Commit 8c074096 authored by Sudheer Divakaran's avatar Sudheer Divakaran Committed by Suhas Kunnath
Browse files

[recipes-kernel] Add qca9377 driver in build system

parent 17940df4
No related branches found
No related tags found
No related merge requests found
diff -Nru a/net/wireless/db.txt b/net/wireless/db.txt
--- a/net/wireless/db.txt 2018-04-12 14:41:21.000000000 +0530
+++ b/net/wireless/db.txt 2018-04-12 16:06:33.783763364 +0530
@@ -138,26 +138,14 @@
# Bulgarian rules as defined by the Communications Regulation Commission in the
# following documents:
- #
--# This file is a placeholder to prevent accidental build breakage if someone
--# enables CONFIG_CFG80211_INTERNAL_REGDB. Almost no one actually needs to
--# enable that build option.
# Rules for carrying out electronic communications through radio equipment using
# radio spectrum, which does not need to be individually assigned (the Rules):
# http://www.crc.bg/files/_bg/Pravila_09_06_2015.pdf
#
--# You should be using CRDA instead. It is even better if you use the CRDA
--# package provided by your distribution, since they will probably keep it
--# up-to-date on your behalf.
# List of radio equipment that uses harmonized within the European Union bands
# and electronic communications terminal equipment (the List):
# http://www.crc.bg/files/_bg/Spisak_2015.pdf
#
--# If you _really_ intend to use CONFIG_CFG80211_INTERNAL_REGDB then you will
--# need to replace this file with one containing appropriately formatted
--# regulatory rules that cover the regulatory domains you will be using. Your
--# best option is to extract the db.txt file from the wireless-regdb git
--# repository:
# Note: The transmit power limits in the 5250-5350 MHz and 5470-5725 MHz bands
# can be raised by 3 dBm if TPC is enabled. Refer to BDS EN 301 893 for details.
country BG: DFS-ETSI
@@ -340,7 +328,6 @@
# Networks (WLAN-Funkanwendungen).
# https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Frequenzen/Allgemeinzuteilungen/2013_10_WLAN_2,4GHz_pdf.pdf
#
--# git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-regdb.git
# Allocation for the 5 GHz band (Vfg. 7 / 2010, Allgemeinzuteilung von
# Frequenzen in den Bereichen 5150 MHz - 5350 MHz und 5470 MHz - 5725 MHz für
# Funkanwendungen zur breitbandigen Datenübertragung, WAS/WLAN („Wireless
File added
SUMMARY = "Qualcomm WiFi driver module for QCA9377, compatible with 4.1 kernel"
LICENSE = "BSD & GPLv2"
LIC_FILES_CHKSUM = "file://lib/firmware/Notice.txt;md5=0b3b35dcd2866892155bbaf0d3cafdce"
inherit module
SRC_URI = "file://4.5.22.7.tar.gz"
S = "${WORKDIR}/4.5.22.7"
EXTRA_OEMAKE += "CONFIG_CLD_HL_SDIO_CORE=y CONFIG_FEATURE_COEX_PTA_CONFIG_ENABLE=y"
do_install() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \
CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
O=${STAGING_KERNEL_BUILDDIR} \
${MODULES_INSTALL_TARGET}
install -d -m0755 ${D}${includedir}/${BPN}
cp -a --no-preserve=ownership ${B}/Module.symvers ${D}${includedir}/${BPN}
# it doesn't actually seem to matter which path is specified here
sed -e 's:${B}/::g' -i ${D}${includedir}/${BPN}/Module.symvers
install -d ${D}/lib/firmware/wlan
install -m 0444 lib/firmware/wlan/qcom_cfg.ini ${D}/lib/firmware/wlan/
install -m 0444 lib/firmware/bdwlan30.bin ${D}/lib/firmware/
install -m 0444 lib/firmware/nvm_tlv_tf_1.1.bin ${D}/lib/firmware/
install -m 0444 lib/firmware/otp30.bin ${D}/lib/firmware/
install -m 0444 lib/firmware/qwlan30.bin ${D}/lib/firmware/
install -m 0444 lib/firmware/rampatch_tlv_tf_1.1.tlv ${D}/lib/firmware/
}
FILES_${PN} += " \
${base_libdir}/firmware/nvm_tlv_tf_1.1.bin \
${base_libdir}/firmware/otp30.bin \
${base_libdir}/firmware/rampatch_tlv_tf_1.1.tlv \
${base_libdir}/firmware/qwlan30.bin \
${base_libdir}/firmware/bdwlan30.bin \
${base_libdir}/firmware/wlan/qcom_cfg.ini \
"
......@@ -11,6 +11,7 @@ IMAGE_INSTALL_append += " \
i2c-tools \
linux-firmware-ar3k \
kernel-modules \
kernel-module-qca9377 \
kernel-module-qcacld \
mtd-utils \
ntp \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment