freebsd-dev/sys/modules/rtw89fw/Makefile.inc
Bjoern A. Zeeb 866e021654 rtw89: import firmware for Realtek's rtw89 supported chipsets.
Import the most recent versions of the firmware images for the
rtw89 driver.

This is based on linux-firmware at 2f2f0181581d3e35bfdb9fc65f609ee9d3fbaeb7.

The license of the firmware matches the previously added rtw88(4) firmware
and you can find a copy in sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt.

Add build infrastructure to create the .ko files but do not yet hook
it up to the build until all parts are in the tree.

Approved by:	core.11 (imp) [2022-03-27]
MFC after:	6 weeks
2022-09-09 16:32:17 +00:00

18 lines
343 B
Makefile

# $FreeBSD$
#
# Common rules for building firmware. Note this gets auto-included
# by the subdir Makefile's as a consequence of included bsd.kmod.mk.
_NAME= rtw${NAME}_fw.bin
IMG= ${_NAME}
KMOD= ${_NAME}
CLEANFILES+= ${IMG}
FIRMWS= ${IMG}:${IMG}:${VERSION}
${IMG}: ${SRCTOP}/sys/contrib/dev/rtw89fw/${IMG}
cp ${.ALLSRC} ${.TARGET}