]> git.ozlabs.org Git - next-scripts/blobdiff - do_last_build
do_last_build: kconfig now does the right thing for allyesconfig
[next-scripts] / do_last_build
index 0717f2de572a50b776dce7a8c7a4e03f4fbaacdf..1d045e79b608e4b84699ea73fe0b9ce6bc730041 100755 (executable)
@@ -1,23 +1,13 @@
 #!/bin/sh
 
-build_host="ka2"
-build_dir="/scratch/sfr/next"
-
-[ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST"
-[ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
-
-[ -n "$1" ] && {
-       build_host="$1"
-       shift
-}
-[ -n "$1" ] && {
-       build_dir="$1"
-       shift
-}
+. "$(dirname $0)/common.sh"
 
 set -e
 
-ssh "$build_host" /bin/sh -e <<-EOF
+##ssh "$build_host" /bin/sh -e <<-EOF
+ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
+       set -e
+
        echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
        export LANG=C
 
@@ -28,17 +18,17 @@ ssh "$build_host" /bin/sh -e <<-EOF
 
        d=../powerpc_allnoconfig
        [ -d \$d ] || mkdir \$d
-       cross -n -N -k powerpc -a powerpc64 -c 4.8 O=\$d allnoconfig
-       cross -n -N -k powerpc -a powerpc64 -c 4.8 O=\$d -j64 -s
+       cross -n -N -k powerpc -a powerpc64 -c 4.8.1 O=\$d allnoconfig
+       cross -n -N -k powerpc -a powerpc64 -c 4.8.1 O=\$d -j64 -s
 
        d=../powerpc64_allnoconfig
        [ -d \$d ] || mkdir \$d
        e=\$d.except
        echo CONFIG_PPC64=y >\$e
        KCONFIG_ALLCONFIG=\$e \
-               cross -n -N -k powerpc -a powerpc64 -c 4.8 O=\$d allnoconfig
+               cross -n -N -k powerpc -a powerpc64 -c 4.8.1 O=\$d allnoconfig
        rm \$e
-       cross -n -N -k powerpc -a powerpc64 -c 4.8 O=\$d -j64 -s
+       cross -n -N -k powerpc -a powerpc64 -c 4.8.1 O=\$d -j64 -s
 
        d=../powerpc_ppc44x_defconfig
        [ -d \$d ] || mkdir \$d
@@ -47,13 +37,8 @@ ssh "$build_host" /bin/sh -e <<-EOF
 
        d=../powerpc_allyesconfig
        [ -d \$d ] || mkdir \$d
-       e=\$d.except
-       echo CONFIG_PROFILE_ALL_BRANCHES=n >\$e
-       echo CONFIG_DEBUG_INFO=n >>\$e
-       KCONFIG_ALLCONFIG=\$e \
-               cross -n -N -k powerpc -a powerpc64 -c 4.8 O=\$d allyesconfig
-       rm \$e
-       cross -n -N -k powerpc -a powerpc64 -c 4.8 -- O=\$d -j64 -s -k || true
+       cross -n -N -k powerpc -a powerpc64 -c 4.8.1 O=\$d allyesconfig
+       cross -n -N -k powerpc -a powerpc64 -c 4.8.1 -- O=\$d -j64 -s -k || true
 EOF
 
 for a in i386 sparc64 sparc:sparc64 arm
@@ -61,7 +46,10 @@ do
        ka=${a%:*}
        ca=${a#*:}
        d=../${ka}_defconfig
-       ssh "$build_host" /bin/sh -e <<-EOF
+       ##ssh "$build_host" /bin/sh -e <<-EOF
+       ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
+               set -e
+
                echo \$PATH | grep -q "\$HOME/bin" ||
                        export PATH="\$HOME/bin:\$PATH"
                export LANG=C