diff options
author | ian <ian@FreeBSD.org> | 2014-08-21 17:18:21 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-08-21 17:18:21 +0000 |
commit | b7f4763aafc2ac37e27faa771c72a44e4b57d2df (patch) | |
tree | 939d60b7f94035b47646e571085f76b8e2fcf86b /sys/modules/aic7xxx/ahc | |
parent | febf3f52037b1b9f8938c4b167c88c4293b84a22 (diff) | |
download | FreeBSD-src-b7f4763aafc2ac37e27faa771c72a44e4b57d2df.zip FreeBSD-src-b7f4763aafc2ac37e27faa771c72a44e4b57d2df.tar.gz |
MFC r260401
Remove aicasm as a build dependency. It made sense when the ahc and ahd
drivers and their firmware were under active development, but those days
have passed. The firmware now exists in pre-compiled form, no longer
dependent on it's sources or on aicasm. If you wish to rebuild the
firmware from source, the glue still exists under the 'make firmware'
target in sys/modules/aic7xxx.
This also fixes the problem introduced with r257777 et al with building
kernels the old fashioned way in sys/$arch/compile/$CONFIG when the
ahc/ahd drivers were included.
Diffstat (limited to 'sys/modules/aic7xxx/ahc')
-rw-r--r-- | sys/modules/aic7xxx/ahc/Makefile | 15 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_eisa/Makefile | 7 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_isa/Makefile | 7 | ||||
-rw-r--r-- | sys/modules/aic7xxx/ahc/ahc_pci/Makefile | 5 |
4 files changed, 17 insertions, 17 deletions
diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile index b69fbaf..0b1c557 100644 --- a/sys/modules/aic7xxx/ahc/Makefile +++ b/sys/modules/aic7xxx/ahc/Makefile @@ -15,21 +15,34 @@ REG_PRINT_OPT= -p aic7xxx_reg_print.c .endif BEFORE_DEPEND = ${GENSRCS} +../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] + ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) + +.if make(ahcfirmware) +ahcfirmware: ${GENSRCS} ${GENSRCS}: \ ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \ ${.CURDIR}/../../../cam/scsi/scsi_message.h - aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ + ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ -I${.CURDIR}/../../../dev/aic7xxx \ -o aic7xxx_seq.h -r aic7xxx_reg.h \ ${REG_PRINT_OPT} \ -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \ ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq +.else +${GENSRCS}: + @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" +.endif + SRCS= ${GENSRCS} SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h SRCS+= device_if.h bus_if.h pci_if.h +.if make(cleanfirmware) +cleanfirmware: clean CLEANFILES= ${GENSRCS} +.endif .include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile index 5e5d9c2..992c118 100644 --- a/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_eisa/Makefile @@ -4,15 +4,10 @@ .PATH: ${.CURDIR}/../../../../dev/aic7xxx KMOD= ahc_eisa -../aic7xxx_reg.h: - ( cd .. ; ${MAKE} aic7xxx_reg.h ) - -SRCS= ahc_eisa.c ../aic7xxx_reg.h +SRCS= ahc_eisa.c SRCS+= device_if.h bus_if.h eisa_if.h SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. -CLEANFILES= ../aic7xxx_reg.h ../aic7xxx_seq.h - .include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile index 965e74d..f479a15 100644 --- a/sys/modules/aic7xxx/ahc/ahc_isa/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_isa/Makefile @@ -4,15 +4,10 @@ .PATH: ${.CURDIR}/../../../../dev/aic7xxx KMOD= ahc_isa -../aic7xxx_reg.h: - ( cd .. ; ${MAKE} aic7xxx_reg.h ) - -SRCS= ahc_isa.c ../aic7xxx_reg.h +SRCS= ahc_isa.c SRCS+= device_if.h bus_if.h pci_if.h isa_if.h SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h CFLAGS+= -I${.CURDIR}/../../../../dev/aic7xxx -I.. -CLEANFILES= ../aic7xxx_reg.h ../aic7xxx_seq.h - .include <bsd.kmod.mk> diff --git a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile index c6e8559..6535d2e 100644 --- a/sys/modules/aic7xxx/ahc/ahc_pci/Makefile +++ b/sys/modules/aic7xxx/ahc/ahc_pci/Makefile @@ -4,10 +4,7 @@ .PATH: ${.CURDIR}/../../../../dev/aic7xxx KMOD= ahc_pci -../aic7xxx_reg.h: - ( cd .. ; ${MAKE} aic7xxx_reg.h ) - -SRCS= ahc_pci.c aic7xxx_pci.c ../aic7xxx_reg.h +SRCS= ahc_pci.c aic7xxx_pci.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_scsi.h opt_cam.h opt_aic7xxx.h |