diff options
author | marius <marius@FreeBSD.org> | 2005-07-10 10:43:59 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-07-10 10:43:59 +0000 |
commit | c48c19592ad2b33b40d15895f4fc8146a6900401 (patch) | |
tree | 34caadb76139cce87f9b8b7f52246ddf375845cc /sys/modules/sound | |
parent | edf793c1f909dd392bd89b05ee9a755213538205 (diff) | |
download | FreeBSD-src-c48c19592ad2b33b40d15895f4fc8146a6900401.zip FreeBSD-src-c48c19592ad2b33b40d15895f4fc8146a6900401.tar.gz |
- Add missing opt_isa.h. This fixes the standalone build of sound.ko
after sys/dev/sound/pcm/channel.c rev. 1.99, i.e. when there's no
existing KERNBUILDDIR with an opt_isa.h defined.
- Sync with sys/dev/sound/pcm/channel.c rev. 1.99 (sort of), i.e.
never compile in isadma support on sparc64 as we just never need
it there. This allows to use the "generic" module with a custom
kernel that is built without isa(4).
Reviewed by: ru
Approved by: re (scottl)
Diffstat (limited to 'sys/modules/sound')
-rw-r--r-- | sys/modules/sound/sound/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile index 752fadd..8649d96 100644 --- a/sys/modules/sound/sound/Makefile +++ b/sys/modules/sound/sound/Makefile @@ -4,14 +4,26 @@ .PATH: ${.CURDIR}/../../../dev/sound/isa KMOD= sound -SRCS= device_if.h bus_if.h isa_if.h pci_if.h +SRCS= device_if.h bus_if.h isa_if.h pci_if.h opt_isa.h SRCS+= ac97_if.h channel_if.h feeder_if.h mixer_if.h SRCS+= ac97_if.c channel_if.c feeder_if.c mixer_if.c SRCS+= ac97.c ac97_patch.c buffer.c channel.c dsp.c SRCS+= fake.c feeder.c feeder_fmt.c feeder_rate.c SRCS+= mixer.c sndstat.c sound.c vchan.c -SRCS+= sndbuf_dma.c EXPORT_SYMS= YES # XXX evaluate +.if ${MACHINE_ARCH} == "sparc64" +# Create an empty opt_isa.h in order to keep kmod.mk from linking in an +# existing one from KERNBUILDDIR which possibly has DEV_ISA defined so +# sound.ko is always built without isadma support. +opt_isa.h: + touch ${.TARGET} +.else +SRCS+= sndbuf_dma.c + +opt_isa.h: + echo "#define DEV_ISA 1" > ${.TARGET} +.endif + .include <bsd.kmod.mk> |