mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- 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)
This commit is contained in:
parent
51a753f9d8
commit
4baa0720d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147879
@ -4,14 +4,26 @@
|
|||||||
.PATH: ${.CURDIR}/../../../dev/sound/isa
|
.PATH: ${.CURDIR}/../../../dev/sound/isa
|
||||||
|
|
||||||
KMOD= sound
|
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.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_if.c channel_if.c feeder_if.c mixer_if.c
|
||||||
SRCS+= ac97.c ac97_patch.c buffer.c channel.c dsp.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+= fake.c feeder.c feeder_fmt.c feeder_rate.c
|
||||||
SRCS+= mixer.c sndstat.c sound.c vchan.c
|
SRCS+= mixer.c sndstat.c sound.c vchan.c
|
||||||
SRCS+= sndbuf_dma.c
|
|
||||||
|
|
||||||
EXPORT_SYMS= YES # XXX evaluate
|
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>
|
.include <bsd.kmod.mk>
|
||||||
|
Loading…
Reference in New Issue
Block a user