make.sh: Cleanup of polluted environment

The build environment is using a number of variables which
occasionally conflicted with some other build systems.

This patch cleans that up by renaming some variables and
later unexporting them in the lfs files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-04-20 17:09:42 +02:00
parent 174498ef96
commit dc7d6b204d
27 changed files with 176 additions and 183 deletions

View File

@@ -31,7 +31,7 @@ for dir in $@; do
continue
fi
for exclude in ${dir}/${MACHINE}/*; do
for exclude in ${dir}/${BUILD_ARCH}/*; do
[ -f "${exclude}" ] || continue
EXCLUDE="$EXCLUDE $exclude"
done
@@ -52,4 +52,4 @@ for dir in $@; do
done
cat ${FILELIST} 2>/dev/null | grep -v ^# | sort | uniq | \
sed -e "s/KVER/${KVER}/g" -e "s/MACHINE/${MACHINE}/g" -e "s/BUILDTARGET/${BUILDTARGET}/g"
sed -e "s/KVER/${KVER}/g" -e "s/MACHINE/${BUILD_ARCH}/g" -e "s/BUILDTARGET/${BUILDTARGET}/g"