diff options
author | imp <imp@FreeBSD.org> | 2015-02-18 15:25:22 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2015-02-18 15:25:22 +0000 |
commit | b15fc5d0e7a704fbe759415abfae02ac62875c27 (patch) | |
tree | 0d8eb14f5704166a5e5f67a39de3595b4f7ca35b | |
parent | ab9283f7d9180c8196ed03c9f60345cb00f3c0a9 (diff) | |
download | FreeBSD-src-b15fc5d0e7a704fbe759415abfae02ac62875c27.zip FreeBSD-src-b15fc5d0e7a704fbe759415abfae02ac62875c27.tar.gz |
Cleanup the way we include some files (in this case EISA) based on
kernel config. Also tidy up the ed options.
-rw-r--r-- | sys/modules/dpt/Makefile | 20 | ||||
-rw-r--r-- | sys/modules/ed/Makefile | 7 | ||||
-rw-r--r-- | sys/modules/ep/Makefile | 5 | ||||
-rw-r--r-- | sys/modules/si/Makefile | 5 | ||||
-rw-r--r-- | sys/modules/vx/Makefile | 6 |
5 files changed, 12 insertions, 31 deletions
diff --git a/sys/modules/dpt/Makefile b/sys/modules/dpt/Makefile index 21b3b08..ee588ad 100644 --- a/sys/modules/dpt/Makefile +++ b/sys/modules/dpt/Makefile @@ -11,24 +11,6 @@ SRCS= dpt_scsi.c dpt.h \ opt_cam.h opt_scsi.h \ device_if.h bus_if.h -.if ${MK_EISA} == "no" -# Create an empty opt_eisa.h in order to keep kmod.mk from linking in an -# existing one from KERNBUILDDIR which possibly has DEV_EISA defined so -# dpt.ko is always built without EISA support. -opt_eisa.h: - :> ${.TARGET} -.else -.if !defined(KERNBUILDDIR) -SRCS+= dpt_eisa.c eisa_if.h - -opt_eisa.h: - echo "#define DEV_EISA 1" > ${.TARGET} -.else -DEV_EISA!= sed -n '/DEV_EISA/p' ${KERNBUILDDIR}/opt_eisa.h -.if !empty(DEV_EISA) -SRCS+= dpt_eisa.c eisa_if.h -.endif -.endif -.endif +SRCS.DEV_EISA= dpt_eisa.c eisa_if.h .include <bsd.kmod.mk> diff --git a/sys/modules/ed/Makefile b/sys/modules/ed/Makefile index 723df34..427b99f 100644 --- a/sys/modules/ed/Makefile +++ b/sys/modules/ed/Makefile @@ -8,10 +8,13 @@ SRCS+= if_ed_novell.c if_ed_wd80x3.c if_ed_rtl80x9.c isa_if.h .if ${MACHINE} == "pc98" SRCS+= if_ed_cbus.c .else -SRCS+= if_ed_isa.c if_ed_3c503.c if_ed_hpp.c if_ed_sic.c +SRCS+= if_ed_isa.c +SRCS.ED_HPP=if_ed_hpp.c +SRCS.ED_SIC=if_ed_sic.c +SRCS.ED_3C503=if_ed_3c503.c .endif SRCS+= if_ed_pccard.c pccarddevs.h card_if.h -SRCS+= if_ed_pci.c pci_if.h +SRCS.DEV_PCI=if_ed_pci.c pci_if.h SRCS+= opt_ed.h bus_if.h device_if.h miibus_if.h diff --git a/sys/modules/ep/Makefile b/sys/modules/ep/Makefile index 9f1dbee..df117ab 100644 --- a/sys/modules/ep/Makefile +++ b/sys/modules/ep/Makefile @@ -9,10 +9,7 @@ KMOD= if_ep SRCS= if_ep.c SRCS+= if_ep_pccard.c pccarddevs.h card_if.h SRCS+= if_ep_isa.c isa_if.h -.if ${MK_EISA} != "no" -SRCS+= if_ep_eisa.c eisa_if.h -.endif -#SRCS+= if_ep_mca.c +SRCS.DEV_EISA= if_ep_eisa.c eisa_if.h SRCS+= bus_if.h device_if.h .include <bsd.kmod.mk> diff --git a/sys/modules/si/Makefile b/sys/modules/si/Makefile index df5361f..d2d436f 100644 --- a/sys/modules/si/Makefile +++ b/sys/modules/si/Makefile @@ -3,8 +3,9 @@ .PATH: ${.CURDIR}/../../dev/si KMOD= si -SRCS= si.c si2_z280.c si3_t225.c si_eisa.c si_isa.c si_pci.c -SRCS+= bus_if.h device_if.h eisa_if.h isa_if.h pci_if.h +SRCS= si.c si2_z280.c si3_t225.c si_isa.c si_pci.c +SRCS+= bus_if.h device_if.h isa_if.h pci_if.h SRCS+= opt_compat.h opt_debug_si.h opt_eisa.h +SRCS.DEV_EISA=si_eisa.c eisa_if.h .include <bsd.kmod.mk> diff --git a/sys/modules/vx/Makefile b/sys/modules/vx/Makefile index 6012429..2086dc8 100644 --- a/sys/modules/vx/Makefile +++ b/sys/modules/vx/Makefile @@ -7,9 +7,7 @@ SYSDIR?=${.CURDIR}/../.. KMOD= if_vx SRCS= if_vx.c if_vx_pci.c -.if ${MK_EISA} != "no" -SRCS+= if_vx_eisa.c -.endif -SRCS+= device_if.h bus_if.h pci_if.h eisa_if.h +SRCS.DEV_EISA= if_vx_eisa.c eisa_if.h +SRCS+= device_if.h bus_if.h pci_if.h .include <bsd.kmod.mk> |