Skip to content

Commit 017b421

Browse files
committed
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 a random version from the host is used which will lead to hash mismatches, or the download would fail because zstd is not present. Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
1 parent 4e4986a commit 017b421

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)