#!/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
export TMPDIR="${build_dir%/*}/tmp"
git reset --hard next
+ touch .scmversion
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.8.1 O=\$d ppc64_defconfig
+ cross -n -N -a powerpc64 -k powerpc -c 4.8.1 O=\$d -j64 -s
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.8.1 O=\$d allmodconfig
+ cross -n -N -a x86_64 -c 4.8.1 O=\$d -j64 -s
+
+ d=../arm_multi_v7_defconfig
+ [ -d \$d ] || mkdir \$d
+ cross -n -N -a arm -c 4.6 O=\$d multi_v7_defconfig
+ cross -n -N -a arm -c 4.6 O=\$d -j64 -s
+
+ rm .scmversion
EOF