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.
This commit is contained in:
Adrian Chadd 2011-11-09 23:37:13 +00:00
parent cf5d42d4b0
commit 5a25d7aab1

View File

@ -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>