aboutsummaryrefslogtreecommitdiff
path: root/tools/tools
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2011-04-11 06:53:45 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2011-04-11 06:53:45 +0000
commit6b3664c018521138d81d439930c3dd3258ef13f4 (patch)
tree7f792bb9d2a587b71f47b9f917e0ef24b9228dfd /tools/tools
parent273ca8513798f918375f717f4f851359241bb279 (diff)
downloadsrc-6b3664c018521138d81d439930c3dd3258ef13f4.tar.gz
src-6b3664c018521138d81d439930c3dd3258ef13f4.zip
Generate opt_ah.h now for all ath tools, a recent HAL change of mine
now requires it.
Notes
Notes: svn path=/head/; revision=220534
Diffstat (limited to 'tools/tools')
-rw-r--r--tools/tools/ath/athdecode/Makefile8
-rw-r--r--tools/tools/ath/athkey/Makefile11
-rw-r--r--tools/tools/ath/athpoke/Makefile8
-rw-r--r--tools/tools/ath/athprom/Makefile9
-rw-r--r--tools/tools/ath/athregs/Makefile8
5 files changed, 44 insertions, 0 deletions
diff --git a/tools/tools/ath/athdecode/Makefile b/tools/tools/ath/athdecode/Makefile
index 5dd32894186e..00c452497a5c 100644
--- a/tools/tools/ath/athdecode/Makefile
+++ b/tools/tools/ath/athdecode/Makefile
@@ -10,6 +10,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>
diff --git a/tools/tools/ath/athkey/Makefile b/tools/tools/ath/athkey/Makefile
index 7398a4106475..7aee04837957 100644
--- a/tools/tools/ath/athkey/Makefile
+++ b/tools/tools/ath/athkey/Makefile
@@ -2,6 +2,17 @@
PROG= athkey
+SRCS= athkey.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
+
+
.include <../Makefile.inc>
.include <bsd.prog.mk>
diff --git a/tools/tools/ath/athpoke/Makefile b/tools/tools/ath/athpoke/Makefile
index 82b9c62eb3de..a33c7396348b 100644
--- a/tools/tools/ath/athpoke/Makefile
+++ b/tools/tools/ath/athpoke/Makefile
@@ -10,6 +10,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>
diff --git a/tools/tools/ath/athprom/Makefile b/tools/tools/ath/athprom/Makefile
index 1278f22721ef..f7b596728699 100644
--- a/tools/tools/ath/athprom/Makefile
+++ b/tools/tools/ath/athprom/Makefile
@@ -7,6 +7,15 @@ PROG= athprom
TEMPLATEDIR= /usr/local/libdata/athprom
TEXTMODE?= 444
+SRCS= athprom.c
+SRCS+= opt_ah.h
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
+
CFLAGS+=-DDIR_TEMPLATE='"${TEMPLATEDIR}"'
beforeinstall:
diff --git a/tools/tools/ath/athregs/Makefile b/tools/tools/ath/athregs/Makefile
index eef4fb22ff77..6b61b32ceb51 100644
--- a/tools/tools/ath/athregs/Makefile
+++ b/tools/tools/ath/athregs/Makefile
@@ -9,6 +9,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>