diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-04-25 13:46:04 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2024-05-23 22:19:37 +0000 |
commit | 80f50c9eb66d88b6e69cd5159d1ff318dcb60b33 (patch) | |
tree | afe935dffa184f66bce092c3a50f89f5b3951ee0 /net/wifi-firmware-kmod/files/Makefile.inc.in | |
parent | databases/foundationdb*: split, update to 7.1.59 & 7.3.41 (diff) |
net/wifi-firmware-*kmod: improve build logic, add flavors, update fw version
- update framework to no longer depend on local distfiles for firmware(9)
but generate the Makefile hierarchy in post-extract. Keep a
Makefile.inc.in in files for simplicity.
- update extracting WHENCE parts using a local WHENCE.awk.in in files
and a pattern to match the section(s).
- use the already prepared FWSUBS sections for flavors and add the
FWDRV as "default". Generate the CONFLICTS_INSTALL conflict and
PKGNAMESUFFIX entries. Adjust paths and logic for flavors.
Depend on the flavors rather the combined ("default flavor") packages
by default if someone installs wifi-firmware-kmod.
The wifi-firmware-${name}-kmod packages are still built for older
versions of fwget shipping in releases.
- add support for iwlwifi and ath12k firmware
- update firmware to linux-firmware.git tag: 20240513 for all drivers.
Sponsored by: The FreeBSD Foundation
Reviewed by: jrm
Differential Revision: https://reviews.freebsd.org/D44945
Diffstat (limited to 'net/wifi-firmware-kmod/files/Makefile.inc.in')
-rw-r--r-- | net/wifi-firmware-kmod/files/Makefile.inc.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/wifi-firmware-kmod/files/Makefile.inc.in b/net/wifi-firmware-kmod/files/Makefile.inc.in new file mode 100644 index 000000000000..4fd8a079583c --- /dev/null +++ b/net/wifi-firmware-kmod/files/Makefile.inc.in @@ -0,0 +1,26 @@ +# $FreeBSD$ + +# We remove '.' and '-' as well as '/' as they don't work well in laoder.conf. +# If (counter part) set, prefix name part with '_' separator. +_KOFWSUBDIR= ${FWSUBSUBDIR:S,.,_,g:S,-,_,g:S,/,_,g} +KOFWSUBDIR= ${"${_KOFWSUBDIR}" != "":?_${_KOFWSUBDIR}:} + +_FWNAME= ${FWNAME:S,.,_,g:S,-,_,g} +KOFWNAME= ${"%%FWSUBDIR%%" != "":?_${_FWNAME}:${_FWNAME}} + +_NAME?= %%FWSUBDIR%%${KOFWSUBDIR}${KOFWNAME} + +IMG= ${_NAME} +KMOD= ${_NAME} + +CLEANFILES+= ${IMG} + +FIRMWS= ${IMG}:${IMG}:${VERSION} + +#FIRMWARE_LICENSE= + +# If we build from ports let us overwrite this. +FWSRCDIR?= ${SRCTOP}/sys/contrib/dev/%%FWDRV%%fw + +${IMG}: ${FWSRCDIR}/%%FWSUBDIR%%/${FWSUBSUBDIR}/${FWNAME} + cp ${.ALLSRC} ${.TARGET} |