summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2013-01-15 01:10:27 (GMT)
committerH. Peter Anvin <hpa@linux.intel.com>2013-01-15 01:10:27 (GMT)
commit9c152b34248eaf3e063b7bc0fb7161e0d4e41b48 (patch)
treea24438ead34ba34c8242a72b954ab38e844e48ec
parentd39ee158d390d89bd97344cb7b5a6e38b17141c4 (diff)
downloadktest-9c152b34248eaf3e063b7bc0fb7161e0d4e41b48.zip
ktest-9c152b34248eaf3e063b7bc0fb7161e0d4e41b48.tar.gz
ktest-9c152b34248eaf3e063b7bc0fb7161e0d4e41b48.tar.bz2
ktest-9c152b34248eaf3e063b7bc0fb7161e0d4e41b48.tar.xz
allmake.sh: set environment variables transiently
-rwxr-xr-xallmake.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/allmake.sh b/allmake.sh
index 0a5111b..8fd8c53 100755
--- a/allmake.sh
+++ b/allmake.sh
@@ -14,7 +14,7 @@ if [ -z "$ALL" ]; then
ALL="$canned $special"
fi
-here=`dirname "$0"`
+here="$(cd "$(dirname "$0")" && pwd)"
if [ -z "$JOBS" ]; then
cpus=$(grep '^processor' < /proc/cpuinfo | wc -l)
@@ -45,13 +45,9 @@ done
for a in x86_64 i386; do
if [ "$a" = i386 ]; then gccopt=' -m32'; else gccopt=''; fi
mkdir -p o.$a-allconfig o.$a-modconfig o.$a-noconfig
- export KCONFIG_ALLCONFIG="$here"/override.yes
- make ARCH=$a O=o.$a-allconfig CC="$gcc$gccopt" allyesconfig
- export KCONFIG_ALLCONFIG="$here"/override.mod
- make ARCH=$a O=o.$a-modconfig CC="$gcc$gccopt" allmodconfig
- export KCONFIG_ALLCONFIG="$here"/override.no
- make ARCH=$a O=o.$a-noconfig CC="$gcc$gccopt" allnoconfig
- unset KCONFIG_ALLCONFIG
+ KCONFIG_ALLCONFIG="$here"/override.yes make ARCH=$a O=o.$a-allconfig CC="$gcc$gccopt" allyesconfig
+ KCONFIG_ALLCONFIG="$here"/override.mod make ARCH=$a O=o.$a-modconfig CC="$gcc$gccopt" allmodconfig
+ KCONFIG_ALLCONFIG="$here"/override.no make ARCH=$a O=o.$a-noconfig CC="$gcc$gccopt" allnoconfig
done
MKFILE=/tmp/allmake.$$