summaryrefslogtreecommitdiff
path: root/package/firmware
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-16 14:36:53 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-16 14:42:12 +0100
commit7747fac37544e5d2ea70dfc8eecab21a80d0ec65 (patch)
treebf21eddd2de67a14ece5bdb229c05b8bf9ec58f0 /package/firmware
parent7416d2e046b87b262b407f8af70b8dd9b2927c70 (diff)
downloadmtk-20170518-7747fac37544e5d2ea70dfc8eecab21a80d0ec65.zip
mtk-20170518-7747fac37544e5d2ea70dfc8eecab21a80d0ec65.tar.gz
mtk-20170518-7747fac37544e5d2ea70dfc8eecab21a80d0ec65.tar.bz2
ath10k-firmware: untangle CT firmware filenames, fix conflicts
CT firmware files use the same filename with a different URL for different chips. Since all files end up in dl/, filenames need to be unique as well. Add a chip prefix to the output filename to fix this issue. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/firmware')
-rw-r--r--package/firmware/ath10k-firmware/Makefile30
1 files changed, 17 insertions, 13 deletions
diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
index c15adc3..458dd82 100644
--- a/package/firmware/ath10k-firmware/Makefile
+++ b/package/firmware/ath10k-firmware/Makefile
@@ -66,27 +66,31 @@ $(Package/ath10k-firmware-default)
CATEGORY:=Firmware
endef
-QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-18.rc2-lede
-QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.005
-QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.005
+CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
+
+define Download/ct-firmware
+ URL:=https://www.candelatech.com/downloads/$(2)
+ FILE:=$(call CT_FIRMWARE_FILE,$(1))
+ URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
+endef
+QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-18.rc2-lede
define Download/ath10k-firmware-qca988x-ct
- URL:=https://www.candelatech.com/downloads/
- FILE:=$(QCA988X_FIRMWARE_FILE_CT)
+ $(call Download/ct-firmware,QCA988X,)
MD5SUM:=665482e1fd20a410627996c9a0b93411
endef
$(eval $(call Download,ath10k-firmware-qca988x-ct))
+QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.005
define Download/ath10k-firmware-qca99x0-ct
- URL:=https://www.candelatech.com/downloads/ath10k-10-4/
- FILE:=$(QCA99X0_FIRMWARE_FILE_CT)
+ $(call Download/ct-firmware,QCA99X0,ath10k-10-4)
MD5SUM:=a63d9651e884bbb38ed6ff722f6c6951
endef
$(eval $(call Download,ath10k-firmware-qca99x0-ct))
+QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.006
define Download/ath10k-firmware-qca9984-ct
- URL:=https://www.candelatech.com/downloads/ath10k-9984-10-4/
- FILE:=$(QCA9984_FIRMWARE_FILE_CT)
+ $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4)
MD5SUM:=b2427376dbfdb083b3d27cf42b2c525d
endef
$(eval $(call Download,ath10k-firmware-qca9984-ct))
@@ -125,7 +129,7 @@ endef
define Package/ath10k-firmware-qca9984-ct/description
Alternative ath10k firmware for QCA9984 from Candela Technologies.
Enables IBSS and other features. See:
-http://www.candelatech.com/ath10k-10.4-9984.php
+http://www.candelatech.com/ath10k-10.4.php
This firmware conflicts with the standard 9984 firmware, so select only
one.
endef
@@ -205,7 +209,7 @@ define Package/ath10k-firmware-qca988x-ct/install
$(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/
$(INSTALL_DATA) \
- $(DL_DIR)/$(QCA988X_FIRMWARE_FILE_CT) \
+ $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
endef
@@ -236,7 +240,7 @@ define Package/ath10k-firmware-qca99x0-ct/install
$(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
$(INSTALL_DATA) \
- $(DL_DIR)/$(QCA99X0_FIRMWARE_FILE_CT) \
+ $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
$(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
endef
@@ -262,7 +266,7 @@ define Package/ath10k-firmware-qca9984-ct/install
$(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
$(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
$(INSTALL_DATA) \
- $(DL_DIR)/$(QCA9984_FIRMWARE_FILE_CT) \
+ $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
$(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
endef