summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgb
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-02-26 03:02:20 +0000
committerkmacy <kmacy@FreeBSD.org>2008-02-26 03:02:20 +0000
commit3c2b753612b7a8288525cdf8481727ac73cb25ef (patch)
treee4dabfbcd90a45ff6c8ded3887a3e5cd387cf560 /sys/modules/cxgb
parentb54152091e62752ddc63ffffe7c4735b80a73cdb (diff)
downloadFreeBSD-src-3c2b753612b7a8288525cdf8481727ac73cb25ef.zip
FreeBSD-src-3c2b753612b7a8288525cdf8481727ac73cb25ef.tar.gz
Move firmware in to separate module that can be compiled statically in to the kernel
Add utility for converting future firmware revs to a C header file
Diffstat (limited to 'sys/modules/cxgb')
-rw-r--r--sys/modules/cxgb/Makefile1
-rw-r--r--sys/modules/cxgb/cxgb/Makefile11
-rw-r--r--sys/modules/cxgb/cxgb_t3fw/Makefile8
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/modules/cxgb/Makefile b/sys/modules/cxgb/Makefile
index ef633e7..1b49e70 100644
--- a/sys/modules/cxgb/Makefile
+++ b/sys/modules/cxgb/Makefile
@@ -3,5 +3,6 @@ SUBDIR= cxgb
SUBDIR+= toecore
SUBDIR+= tom
#SUBDIR+= iw_cxgb
+SUBDIR+= cxgb_t3fw
.include <bsd.subdir.mk>
diff --git a/sys/modules/cxgb/cxgb/Makefile b/sys/modules/cxgb/cxgb/Makefile
index 6114ef9..5a74859 100644
--- a/sys/modules/cxgb/cxgb/Makefile
+++ b/sys/modules/cxgb/cxgb/Makefile
@@ -8,7 +8,7 @@ SRCS= cxgb_mc5.c cxgb_vsc8211.c cxgb_ael1002.c cxgb_mv88e1xxx.c
SRCS+= cxgb_xgmac.c cxgb_vsc7323.c cxgb_t3_hw.c cxgb_main.c
SRCS+= cxgb_sge.c cxgb_lro.c cxgb_offload.c cxgb_l2t.c
SRCS+= device_if.h bus_if.h pci_if.h opt_zero.h opt_sched.h opt_global.h
-SRCS+= uipc_mvec.c cxgb_support.c
+SRCS+= uipc_mvec.c cxgb_support.c
SRCS+= cxgb_multiq.c
CFLAGS+= -DCONFIG_CHELSIO_T3_CORE -g -DCONFIG_DEFINED -DDEFAULT_JUMBO -I${CXGB} -DSMP
@@ -24,13 +24,6 @@ CFLAGS+= -DDISABLE_MBUF_IOVEC
.if ${MACHINE_ARCH} != "ia64"
-# ld is broken on ia64
-t3fw-5.0.0.bin: ${CXGB}/t3fw-5.0.0.bin.gz.uu
- uudecode -p < ${CXGB}/t3fw-5.0.0.bin.gz.uu \
- | gzip -dc > ${.TARGET}
-
-FIRMWS= t3fw-5.0.0.bin:t3fw500
-CLEANFILES+= t3fw-5.0.0.bin
t3b_protocol_sram-1.1.0.bin: ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu
uudecode -p < ${CXGB}/t3b_protocol_sram-1.1.0.bin.gz.uu \
@@ -48,6 +41,4 @@ CLEANFILES+= t3b_tp_eeprom-1.1.0.bin
.endif
-
-
.include <bsd.kmod.mk>
diff --git a/sys/modules/cxgb/cxgb_t3fw/Makefile b/sys/modules/cxgb/cxgb_t3fw/Makefile
new file mode 100644
index 0000000..c280a2c
--- /dev/null
+++ b/sys/modules/cxgb/cxgb_t3fw/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+CXGB = ${.CURDIR}/../../../dev/cxgb
+.PATH: ${CXGB}
+
+SRCS+= cxgb_t3fw.c
+
+.include <bsd.kmod.mk> \ No newline at end of file
OpenPOWER on IntegriCloud