summaryrefslogtreecommitdiffstats
path: root/sys/modules/sound
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-04 07:40:53 +0000
committerru <ru@FreeBSD.org>2006-09-04 07:40:53 +0000
commit4dbb4c1732b29e7b1aab6aaba67120d318d8f203 (patch)
tree8dfae8acd2111d5305e3b492925def5043cea31b /sys/modules/sound
parent9af04e1fec0033b6c8cea0f90d06d09f4d8d9959 (diff)
downloadFreeBSD-src-4dbb4c1732b29e7b1aab6aaba67120d318d8f203.zip
FreeBSD-src-4dbb4c1732b29e7b1aab6aaba67120d318d8f203.tar.gz
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
Diffstat (limited to 'sys/modules/sound')
-rw-r--r--sys/modules/sound/sound/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile
index f2e6eae..5b96cb4 100644
--- a/sys/modules/sound/sound/Makefile
+++ b/sys/modules/sound/sound/Makefile
@@ -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>
OpenPOWER on IntegriCloud