From: Felix Fietkau Date: Thu, 20 Mar 2008 06:57:01 +0000 (+0000) Subject: madwifi: add support for drop-in hal replacements X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0e58011e621ad46c55b9ea5a42de48f960fed1c1;p=openwrt%2Fstaging%2Fkaloz.git madwifi: add support for drop-in hal replacements SVN-Revision: 10629 --- 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