]> git.ozlabs.org Git - next-scripts/blob - do_build
do_build: Disable CONFIG_BUILD_DOCSRC for allmodconfig
[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 $gcc_version O=\$d ppc64_defconfig
28         time cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d -j$j_factor -s
29
30         echo Building: x86_64 allmodconfig
31         d=../x86_64_allmodconfig
32         [ -d \$d ] || mkdir \$d
33         e=\$d.except
34         echo CONFIG_BUILD_DOCSRC=n >\$e
35         KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c $gcc_version O=\$d allmodconfig
36         time cross -n -N -a x86_64 -c $gcc_version O=\$d -j$j_factor -s
37
38         echo Building: arm multi_v7_defconfig
39         d=../arm_multi_v7_defconfig
40         [ -d \$d ] || mkdir \$d
41         cross -n -N -a arm -c $gcc_version O=\$d multi_v7_defconfig
42         time cross -n -N -a arm -c $gcc_version O=\$d -j$j_factor -s
43
44         rm .scmversion
45 EOF