[REPOST] script to build all defconfigs

Olof Johansson olof at lixom.net
Thu Nov 15 07:32:48 EST 2007


I've been asked to post the script again, might as well update with the
latest version.

See below. I normally use this as:

$ CROSS_COMPILE= ARCH=powerpc TARGET="vmlinux modules" buildall

modules won't build on some of the embedded platforms though, so you'll
have to weed out those build errors by hand, or do:

$ CROSS_COMPILE= ARCH=powerpc TARGET=vmlinux buildall


---

#!/bin/bash

#export CC="ccache gcc"

echo -n cleaning:
make $O -ks mrproper
echo "  done"

for config in arch/$ARCH/configs/* allnoconfig allmodconfig allyesconfig ; do
	CONFIG=`basename $config`
	echo -n $ARCH.$CONFIG: ;
	yes "" | make $O $CONFIG >buildall.log 2>&1
	if time make $O $TARGET -ksj 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