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 | 0e58011e621ad46c55b9ea5a42de48f960fed1c1 (patch) | |
tree | 6949ab7b5ff7f0db47395520faf75e218807a7fc /package | |
parent | 69c4c6c5a90f5a2f2a6631a8f0d11c132ef3cb2d (diff) | |
download | mtk-20170518-0e58011e621ad46c55b9ea5a42de48f960fed1c1.zip mtk-20170518-0e58011e621ad46c55b9ea5a42de48f960fed1c1.tar.gz mtk-20170518-0e58011e621ad46c55b9ea5a42de48f960fed1c1.tar.bz2 |
madwifi: add support for drop-in hal replacements
SVN-Revision: 10629
Diffstat (limited to 'package')
-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 43ffb34..918424d 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 |