- speed up board comparison by only building abuild configs, not the whole
target. - use a template for mktemp (fixes OSX error) - convert all numbers to hex to make comparison easier. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
1a4d90078a
commit
50b5b2b4ee
|
@ -16,7 +16,7 @@ done
|
||||||
|
|
||||||
BOARDPATH=`echo $1 | sed s,/,_,g`
|
BOARDPATH=`echo $1 | sed s,/,_,g`
|
||||||
|
|
||||||
A=`mktemp`
|
A=`mktemp tmp.XXXXXXXXXX`
|
||||||
rm -rf $A
|
rm -rf $A
|
||||||
mkdir -p $A
|
mkdir -p $A
|
||||||
|
|
||||||
|
@ -92,6 +92,15 @@ sed \
|
||||||
normalize $A/old.filtered > $A/old.normalized
|
normalize $A/old.filtered > $A/old.normalized
|
||||||
normalize $A/new.filtered > $A/new.normalized
|
normalize $A/new.filtered > $A/new.normalized
|
||||||
|
|
||||||
diff -u $A/old.normalized $A/new.normalized |grep ^[+-][^+-]|sed -e "s,^+,p ," -e "s,^-,m ," |sort -k2,2 -k1,1 |sed -e "s,^p ,+," -e "s,^m ,-,"
|
diff -u $A/old.normalized $A/new.normalized | \
|
||||||
|
grep ^[+-][^+-] | \
|
||||||
|
sed -e "s,^+,p ," -e "s,^-,m ," | \
|
||||||
|
sort -k2,2 -k1,1 | \
|
||||||
|
sed -e "s,^p ,+," -e "s,^m ,-," | \
|
||||||
|
while read line; do
|
||||||
|
key=`echo $line|cut -f1 -d\=`
|
||||||
|
value=`echo $line|cut -f2 -d\= | tr -d \\;`
|
||||||
|
printf "%s = 0x%x\n" "$key" $value
|
||||||
|
done
|
||||||
|
|
||||||
rm -rf $A
|
rm -rf $A
|
||||||
|
|
|
@ -61,7 +61,7 @@ for dir in $ALLTARGETS; do
|
||||||
result=`$MAKE > $TARGETDIR/$name.buildcoreboot.log 2>&1 && echo ok || echo fail`
|
result=`$MAKE > $TARGETDIR/$name.buildcoreboot.log 2>&1 && echo ok || echo fail`
|
||||||
echo "$result."
|
echo "$result."
|
||||||
if [ "$result" = "ok" ]; then
|
if [ "$result" = "ok" ]; then
|
||||||
util/abuild/abuild -t $dir
|
util/abuild/abuild -C -t $dir
|
||||||
sh util/compareboard/compareboard $dir | tee $TARGETDIR/$name.variables.txt
|
sh util/compareboard/compareboard $dir | tee $TARGETDIR/$name.variables.txt
|
||||||
fi
|
fi
|
||||||
echo "$dir $result" >> $TARGETDIR/_overview.txt
|
echo "$dir $result" >> $TARGETDIR/_overview.txt
|
||||||
|
|
Loading…
Reference in New Issue