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