xref: /freebsd/sys/modules/cxgb/cxgb/Makefile (revision 8e10660f1223de7366953e1a27202e48dd89e236)
122a80c41SKip Macy# $FreeBSD$
222a80c41SKip Macy
322a80c41SKip MacyCXGB = ${.CURDIR}/../../../dev/cxgb
422a80c41SKip Macy.PATH: ${CXGB} ${CXGB}/common ${CXGB}/sys
522a80c41SKip Macy
622a80c41SKip MacyKMOD=	if_cxgb
722a80c41SKip MacySRCS=	cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
822a80c41SKip MacySRCS+=	cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c
922a80c41SKip MacySRCS+=  cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c
10c2791efeSKip MacySRCS+=	device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h opt_global.h
118090c9f5SKip MacySRCS+=	uipc_mvec.c cxgb_support.c
129c76da33SKip MacySRCS+=	cxgb_multiq.c
1322a80c41SKip Macy
1422a80c41SKip MacyCFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP
158e10660fSKip MacyCFLAGS+= -DDISABLE_MBUF_IOVEC
1622a80c41SKip Macy#CFLAGS+= -DIFNET_MULTIQUEUE
178e10660fSKip Macy#CFLAGS+= -DDISABLE_MBUF_IOVEC
188e10660fSKip Macy#CFLAGS+= -DDEBUG -DDEBUG_PRINT
1922a80c41SKip Macy#CFLAGS+= -DINVARIANT_SUPPORT -DINVARIANTS
2022a80c41SKip Macy#CFLAGS+= -DWITNESS
218e10660fSKip Macy#CFLAGS += -DLOCK_PROFILING
228e10660fSKip Macy
238e10660fSKip Macy#CFLAGS+= -DWITNESS
2422a80c41SKip Macy
2522a80c41SKip Macy
2622a80c41SKip Macy.if ${MACHINE_ARCH} != "ia64"
2722a80c41SKip Macy# ld is broken on ia64
288e10660fSKip Macyt3fw-5.0.0.bin: ${CXGB}/t3fw-5.0.0.bin.gz.uu
298e10660fSKip Macy	uudecode -p < ${CXGB}/t3fw-5.0.0.bin.gz.uu \
3022a80c41SKip Macy	| gzip -dc > ${.TARGET}
3122a80c41SKip Macy
328e10660fSKip MacyFIRMWS= t3fw-5.0.0.bin:t3fw500
338e10660fSKip MacyCLEANFILES+= t3fw-5.0.0.bin
3422a80c41SKip Macy
3522a80c41SKip Macyt3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu
3622a80c41SKip Macy	uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \
3722a80c41SKip Macy	| gzip -dc > ${.TARGET}
3822a80c41SKip Macy
3922a80c41SKip MacyFIRMWS+= t3b_protocol_sram-1.1.0.bin:t3bps110
4022a80c41SKip MacyCLEANFILES+= t3b_protocol_sram-1.1.0.bin
4122a80c41SKip Macy
4222a80c41SKip Macyt3b_tp_eeprom-1.1.0.bin: ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu
4322a80c41SKip Macy	uudecode -p < ${CXGB}/t3b_tp_eeprom-1.1.0.bin.gz.uu \
4422a80c41SKip Macy	| gzip -dc > ${.TARGET}
4522a80c41SKip Macy
4622a80c41SKip MacyFIRMWS+= t3b_tp_eeprom-1.1.0.bin:t3btpe110
4722a80c41SKip MacyCLEANFILES+= t3b_tp_eeprom-1.1.0.bin
4822a80c41SKip Macy
4922a80c41SKip Macy
5022a80c41SKip Macy.endif
5122a80c41SKip Macy
5222a80c41SKip Macy
5322a80c41SKip Macy.include <bsd.kmod.mk>
54