summaryrefslogtreecommitdiffstats
path: root/allmake.sh
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2013-01-20 12:19:15 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2013-01-20 12:19:15 -0800
commitff10318e702301ccec8bedc8fa1269086ecd5495 (patch)
tree616574e8d9d567475b641de7a8dfb5908041561c /allmake.sh
parentca6145d5f06f8a7f02cd5f8807780483619ac518 (diff)
parent34a3d16d0504d2b5039173876f42c0ab7e2dceb0 (diff)
downloadktest-ff10318e702301ccec8bedc8fa1269086ecd5495.tar.gz
ktest-ff10318e702301ccec8bedc8fa1269086ecd5495.tar.xz
ktest-ff10318e702301ccec8bedc8fa1269086ecd5495.zip
Merge branch 'master' of ssh://terminus.zytor.com/home/hpa/ktest/ktest
Diffstat (limited to 'allmake.sh')
-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.$$