From c494d0a5fdd33e22c1e0e9f95e8b71b9319783fd Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Tue, 18 Sep 2018 07:14:02 -0400 Subject: [PATCH] fix wget and allow packages to be overridden --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4c262b5d..984b2515 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ all: ifneq "$(TOOLCHAIN)" "" $(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- endif @@ -235,7 +235,7 @@ define define_module = if ! $(WGET) -O "$$@.tmp" $($1_url) ; then \ exit 1 ; \ fi ; \ - mv "$$@.tmp" "$@" \ + mv "$$@.tmp" "$$@" \ ) $(packages)/.$1-$($1_version)_verify: $(packages)/$($1_tar) echo "$($1_hash) $$^" | sha256sum --check -