fix wget and allow packages to be overridden

This commit is contained in:
Trammell hudson 2018-09-18 07:14:02 -04:00
parent 5555e9e8ac
commit c494d0a5fd
Failed to extract signature

View File

@ -3,7 +3,7 @@ all:
ifneq "$(TOOLCHAIN)" "" ifneq "$(TOOLCHAIN)" ""
$(info Using $(TOOLCHAIN) for cross compiler and packages) $(info Using $(TOOLCHAIN) for cross compiler and packages)
packages := $(TOOLCHAIN)/packages packages ?= $(TOOLCHAIN)/packages
CROSS := $(TOOLCHAIN)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl- CROSS := $(TOOLCHAIN)/crossgcc/x86_64-linux-musl/bin/x86_64-linux-musl-
endif endif
@ -235,7 +235,7 @@ define define_module =
if ! $(WGET) -O "$$@.tmp" $($1_url) ; then \ if ! $(WGET) -O "$$@.tmp" $($1_url) ; then \
exit 1 ; \ exit 1 ; \
fi ; \ fi ; \
mv "$$@.tmp" "$@" \ mv "$$@.tmp" "$$@" \
) )
$(packages)/.$1-$($1_version)_verify: $(packages)/$($1_tar) $(packages)/.$1-$($1_version)_verify: $(packages)/$($1_tar)
echo "$($1_hash) $$^" | sha256sum --check - echo "$($1_hash) $$^" | sha256sum --check -