summaryrefslogtreecommitdiffstats
path: root/sys/modules/aic7xxx
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-08-11 14:50:49 +0000
committerimp <imp@FreeBSD.org>2014-08-11 14:50:49 +0000
commitb20344b2e91bf1c2d0f5e2a8bba517ac86e48975 (patch)
tree9d88e8f28d5de749b45ce092697cd9a893979088 /sys/modules/aic7xxx
parent46245d16580e189afb4b7713df241eeafb908dc4 (diff)
downloadFreeBSD-src-b20344b2e91bf1c2d0f5e2a8bba517ac86e48975.zip
FreeBSD-src-b20344b2e91bf1c2d0f5e2a8bba517ac86e48975.tar.gz
Remove dependence on source tree options. Move all kernel module
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
Diffstat (limited to 'sys/modules/aic7xxx')
-rw-r--r--sys/modules/aic7xxx/ahc/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile
index cb59d9a..beca748 100644
--- a/sys/modules/aic7xxx/ahc/Makefile
+++ b/sys/modules/aic7xxx/ahc/Makefile
@@ -1,9 +1,10 @@
# $FreeBSD$
-.include <src.opts.mk>
+SYSDIR?=${.CURDIR}/../../..
+.include "${SYSDIR}/conf/kern.opts.mk"
-.PATH: ${.CURDIR}/../../../dev/aic7xxx
+.PATH: ${SYSDIR}/dev/aic7xxx
KMOD= ahc
.if ${MK_EISA} != "no"
SUBDIR+= ahc_eisa
@@ -20,20 +21,20 @@ REG_PRINT_OPT= -p aic7xxx_reg_print.c
.endif
BEFORE_DEPEND = ${GENSRCS}
-../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl]
+../aicasm/aicasm: ${SYSDIR}/dev/aic7xxx/aicasm/*.[chyl]
( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
.if make(ahcfirmware)
ahcfirmware: ${GENSRCS}
${GENSRCS}: \
- ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \
- ${.CURDIR}/../../../cam/scsi/scsi_message.h
- ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
- -I${.CURDIR}/../../../dev/aic7xxx \
+ ${SYSDIR}/dev/aic7xxx/aic7xxx.{reg,seq} \
+ ${SYSDIR}/cam/scsi/scsi_message.h
+ ../aicasm/aicasm ${INCLUDES} -I${SYSDIR}/cam/scsi \
+ -I${SYSDIR}/dev/aic7xxx \
-o aic7xxx_seq.h -r aic7xxx_reg.h \
${REG_PRINT_OPT} \
- -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \
- ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq
+ -i ${SYSDIR}/dev/aic7xxx/aic7xxx_osm.h \
+ ${SYSDIR}/dev/aic7xxx/aic7xxx.seq
.else
${GENSRCS}:
@echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'"
OpenPOWER on IntegriCloud