]> git.ozlabs.org Git - next-scripts/blob - do_build
limit the rebuilding of the module stubs
[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 \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
12         export LANG=C
13
14         cd "$build_dir"
15
16         export CCACHE_DIR="${build_dir%/*}/.ccache"
17         export TMPDIR="${build_dir%/*}/tmp"
18
19         git reset --hard next
20         touch .scmversion
21
22         d=../powerpc_ppc64_defconfig
23         [ -d \$d ] || mkdir \$d
24         cross -n -N -a powerpc64 -k powerpc -c 4.8.1 O=\$d ppc64_defconfig
25         cross -n -N -a powerpc64 -k powerpc -c 4.8.1 O=\$d -j64 -s
26
27         d=../x86_64_allmodconfig
28         [ -d \$d ] || mkdir \$d
29         e=\$d.except
30         cat >\$e <<REOF
31                 CONFIG_PROFILE_ALL_BRANCHES=n
32                 CONFIG_DEBUG_INFO=n
33                 CONFIG_X86_DECODER_SELFTEST=n
34                 CONFIG_MODULES=y
35         REOF
36         KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c 4.8.1 O=\$d allmodconfig
37         rm \$e
38         cross -n -N -a x86_64 -c 4.8.1 O=\$d -j64 -s
39 EOF