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