Author: adrian
Date: Wed Nov  9 23:37:13 2011
New Revision: 227412
URL: http://svn.freebsd.org/changeset/base/227412

Log:
  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.

Modified:
  head/sys/modules/ath/Makefile

Modified: head/sys/modules/ath/Makefile
==============================================================================
--- head/sys/modules/ath/Makefile       Wed Nov  9 23:28:47 2011        
(r227411)
+++ head/sys/modules/ath/Makefile       Wed Nov  9 23:37:13 2011        
(r227412)
@@ -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>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to