If building the module as part of the kernel build, determine

the "device isa" presence out of the opt_isa.h in the kernel
build directory, rather than always assuming its presence.
sparc64 is still special cased and is not affected by this
change.

Noticed by:	bde
This commit is contained in:
Ruslan Ermilov 2006-09-04 07:40:53 +00:00
parent f9b1dc578a
commit 1e9defe45a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161973

View File

@ -24,10 +24,17 @@ EXPORT_SYMS= YES # XXX evaluate
opt_isa.h:
:> ${.TARGET}
.else
.if !defined(KERNBUILDDIR)
SRCS+= sndbuf_dma.c
opt_isa.h:
echo "#define DEV_ISA 1" > ${.TARGET}
.else
DEV_ISA!= sed -n '/DEV_ISA/p' ${KERNBUILDDIR}/opt_isa.h
.if !empty(DEV_ISA)
SRCS+= sndbuf_dma.c
.endif
.endif
.endif
.include <bsd.kmod.mk>