Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2011 06:01:35 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r225242 - user/adrian/if_ath_tx/sys/modules/ath
Message-ID:  <201108290601.p7T61ZE7083048@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Aug 29 06:01:35 2011
New Revision: 225242
URL: http://svn.freebsd.org/changeset/base/225242

Log:
  .. and make this line up with what sys/modules/wlan/ does.

Modified:
  user/adrian/if_ath_tx/sys/modules/ath/Makefile

Modified: user/adrian/if_ath_tx/sys/modules/ath/Makefile
==============================================================================
--- user/adrian/if_ath_tx/sys/modules/ath/Makefile	Mon Aug 29 05:59:49 2011	(r225241)
+++ user/adrian/if_ath_tx/sys/modules/ath/Makefile	Mon Aug 29 06:01:35 2011	(r225242)
@@ -140,19 +140,21 @@ 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' > $@
-	echo '#define AH_AR5416_INTERRUPT_MITIGATION 1' >> $@
-	echo '#define AH_DEBUG 1' >> $@
+	echo '#define AH_SUPPORT_AR5416 1' > ${.TARGET}
+	echo '#define AH_AR5416_INTERRUPT_MITIGATION 1' >> ${.TARGET}
+	echo '#define AH_DEBUG 1' >> ${.TARGET}
 
 opt_ath.h:
-	echo '#define ATH_DEBUG 1' > $@
-	echo '#define ATH_DIAGAPI 1' >> $@
-	echo '#define ATH_ENABLE_11N 1' >> $@
+	echo '#define ATH_DEBUG 1' > ${.TARGET}
+	echo '#define ATH_DIAGAPI 1' >> ${.TARGET}
+	echo '#define ATH_ENABLE_11N 1' >> ${.TARGET}
 
 opt_wlan.h:
-	echo '#define IEEE80211_DEBUG 1' > $@
-	echo '#define IEEE80211_AMPDU_AGE 1'>> $@
-	echo '#define IEEE80211_SUPPORT_MESH 1'>> $@
+	echo '#define IEEE80211_DEBUG 1' > ${.TARGET}
+	echo '#define IEEE80211_AMPDU_AGE 1'>> ${.TARGET}
+	echo '#define IEEE80211_SUPPORT_MESH 1'>> ${.TARGET}
+.endif
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108290601.p7T61ZE7083048>