]> git.ozlabs.org Git - next-scripts/blobdiff - do_build
make_tree_file: do some tidying up
[next-scripts] / do_build
index b36d6b2fec75421005c14381585ac6b49603bbb6..852b9503b1924fe6cfad35e530a09ad2d60b28a7 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -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
 
@@ -27,19 +17,25 @@ ssh "$build_host" /bin/sh -e <<-EOF
        export TMPDIR="${build_dir%/*}/tmp"
 
        git reset --hard next
+       touch .scmversion
 
+       echo Building: powerpc ppc64_defconfig
        d=../powerpc_ppc64_defconfig
        [ -d \$d ] || mkdir \$d
-       cross -n -N -a powerpc64 -k powerpc -c 4.8 O=\$d ppc64_defconfig
-       cross -n -N -a powerpc64 -k powerpc -c 4.8 O=\$d -j64 -s
+       cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d ppc64_defconfig
+       cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d -j48 -s
 
+       echo Building: x86_64 allmodconfig
        d=../x86_64_allmodconfig
        [ -d \$d ] || mkdir \$d
-       e=\$d.except
-       echo CONFIG_PROFILE_ALL_BRANCHES=n >\$e
-       echo CONFIG_DEBUG_INFO=n >>\$e
-       echo CONFIG_X86_DECODER_SELFTEST=n >>\$e
-       KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c 4.8 O=\$d allmodconfig
-       rm \$e
-       cross -n -N -a x86_64 -c 4.8 O=\$d -j64 -s
+       cross -n -N -a x86_64 -c 4.9.0 O=\$d allmodconfig
+       cross -n -N -a x86_64 -c 4.9.0 O=\$d -j48 -s
+
+       echo Building: arm multi_v7_defconfig
+       d=../arm_multi_v7_defconfig
+       [ -d \$d ] || mkdir \$d
+       cross -n -N -a arm -c 4.9.0 O=\$d multi_v7_defconfig
+       cross -n -N -a arm -c 4.9.0 O=\$d -j48 -s
+
+       rm .scmversion
 EOF