* [DistroKit] [PATCH] v8a: add firmware nxp wifi package
@ 2026-01-20 8:59 Fabian Pfitzner
0 siblings, 0 replies; only message in thread
From: Fabian Pfitzner @ 2026-01-20 8:59 UTC (permalink / raw)
To: distrokit; +Cc: Fabian Pfitzner
Some NXP WiFi chips require additional firmware that is not contained in the
firmware-imx or linux-firmware package.
One of these chips is the iw612 WiFi chip, where the firmware is contained
in another repository [1].
Thus create a rule to install further firmware files from this
repository. As of now, install only the iw612 firmware.
Later we can add more if needed.
[1] https://github.com/nxp-imx/imx-firmware
Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
---
...er-parent-directories-for-INSTALLDIR.patch | 27 ++++++++
.../firmware-nxp-wifi-lf-6.6.52-2.2.2/series | 4 ++
.../platforms/firmware-nxp-wifi.in | 7 ++
.../platform-v8a/rules/firmware-nxp-wifi.make | 64 +++++++++++++++++++
4 files changed, 102 insertions(+)
create mode 100644 configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
create mode 100644 configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
create mode 100644 configs/platform-v8a/platforms/firmware-nxp-wifi.in
create mode 100644 configs/platform-v8a/rules/firmware-nxp-wifi.make
diff --git a/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
new file mode 100644
index 0000000..faf86ef
--- /dev/null
+++ b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
@@ -0,0 +1,27 @@
+From: Fabian Pfitzner <f.pfitzner@pengutronix.de>
+Date: Mon, 12 Jan 2026 16:24:23 +0100
+Subject: [PATCH] Makefile: consider parent directories for INSTALLDIR
+
+If INSTALLDIR contains more than one level of directories (e. g.
+"/lib/firmware/nxp"), it fails creating them.
+
+Add "-p" to mkdir in order to allow the creation of multiple directories.
+
+Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 8dff9dcd4a26..0f3b56712fa0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -21,7 +21,7 @@ INSTALLDIR ?= wlan_fw
+ install:
+
+ @if [ ! -d $(INSTALLDIR) ]; then \
+- mkdir $(INSTALLDIR); \
++ mkdir -p $(INSTALLDIR); \
+ fi
+
+ install -m 0644 nxp/wifi_mod_para.conf $(INSTALLDIR)/
diff --git a/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
new file mode 100644
index 0000000..eef9445
--- /dev/null
+++ b/configs/platform-v8a/patches/firmware-nxp-wifi-lf-6.6.52-2.2.2/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Makefile-consider-parent-directories-for-INSTALLDIR.patch
+# 5e0d82ee0cc435fde80b8039b70a9f72 - git-ptx-patches magic
diff --git a/configs/platform-v8a/platforms/firmware-nxp-wifi.in b/configs/platform-v8a/platforms/firmware-nxp-wifi.in
new file mode 100644
index 0000000..b7560ab
--- /dev/null
+++ b/configs/platform-v8a/platforms/firmware-nxp-wifi.in
@@ -0,0 +1,7 @@
+## SECTION=non_free_firmware
+
+config FIRMWARE_NXP_WIFI
+ tristate
+ prompt "firmware-nxp-wifi"
+ help
+ Install NXP WiFi firmware
diff --git a/configs/platform-v8a/rules/firmware-nxp-wifi.make b/configs/platform-v8a/rules/firmware-nxp-wifi.make
new file mode 100644
index 0000000..32e6b6d
--- /dev/null
+++ b/configs/platform-v8a/rules/firmware-nxp-wifi.make
@@ -0,0 +1,64 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Fabian Pfitzner <f.pfitzner@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_FIRMWARE_NXP_WIFI) += firmware-nxp-wifi
+
+#
+# Paths and names
+#
+FIRMWARE_NXP_WIFI_VERSION := lf-6.6.52-2.2.2
+FIRMWARE_NXP_WIFI_MD5 := c45d14303b23a2ae2870170a6289d0bb
+FIRMWARE_NXP_WIFI := firmware-nxp-wifi-$(FIRMWARE_NXP_WIFI_VERSION)
+FIRMWARE_NXP_WIFI_SUFFIX := tar.gz
+FIRMWARE_NXP_WIFI_URL := https://github.com/nxp-imx/imx-firmware/archive/refs/tags/$(FIRMWARE_NXP_WIFI_VERSION).$(FIRMWARE_NXP_WIFI_SUFFIX)
+FIRMWARE_NXP_WIFI_SOURCE := $(SRCDIR)/$(FIRMWARE_NXP_WIFI).$(FIRMWARE_NXP_WIFI_SUFFIX)
+FIRMWARE_NXP_WIFI_DIR := $(BUILDDIR)/$(FIRMWARE_NXP_WIFI)
+FIRMWARE_NXP_WIFI_LICENSE := NXP-Software-License-Agreement
+FIRMWARE_NXP_WIFI_LICENSE_FILES := \
+ file://LICENSE.txt;md5=ca53281cc0caa7e320d4945a896fb837
+
+FIRMWARE_NXP_WIFI_MAKE_ENV := \
+ INSTALLDIR=$(FIRMWARE_NXP_WIFI_PKGDIR)/lib/firmware/nxp
+
+FIRMWARE_NXP_WIFI_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/firmware-nxp-wifi.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/firmware-nxp-wifi.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, firmware-nxp-wifi)
+ @$(call install_fixup, firmware-nxp-wifi,PRIORITY,optional)
+ @$(call install_fixup, firmware-nxp-wifi,SECTION,base)
+ @$(call install_fixup, firmware-nxp-wifi,AUTHOR,"Fabian Pfitzner <f.pfitzner@pengutronix.de>")
+ @$(call install_fixup, firmware-nxp-wifi,DESCRIPTION,missing)
+
+ @$(call install_copy, firmware-nxp-wifi, 0, 0, 0755, \
+ $(FIRMWARE_NXP_WIFI_PKGDIR)/lib/firmware/nxp/sd_w61x_v1.bin.se, \
+ /lib/firmware/nxp/sd_w61x.bin)
+
+ @$(call install_finish, firmware-imx)
+
+ @$(call install_finish, firmware-nxp-wifi)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.47.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-20 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-20 8:59 [DistroKit] [PATCH] v8a: add firmware nxp wifi package Fabian Pfitzner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox