]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/modules/cxgbe/firmware/Makefile
MFC r228491, r228561, r228594.
[FreeBSD/stable/8.git] / sys / modules / cxgbe / firmware / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 T4FW = ${.CURDIR}/../../../dev/cxgbe/firmware
6 .PATH: ${T4FW}
7
8 KMOD = t4fw_cfg
9 FIRMWS = ${KMOD}.txt:${KMOD}:1.0.0.0
10
11 # You can have additional configuration files in the ${T4FW} directory.
12 # t4fw_cfg_<name>.txt
13 CFG_FILES != cd ${T4FW} && echo ${KMOD}_*.txt
14 .for F in ${CFG_FILES}
15 .if exists(${F})
16 FIRMWS += ${F}:${F:C/.txt//}:1.0.0.0
17 .endif
18 .endfor
19
20 # The firmware binary is optional.
21 # t4fw-<a>.<b>.<c>.<d>.bin
22 FW_BIN != cd ${T4FW} && echo t4fw-*.bin
23 .if exists(${FW_BIN})
24 FIRMWS += ${FW_BIN}:t4fw:${FW_BIN:C/t4fw-//:C/.bin//}
25 .endif
26
27 .include <bsd.kmod.mk>