]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
build: depend on tools/zstd for download
authorAndreas Gnau <andreas.gnau@iopsys.eu>
Wed, 10 Dec 2025 17:21:45 +0000 (18:21 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 10 Dec 2025 18:09:01 +0000 (19:09 +0100)
Downloading packages from git requires zstd to compress their tarballs.
Make sure that zstd from host tools is compiled when running make
download. Otherwise, either the download would fail because zstd is not
present or a random version from the host would be used leading to hash
mismatches.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Link: https://github.com/openwrt/openwrt/pull/21125
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit f3e4620f592be9413a5c71fbc4b664c50a158faa)

include/toplevel.mk

index 092dff786c99226b8a2ef419f6982a1acceaa588..5923d089fc36e9f2e369288ad74d16fa5a973dd4 100644 (file)
@@ -201,7 +201,7 @@ else
   DOWNLOAD_DIRS = package/download
 endif
 
-download: .config FORCE $(if $(wildcard $(STAGING_DIR_HOST)/bin/flock),,tools/flock/compile)
+download: .config FORCE $(if $(wildcard $(STAGING_DIR_HOST)/bin/flock),,tools/flock/compile) $(if $(wildcard $(STAGING_DIR_HOST)/bin/zstd),,tools/zstd/compile)
        @+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
 
 clean dirclean: .config