forked from Lainports/freebsd-ports
- 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
26 lines
699 B
PHP
26 lines
699 B
PHP
# $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}
|