From dd44e16fdfaf8cb4cdec7167f2ebd46540df2908 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 3 Dec 2024 20:01:54 -0800 Subject: [PATCH] Add recipe for nxp-wlan-sdk Import from meta-nxp, since we only need this one recipe no need to add full layer. Signed-off-by: Khem Raj --- .../nxp-wlan-sdk/nxp-wlan-sdk_git.bb | 23 +++++++++++++++++++ .../nxp-wlan-sdk/nxp-wlan-sdk_git.inc | 15 ++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb create mode 100644 sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.inc diff --git a/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb b/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb new file mode 100644 index 000000000..50d5bd0c5 --- /dev/null +++ b/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.bb @@ -0,0 +1,23 @@ +require nxp-wlan-sdk_git.inc + +SUMMARY = "NXP Wi-Fi SDK" + +inherit module-base + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_compile () { + oe_runmake build +} + +do_install () { + install -d ${D}${datadir}/nxp_wireless + + install -m 0755 script/load ${D}${datadir}/nxp_wireless + install -m 0755 script/unload ${D}${datadir}/nxp_wireless + install -m 0644 README ${D}${datadir}/nxp_wireless +} + +FILES:${PN} = "${datadir}/nxp_wireless" + +COMPATIBLE_MACHINE = "(imx-nxp-bsp)" diff --git a/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.inc b/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.inc new file mode 100644 index 000000000..b4a2fa73c --- /dev/null +++ b/sources/meta-yoe/dynamic-layers/variscite-bsp/recipes-connectivity/nxp-wlan-sdk/nxp-wlan-sdk_git.inc @@ -0,0 +1,15 @@ +SUMMARY = "NXP Wi-Fi SDK for module 88w8801/8987/8997/9098 and IW416/612" +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=ab04ac0f249af12befccb94447c08b77" + +# For Kernel 5.4 and later +SRCBRANCH = "lf-6.1.36_2.1.0" +MRVL_SRC ?= "git://github.com/nxp-imx/mwifiex.git;protocol=https" +SRC_URI = "${MRVL_SRC};branch=${SRCBRANCH}" +SRCREV = "26246bf60afa613272156fa268e4ff99f5d810ae" + +S = "${WORKDIR}/git/mxm_wifiex/wlan_src" + +EXTRA_OEMAKE = "KERNELDIR=${STAGING_KERNEL_BUILDDIR}" + +RDEPENDS:${PN} = "wireless-tools"