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:
parent
f9b1dc578a
commit
1e9defe45a
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user