summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-04-11 06:53:45 +0000
committeradrian <adrian@FreeBSD.org>2011-04-11 06:53:45 +0000
commit9975f19c3b3a7c9c05156597956efebcb5bef11e (patch)
tree7f792bb9d2a587b71f47b9f917e0ef24b9228dfd /tools
parente74a74d59373fcca79a47e795e10532d86244256 (diff)
downloadFreeBSD-src-9975f19c3b3a7c9c05156597956efebcb5bef11e.zip
FreeBSD-src-9975f19c3b3a7c9c05156597956efebcb5bef11e.tar.gz
Generate opt_ah.h now for all ath tools, a recent HAL change of mine
now requires it.
Diffstat (limited to '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 5dd3289..00c4524 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 7398a41..7aee048 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 82b9c62..a33c739 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 1278f22..f7b5967 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 eef4fb2..6b61b32 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>
OpenPOWER on IntegriCloud