mirror of
https://github.com/opnsense/src.git
synced 2026-07-11 10:07:21 -04:00
This simplifies make output/logic Tested with: `cd sys/modules; make ALL_MODULES=` on amd64 MFC after: 1 month Sponsored by: Dell EMC Isilon
27 lines
524 B
Makefile
27 lines
524 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
T4FW= ${SRCTOP}/sys/dev/cxgbe/firmware
|
|
.PATH: ${T4FW}
|
|
|
|
KMOD= t4fw_cfg
|
|
FIRMWS= ${KMOD}.txt:${KMOD}:1.0.0.0
|
|
|
|
# You can have additional configuration files in the ${T4FW} directory.
|
|
# t4fw_cfg_<name>.txt
|
|
CFG_FILES != cd ${T4FW} && echo ${KMOD}_*.txt
|
|
.for F in ${CFG_FILES}
|
|
.if exists(${F})
|
|
FIRMWS+= ${F}:${F:C/.txt//}:1.0.0.0
|
|
.endif
|
|
.endfor
|
|
|
|
T4FW_VER= 1.16.26.0
|
|
FIRMWS+= t4fw.fw:t4fw:${T4FW_VER}
|
|
CLEANFILES+= t4fw.fw
|
|
|
|
t4fw.fw: t4fw-${T4FW_VER}.bin.uu
|
|
uudecode -o ${.TARGET} ${.ALLSRC}
|
|
|
|
.include <bsd.kmod.mk>
|