summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-11-09 23:37:13 +0000
committeradrian <adrian@FreeBSD.org>2011-11-09 23:37:13 +0000
commit175332176b1eebe826c77bb3fd0ab48d7f466540 (patch)
tree82be0c5b6745dba8e90a6710032b24cc0df5cd0b /sys/modules
parent273ff1fe2a7f71062d455a8b73175ac9c6125449 (diff)
downloadFreeBSD-src-175332176b1eebe826c77bb3fd0ab48d7f466540.zip
FreeBSD-src-175332176b1eebe826c77bb3fd0ab48d7f466540.tar.gz
Use the system-provided opt_ah.h if one is provided.
This implies that users who are building the driver do so with KERNBUILDDIR set to the compile/CONFIG directory so the various opt_* sources can be pulled in.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/ath/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile
index 49f7fa6..d969fda 100644
--- a/sys/modules/ath/Makefile
+++ b/sys/modules/ath/Makefile
@@ -140,7 +140,9 @@ SRCS+= dfs_null.c
CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal
+.if !defined(KERNBUILDDIR)
opt_ah.h:
echo '#define AH_SUPPORT_AR5416 1' > $@
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud