Skip to content

Commit f3e4620

Browse files
RondomAnsuel
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21125 Signed-off-by: Christian Marangi <[email protected]>
1 parent 4e4986a commit f3e4620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/toplevel.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ else
201201
DOWNLOAD_DIRS = package/download
202202
endif
203203

204-
download: .config FORCE $(if $(wildcard $(STAGING_DIR_HOST)/bin/flock),,tools/flock/compile)
204+
download: .config FORCE $(if $(wildcard $(STAGING_DIR_HOST)/bin/flock),,tools/flock/compile) $(if $(wildcard $(STAGING_DIR_HOST)/bin/zstd),,tools/zstd/compile)
205205
@+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);)
206206

207207
clean dirclean: .config

0 commit comments

Comments
 (0)