diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-08-19 15:13:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-08-19 15:13:00 +0000 |
commit | 61f31962dbb2555068fe9571f43694a713133e3c (patch) | |
tree | 2e1b33788d0da66587c23567179faf8459d538c0 /package/madwifi/Makefile | |
parent | cdb9ae12f93ef2db330ee4a83b59354f60a4c99a (diff) | |
download | upstream-61f31962dbb2555068fe9571f43694a713133e3c.tar.gz upstream-61f31962dbb2555068fe9571f43694a713133e3c.tar.bz2 upstream-61f31962dbb2555068fe9571f43694a713133e3c.zip |
madwifi: add patch for building all modules (except for the HAL) into a single module. saves space and gets rid of unnecessary exports
removes support for onoe and amrr - I don't think anybody needs these anymore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17314 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/Makefile')
-rw-r--r-- | package/madwifi/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile index 250c6fd68d..632b77fec5 100644 --- a/package/madwifi/Makefile +++ b/package/madwifi/Makefile @@ -124,6 +124,9 @@ ifdef CONFIG_MADWIFI_RCA_SAMPLERATE RATE_CONTROL:=sample endif +ifneq ($(CONFIG_MADWIFI_SINGLE_MODULE),) +MADWIFI_FILES:= $(PKG_BUILD_DIR)/ath_hal/ath_hal.$(LINUX_KMOD_SUFFIX) +else MADWIFI_FILES:= \ $(PKG_BUILD_DIR)/net80211/wlan.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/net80211/wlan_scan_ap.$(LINUX_KMOD_SUFFIX) \ @@ -134,9 +137,13 @@ MADWIFI_FILES:= \ $(PKG_BUILD_DIR)/net80211/wlan_ccmp.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/net80211/wlan_tkip.$(LINUX_KMOD_SUFFIX) \ $(PKG_BUILD_DIR)/net80211/wlan_wep.$(LINUX_KMOD_SUFFIX) \ - $(PKG_BUILD_DIR)/net80211/wlan_xauth.$(LINUX_KMOD_SUFFIX) \ + $(PKG_BUILD_DIR)/net80211/wlan_xauth.$(LINUX_KMOD_SUFFIX) +endif -MADWIFI_AUTOLOAD:= \ +ifneq ($(CONFIG_MADWIFI_SINGLE_MODULE),) + MADWIFI_AUTOLOAD:= ath_hal +else + MADWIFI_AUTOLOAD:= \ wlan \ wlan_scan_ap \ wlan_scan_sta \ @@ -146,7 +153,8 @@ MADWIFI_AUTOLOAD:= \ wlan_ccmp \ wlan_tkip \ wlan_wep \ - wlan_xauth \ + wlan_xauth +endif ifeq ($(findstring AHB,$(BUS)),AHB) MADWIFI_FILES+= $(PKG_BUILD_DIR)/ath/ath_ahb.$(LINUX_KMOD_SUFFIX) @@ -202,14 +210,15 @@ MAKE_ARGS:= \ TOOLPATH="$(KERNEL_CROSS)" \ KERNELPATH="$(LINUX_DIR)" \ LDOPTS="--no-warn-mismatch " \ - ATH_RATE="ath_rate/$(RATE_CONTROL)" \ + ATH_RATE="$(RATE_CONTROL)" \ ATH_CAP_SUPERG_COMP="$(COMPRESSION)" \ DO_MULTI=1 \ + SINGLE_MODULE=$(if $(CONFIG_MADWIFI_SINGLE_MODULE),1) \ INCS="$(MADWIFI_INC)" \ $(if $(CONFIG_MADWIFI_DEBUG),,DEBUG=) WARNINGS="-Wno-unused" MAKE_VARS:= \ - COPTS="-DCONFIG_ATHEROS_RATE_DEFAULT='\"$(RATE_CONTROL)\"' -DATH_REVERSE_ENGINEERING=1" \ + COPTS="-DATH_REVERSE_ENGINEERING=1" \ ifeq ($(CONFIG_MADWIFI_UPSTREAM),) define Build/Prepare/HAL |