Simple script to build all configs
Olof Johansson
olof at lixom.net
Fri Oct 6 12:53:34 EST 2006
Jeremy asked for it, so I figured more might have use for it. Simple
script to build all defconfigs for an arch.
I use it with ARCH and CROSS_COMPILE set outside of the script, i.e.
$ ARCH=powerpc ~/bin/buildall
I also pass in TARGET="vmlinux modules" in cases where default targets
don't build (very common on ARCH=ppc).
#!/bin/sh
export CC="ccache gcc"
make mrproper
for config in arch/$ARCH/configs/* ; do
CONFIG=`basename $config`
echo -n $ARCH.$CONFIG: ;
yes "" | make $CONFIG >buildall.log 2>&1
if make $TARGET -j 5 >>buildall.log 2>&1 ; then
mv buildall.log $ARCH.$CONFIG.log.passed
echo " passed"
else
mv buildall.log $ARCH.$CONFIG.log.failed
echo " failed"
fi
done
More information about the Linuxppc-dev
mailing list