]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath11k-firmware: move Download eval to top level 23628/head
authorMichael Pfeifroth <michael.pfeifroth@westermo.com>
Tue, 2 Jun 2026 11:51:04 +0000 (13:51 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 4 Jun 2026 20:40:44 +0000 (22:40 +0200)
Move the $(eval $(call Download,ath11k-legacy-firmware)) from inside
Build/Prepare to the top level, right after the Download definition.

When the eval is inside Build/Prepare, it only runs at recipe execution
time (during compilation). This makes the legacy firmware source
invisible to 'make download', which only evaluates Download definitions
at Makefile parse time. As a result, offline builds fail because the
source was never fetched during the download phase.

This is consistent with how ath10k-ct-firmware handles multiple
Download definitions (all at top level).

Signed-off-by: Michael Pfeifroth <michael.pfeifroth@westermo.com>
Link: https://github.com/openwrt/openwrt/pull/23628
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/firmware/ath11k-firmware/Makefile

index 63562f7718f683b2ca30bc80d5e0e8bd120861da..18d7bac08154fc0241ead96ff72686aa63cdc7a2 100644 (file)
@@ -39,6 +39,7 @@ define Download/$(ATH11K_LEGACY_FW_NAME)
        MIRROR_HASH:=b55bf7204543c7ba87876e84788239b0e47ad62434c5b0d1169526cde36a9daa
        SUBDIR:=$(ATH11K_LEGACY_FW_SUBDIR)
 endef
+$(eval $(call Download,$(ATH11K_LEGACY_FW_NAME)))
 
 define Package/ath11k-firmware-default
   SECTION:=firmware
@@ -65,8 +66,6 @@ define Build/Clean
 endef
 
 define Build/Prepare
-       $(eval $(call Download,ath11k-legacy-firmware))
-       
        $(call Build/Prepare/Default,)
 
        $(TAR) -C $(BUILD_DIR) -xf $(DL_DIR)/$(ATH11K_LEGACY_FW_SOURCE)