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
26 lines
383 B
Makefile
26 lines
383 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
SYSDIR?=${.CURDIR}/../..
|
|
.include "${SYSDIR}/conf/kern.opts.mk"
|
|
|
|
SUBDIR= if_cxgbe
|
|
SUBDIR+= t4_firmware
|
|
SUBDIR+= t5_firmware
|
|
SUBDIR+= ${_tom}
|
|
SUBDIR+= ${_iw_cxgbe}
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
_tom= tom
|
|
.if ${MK_OFED} != "no" || defined(ALL_MODULES)
|
|
_iw_cxgbe= iw_cxgbe
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
_tom= tom
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|