M7350/oe-core/meta-msm/recipes/wlan/wlan-opensource_git.bb

55 lines
1.7 KiB
BlitzBasic
Raw Permalink Normal View History

2024-09-09 08:57:42 +00:00
inherit module
DESCRIPTION = "Qualcomm Atheros WLAN Host Driver Module"
SECTION = "kernel/modules"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
LICENSE = "BSD"
FILES_${PN} += "${base_libdir}/modules/${KERNEL_VERSION}/extra/wlan.ko"
do_unpack[deptask] = "do_populate_sysroot"
PR = "r2-${KERNEL_VERSION}"
DEPENDS = "virtual/kernel wireless-tools"
FILESPATH =+ "${WORKSPACE}:"
SRC_URI = "file://qcom-opensource/wlan/prima"
S = "${WORKDIR}/qcom-opensource/prima"
EXTRA_OEMAKE += "CONFIG_PRONTO_WLAN=m \
KERNEL_BUILD=1"
PACKAGES += "kernel-module-wlan"
do_compile () {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC CPP LD
oe_runmake 'MODPATH="${base_libdir}/modules/wlan/prima"' \
'KERNEL_SOURCE="${STAGING_KERNEL_DIR}"' \
'KDIR="${STAGING_KERNEL_DIR}"' \
'CC="${KERNEL_CC}"' \
'LD="${KERNEL_LD}"' \
'WLAN_DIR="${S}"'
}
do_install () {
module_do_install
install -m 0644 CORE/SVC/external/wlan_nlink_common.h -D ${D}${includedir}/prima/wlan_nlink_common.h
}
# Remove dependency for wrong kernel version
python split_kernel_module_packages_append() {
if modules:
metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE', True)
d.delVar('RDEPENDS_' + metapkg)
d.delVar('RDEPENDS_kernel-module-wlan')
}
do_module_signing() {
if [ -f ${STAGING_KERNEL_BUILDDIR}/signing_key.priv ]; then
${STAGING_KERNEL_DIR}/scripts/sign-file sha512 ${STAGING_KERNEL_BUILDDIR}/signing_key.priv ${STAGING_KERNEL_BUILDDIR}/signing_key.x509 ${PKGDEST}/${PN}/${base_libdir}/modules/${KERNEL_VERSION}/extra/wlan.ko
fi
}
addtask module_signing after do_package before do_package_write_ipk