[openwrt/openwrt] build: depend on tools/zstd for download

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 10 10:09:14 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/c0b10f74428c92a4505c3390837cde5ef68672bd

commit c0b10f74428c92a4505c3390837cde5ef68672bd
Author: Andreas Gnau <andreas.gnau at iopsys.eu>
AuthorDate: Wed Dec 10 18:21:45 2025 +0100

    build: depend on tools/zstd for download
    
    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 at iopsys.eu>
    Link: https://github.com/openwrt/openwrt/pull/21125
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
    (cherry picked from commit f3e4620f592be9413a5c71fbc4b664c50a158faa)
---
 include/toplevel.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/toplevel.mk b/include/toplevel.mk
index 092dff786c..5923d089fc 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -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




More information about the lede-commits mailing list