Skip to content
Snippets Groups Projects
Commit 3fa3adc7 authored by Troy Kisky's avatar Troy Kisky
Browse files

make_boundary: script to make all boundary boards


make_boundary: exclude mx6qsabrelite configuration
make_boundary: verify DEFCONFIG macro is set properly
make_boundary: move defcfg test lower so that 'make all' result is not lost
make_boundary: improve boards determination

Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>

make_boundary: add parallel jobs capability

Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
parent 442df54a
No related branches found
No related tags found
No related merge requests found
savedir=../u-boot-images
mkdir -p $savedir
rm $savedir/*
boards=$(cd configs && grep -l DEFCONFIG * | sed 's/_defconfig.*$//');
cpus=`grep -c '^processor' /proc/cpuinfo` ;
jobs=`expr $cpus + 2` ;
numboards=0;
numsuccess=0;
numfailures=0;
for board in $boards ; do
if [ $board != "mx6qsabrelite" ] ; then
make distclean ; make ${board}_defconfig
make all -j $jobs
if [ $? -ne 0 ]; then
numfailures=`expr $numfailures + 1`;
echo -e "\n\n\n!!!!!!!! build failure for $board !!!!!!!!!!!!\n\n";
read line;
else
cp -fv u-boot.imx $savedir/u-boot.${board};
ls -l $savedir/u-boot.${board};
numsuccess=`expr $numsuccess + 1`;
fi
defcfg=$(sed -n -e's/.\{1,\}DEFCONFIG=\\"\(.\{1,\}\)\\""/\1/p' configs/${board}_defconfig)
if [ "$defcfg" != "$board" ] ; then
echo -e "\n\n\n!!!!!!!! $board does not match $defcfg !!!!!!!!!!!!\n\n";
read line;
fi
numboards=`expr $numboards + 1`;
fi
done
make distclean ;
echo -e "\n\n\nbuilt for ${numboards} boards. ${numsuccess} succeeded and ${numfailures} failed";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment