git: c0198530f9ac - main - net/wifi-firmware-kmod: allow ONLY_FOR_ARCHS to be set by child ports
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Dec 2025 23:26:26 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c0198530f9ace92583318bb40dd4caefa73331cc
commit c0198530f9ace92583318bb40dd4caefa73331cc
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-11-17 14:39:08 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-12-11 23:26:09 +0000
net/wifi-firmware-kmod: allow ONLY_FOR_ARCHS to be set by child ports
mtw(4) is built along USB for all architectures so we need firmware
on all architectures -- unlike the LinuxKPI based wireless drivers
which are restricted by default.
Allow ONLY_FOR_ARCHS to be set in a child port; maintaing a full list
of supported ARCHes seems unreasonable though so allow NOT_FOR_ARCHS
to disable the ONLY_FOR_ARCHS logic in Makefile.inc. That way
wifi-firmware-mt7601u-kmod can define an empty NOT_FOR_ARCHS and
it should build on all ARCHes.
Sponsored by: The FreeBSD Foundation
Reviewed by: jrm
Differential Revision: https://reviews.freebsd.org/D53788
---
net/wifi-firmware-kmod/Makefile.inc | 4 +++-
net/wifi-firmware-mt7601u-kmod/Makefile | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/net/wifi-firmware-kmod/Makefile.inc b/net/wifi-firmware-kmod/Makefile.inc
index ee5194eeb608..0aca6067f1d1 100644
--- a/net/wifi-firmware-kmod/Makefile.inc
+++ b/net/wifi-firmware-kmod/Makefile.inc
@@ -78,8 +78,10 @@ DISTFILES= ${DISTFILES_${FLAVOR}:O:u} \
DIST_SUBDIR= linux-firmware/${FWDRV}fw
EXTRACT_ONLY=
-ONLY_FOR_ARCHS= aarch64 amd64 i386
+.if !defined(NOT_FOR_ARCHS)
+ONLY_FOR_ARCHS?= aarch64 amd64 i386
ONLY_FOR_ARCHS_REASON= LinuxKPI driver only available for these architectures
+.endif
USES= uidfix
diff --git a/net/wifi-firmware-mt7601u-kmod/Makefile b/net/wifi-firmware-mt7601u-kmod/Makefile
index 8f97cc6fa075..34f58987dba1 100644
--- a/net/wifi-firmware-mt7601u-kmod/Makefile
+++ b/net/wifi-firmware-mt7601u-kmod/Makefile
@@ -3,6 +3,8 @@ FWDRV=mt7601u
FWSUBDIR= mediatek
FWDRV_VERSION= 20241017
+NOT_FOR_ARCHS=
+
LICENSE_FILE= LICENCE.ralink_a_mediatek_company_firmware
LICENSE_NAME= Ralink, A MediaTek Company license (${FWDRV})