Simple script to build all configs

3 messages, 2 authors, 2006-10-06 · open the first message on its own page

Simple script to build all configs

From: Olof Johansson <hidden>
Date: 2006-10-06 02:53:34

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

Re: Simple script to build all configs

From: Jeremy Kerr <jk@ozlabs.org>
Date: 2006-10-06 03:23:28

Jeremy asked for it, so I figured more might have use for it. Simple
script to build all defconfigs for an arch.
Looks like I'll have someone to join me at reading school.

Olof - I think it was Michael who was asking about this?


Jeremy

Re: Simple script to build all configs

From: Olof Johansson <hidden>
Date: 2006-10-06 03:34:47

On Fri, 6 Oct 2006 13:23:28 +1000 Jeremy Kerr [off-list ref] wrote:
quoted
Jeremy asked for it, so I figured more might have use for it. Simple
script to build all defconfigs for an arch.
Looks like I'll have someone to join me at reading school.

Olof - I think it was Michael who was asking about this?
You're so alike it's so hard to tell you apart sometimes. :-)

Yes, I can't read either.


-Olof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help