madwifi: reduce the size of the multicall tool binary
authorFelix Fietkau <nbd@openwrt.org>
Wed, 21 Oct 2009 00:20:42 +0000 (00:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 21 Oct 2009 00:20:42 +0000 (00:20 +0000)
SVN-Revision: 18112

package/madwifi/patches/200-no_debug.patch
package/madwifi/patches/424-timing.patch

index 5e5eb04547f77f7dacd297fe4e59a07f859a076f..d5f285c241ebd3547232e1e6634c629b5c6cbee2 100644 (file)
      if(strcmp(progname, "athstats") == 0)
 --- a/tools/Makefile
 +++ b/tools/Makefile
-@@ -48,6 +48,8 @@ endif
+@@ -48,14 +48,16 @@ endif
  
  all: compile
  
 +DEBUG = -DAR_DEBUG
 +
  ALLPROGS=     athstats 80211stats athkey athchans athctrl \
-       athdebug 80211debug wlanconfig ath_info
+-      athdebug 80211debug wlanconfig ath_info
++      $(if $(DEBUG),athdebug 80211debug) wlanconfig ath_info
  
-@@ -55,7 +57,7 @@ OBJS=        $(patsubst %,%.o,$(ALLPROGS))
+ OBJS= $(patsubst %,%.o,$(ALLPROGS))
  
  INCS= -I. -I../ath -I$(HAL) -I$(TOP) -I$(ATH_HAL)
  CFLAGS=       -g -O2 -Wall
index 4dfa3c97a620547040d36992101df884f06bf7c1..a8b82fa10421b4abb207d4e7015df6324135c287 100644 (file)
  
 -ALLPROGS=     athstats 80211stats athkey athchans athctrl \
 +ALLPROGS=     athstats 80211stats athkey athchans \
-       athdebug 80211debug wlanconfig ath_info
+       $(if $(DEBUG),athdebug 80211debug) wlanconfig ath_info
  
  OBJS= $(patsubst %,%.o,$(ALLPROGS))
 --- a/tools/athctrl.c