From: Michael Tremer Date: Wed, 24 May 2017 11:17:30 +0000 (+0200) Subject: Fix environment variables when building file list for core updates X-Git-Tag: v2.19-core112~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ddd5b66a9f436c0f2f5f7a8d3b549c4f11a5e84;p=people%2Fstevee%2Fipfire-2.x.git Fix environment variables when building file list for core updates Signed-off-by: Michael Tremer --- diff --git a/lfs/core-updates b/lfs/core-updates index 75a8415f6f..3c847daf28 100644 --- a/lfs/core-updates +++ b/lfs/core-updates @@ -56,7 +56,8 @@ core/%: eval $$(cat /usr/src/config/rootfiles/$@/meta) #Generate ROOTFILES from filelists - $(DIR_SRC)/src/scripts/archive.files \ + BUILD_ARCH=$(BUILD_ARCH) BUILDTARGET=$(BUILDTARGET) KVER=$(KVER) \ + $(DIR_SRC)/src/scripts/archive.files \ $(DIR_SRC)/config/rootfiles/$@/filelists \ $(DIR_SRC)/config/rootfiles/$@/files \ $(DIR_SRC)/config/rootfiles/$@/files.$(BUILD_ARCH) \ diff --git a/src/scripts/archive.files b/src/scripts/archive.files index 0ed237bfcb..45de8c78de 100755 --- a/src/scripts/archive.files +++ b/src/scripts/archive.files @@ -19,6 +19,13 @@ # # ############################################################################### +for i in BUILD_ARCH BUILDTARGET KVER; do + if [ -z "${!i}" ]; then + echo "${i} not set" >&2 + exit 1 + fi +done + FILELIST= for dir in $@; do