Index | Thread | Search

From:
Kevin Lo <kevlo@kevlo.org>
Subject:
Add firmware for QCA2066
To:
ports@openbsd.org
Cc:
Peter Hessler <phessler@openbsd.org>
Date:
Thu, 27 Mar 2025 16:08:16 +0800

Download raw body.

Thread
The diff below adds firmware for qca2066.
ok?

Index: sysutils/firmware/qwx/Makefile
===================================================================
RCS file: /cvs/ports/sysutils/firmware/qwx/Makefile,v
retrieving revision 1.4
diff -u -p -u -p -r1.4 Makefile
--- sysutils/firmware/qwx/Makefile	11 Sep 2024 07:45:34 -0000	1.4
+++ sysutils/firmware/qwx/Makefile	22 Oct 2024 05:59:30 -0000
@@ -1,6 +1,7 @@
 FW_DRIVER=	qwx

 FW_VER=		20240909
+REVISION=	0

 DISTNAME=	linux-firmware-${FW_VER}
 EXTRACT_SUFX=	.tar.xz
@@ -15,22 +16,28 @@ HOMEPAGE=	https://git.kernel.org/pub/scm
 PERMIT_PACKAGE=	  firmware
 PERMIT_DISTFILES= Yes

-FW=	WCN6855/hw2.0
+FW=	QCA2066/hw2.1 \
+	WCN6855/hw2.0

 do-install:
 	# As referenced by the WHENCE file
 	${INSTALL_DATA} ${WRKSRC}/LICENSE.QualcommAtheros_ath10k \
 	    ${PREFIX}/firmware/qwx-license
 .for device in ${FW}
-. for i in amss board-2 m3 regdb
+. for i in amss board-2 m3
 	${INSTALL_DATA} ${WRKSRC}/ath11k/${device}/${i}.bin \
 	    ${PREFIX}/firmware/qwx-${device:L:S/\//-/g}-${i}
 .  endfor
-.endfor
+.  if "${device}" == "WCN6855/hw2.0"
+	${INSTALL_DATA} ${WRKSRC}/ath11k/${device}/regdb.bin \
+	    ${PREFIX}/firmware/qwx-${device:L:S/\//-/g}-regdb
+
 	# XXX - This hardware rev does not have separate files
-.for i in amss board-2 m3 regdb
+.   for i in amss board-2 m3 regdb
 	cd ${PREFIX}/firmware && \
 	    ln qwx-wcn6855-hw2.0-${i} qwx-wcn6855-hw2.1-${i}
+.   endfor
+.  endif
 .endfor

 .include <bsd.port.mk>
Index: sysutils/firmware/qwx/pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/firmware/qwx/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 PLIST
--- sysutils/firmware/qwx/pkg/PLIST	27 Jan 2024 15:07:26 -0000	1.1.1.1
+++ sysutils/firmware/qwx/pkg/PLIST	22 Oct 2024 05:59:30 -0000
@@ -1,4 +1,7 @@
 firmware/qwx-license
+firmware/qwx-qca2066-hw2.1-amss
+firmware/qwx-qca2066-hw2.1-board-2
+firmware/qwx-qca2066-hw2.1-m3
 firmware/qwx-wcn6855-hw2.0-amss
 firmware/qwx-wcn6855-hw2.0-board-2
 firmware/qwx-wcn6855-hw2.0-m3