df3394b3de
options into kern.opts.mk and change all the places where we use src.opts.mk to pull in the options. Conditionally define SYSDIR and use SYSDIR/conf/kern.opts.mk instead of a CURDIR path. Replace all instances of CURDIR/../../etc with STSDIR, but only in the affected files. As a special compatibility hack, include bsd.owm.mk at the top of kern.opts.mk to allow the bare build of sys/modules to work on older systems. If the defaults ever change between 9.x, 10.x and current for these options, however, you'll wind up with the host OS' defaults rather than the -current defaults. This hack will be removed when we no longer need to support this build scenario. Reviewed by: jhb Differential Revision: https://phabric.freebsd.org/D529
35 lines
810 B
Makefile
35 lines
810 B
Makefile
# $FreeBSD$
|
|
|
|
SYSDIR?=${.CURDIR}/../../..
|
|
.include "${SYSDIR}/conf/kern.opts.mk"
|
|
|
|
# Modules that include binary-only blobs of microcode should be selectable by
|
|
# MK_SOURCELESS_UCODE option (see below).
|
|
|
|
SUBDIR= ad1816 als4000 atiixp cs4281 ${_csa} ${_ds1} emu10k1 emu10kx
|
|
SUBDIR+= envy24 envy24ht es137x ess fm801 hda hdspe ich maestro
|
|
SUBDIR+= ${_maestro3} neomagic sb16 sb8 sbc solo spicds t4dwave via8233
|
|
SUBDIR+= via82c686 vibes driver uaudio
|
|
|
|
.if ${MK_SOURCELESS_UCODE} != "no"
|
|
_csa= csa
|
|
_ds1= ds1
|
|
_maestro3= maestro3
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
|
SUBDIR+= cmi mss
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "sparc64"
|
|
.if ${MACHINE} == "sparc64"
|
|
SUBDIR+= audiocs
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
|
SUBDIR+= ai2s davbus
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|