- d=../x86_64_allmodconfig
- [ -d \$d ] || mkdir \$d
- e=\$d.except
- echo CONFIG_BUILD_DOCSRC=n >\$e
- KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c $gcc_version O=\$d allmodconfig
- time cross -n -N -a x86_64 -c $gcc_version O=\$d -j$j_factor -s
+ d="$bparent/x86_64_allmodconfig"
+ [ -d \$d ] || mkdir \$d || exit 1
+ log_x86=\$d.log
+ make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=\$d -s allmodconfig || exit 1
+ echo "Forking x86 build ..."
+ /usr/bin/time make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=\$d -j100 -O -s > \$log_x86 2>&1 &
+ x86_64_pid=\$!
+
+ echo Building: perf
+ d="$bparent/perf"
+ [ -d \$d ] || mkdir \$d || exit 1
+ log_perf=\$d.log
+ # the -Wno-psabi is to suppress
+ # note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5
+ # warnings until at least gcc 12 when the warning will be removed
+ /usr/bin/time make -C tools/perf -f Makefile.perf -s -O -j40 O=\$d EXTRA_CFLAGS=-Wno-psabi > \$log_perf 2>&1
+ rc=\$?
+
+ if [ \$rc -ne 0 ]; then
+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ echo "ERROR: perf build failed - log follows"
+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ cat \$log_perf
+ kill \$x86_64_pid || true
+ killall make
+ rm .scmversion
+ exit 1
+ else
+ show_log native perf \$log_perf
+ fi
+
+ echo Building: powerpc ppc64_defconfig
+ d="$bparent/powerpc_ppc64_defconfig"
+ [ -d \$d ] || mkdir \$d || exit 1
+ log_ppc=\$d.log
+ make ARCH=powerpc O=\$d -s ppc64_defconfig || exit 1
+ /usr/bin/time make ARCH=powerpc O=\$d -j40 -O -s > \$log_ppc 2>&1
+ rc=\$?
+
+ if [ \$rc -ne 0 ]; then
+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ echo "ERROR: powerpc ppc64_defconfig build failed - log follows"
+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
+ cat \$log_ppc
+ kill \$x86_64_pid || true
+ killall make
+ rm .scmversion
+ exit 1
+ else
+ show_log powerpc ppc64_defconfig \$log_ppc
+ fi