]> git.ozlabs.org Git - next-scripts/blob - do_build
do_build: Report the build host
[next-scripts] / do_build
1 #!/bin/sh
2
3 . "$(dirname $0)/common.sh"
4
5 set -e
6
7 ###ssh "$build_host" /bin/sh -e <<-EOF
8 ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
9         set -e
10
11         echo Building on \$(hostname)
12
13         echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
14         export LANG=C
15
16         cd "$build_dir"
17
18         export CCACHE_DIR="${build_dir%/*}/.ccache"
19         export TMPDIR="${build_dir%/*}/tmp"
20
21         git reset --hard next
22         touch .scmversion
23
24         echo Building: powerpc ppc64_defconfig
25         d=../powerpc_ppc64_defconfig
26         [ -d \$d ] || mkdir \$d
27         cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d ppc64_defconfig
28         cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d -j48 -s
29
30         echo Building: x86_64 allmodconfig
31         d=../x86_64_allmodconfig
32         [ -d \$d ] || mkdir \$d
33         cross -n -N -a x86_64 -c 4.9.0 O=\$d allmodconfig
34         cross -n -N -a x86_64 -c 4.9.0 O=\$d -j48 -s
35
36         echo Building: arm multi_v7_defconfig
37         d=../arm_multi_v7_defconfig
38         [ -d \$d ] || mkdir \$d
39         cross -n -N -a arm -c 4.9.0 O=\$d multi_v7_defconfig
40         cross -n -N -a arm -c 4.9.0 O=\$d -j48 -s
41
42         rm .scmversion
43 EOF