diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-03-20 06:57:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-03-20 06:57:01 +0000 |
commit | 35f9e31068b4542018ba570708e1c1c98cd804cf (patch) | |
tree | 9951efeb8096387152f4606cf90ae7ec939bfbb4 | |
parent | 3b61a2ed5b527e70b308f07f3f19b7694a484abd (diff) | |
download | upstream-35f9e31068b4542018ba570708e1c1c98cd804cf.tar.gz upstream-35f9e31068b4542018ba570708e1c1c98cd804cf.tar.bz2 upstream-35f9e31068b4542018ba570708e1c1c98cd804cf.zip |
madwifi: add support for drop-in hal replacements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10629 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/madwifi/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/madwifi/Makefile b/package/madwifi/Makefile index 43ffb34094..918424db2d 100644 --- a/package/madwifi/Makefile +++ b/package/madwifi/Makefile @@ -134,6 +134,18 @@ MAKE_ARGS:= \ MAKE_VARS:= \ COPTS="-DCONFIG_ATHEROS_RATE_DEFAULT='\"$(RATE_CONTROL)\"'" \ +HALFILE:=$(lastword $(sort $(wildcard ./ath_hal-*.tgz))) +ifneq ($(HALFILE),) + define Build/Prepare + $(call Build/Prepare/Default) + rm -rf $(PKG_BUILD_DIR)/tmp + mkdir -p $(PKG_BUILD_DIR)/tmp + tar xvzf $(HALFILE) -C $(PKG_BUILD_DIR)/tmp + $(CP) $(PKG_BUILD_DIR)/tmp/ath_hal*/* $(PKG_BUILD_DIR)/hal/ + rm -rf $(PKG_BUILD_DIR)/tmp + endef +endif + ifeq ($(findstring AHB,$(BUS)),AHB) define Build/Compile/ahb $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS) BUS="AHB" modules |