-#!/bin/sh
+#!/bin/bash
# Print statistics when we exit
trap exit 1 2 3 15
ERR_CNT=0
ERR_LIST=""
TOTAL_CNT=0
+RC=0
#########################################################################
## MPC5xx Systems
icecube_5100 \
icecube_5200 \
inka4x0 \
+ ipek01 \
lite5200b \
mcc200 \
mecp5200 \
DU440 \
ebony \
ERIC \
- EXBITGEN \
fx12mm \
G2000 \
gdppc440etx \
MIP405 \
MIP405T \
ML2 \
- ml300 \
ml507 \
ml507_flash \
neo \
Sandpoint8240 \
Sandpoint8245 \
sbc8240 \
- SL8245 \
utx8245 \
"
#########################################################################
LIST_83xx=" \
+ caddy2 \
kmeter1 \
MPC8313ERDB_33 \
MPC8313ERDB_NAND_66 \
MPC8315ERDB \
+ MPC8315ERDB_NAND \
MPC8323ERDB \
MPC832XEMDS \
MPC832XEMDS_ATM \
MPC8560ADS \
MPC8568MDS \
MPC8569MDS \
+ MPC8569MDS_ATM \
+ MPC8569MDS_NAND \
MPC8572DS \
MPC8572DS_36BIT \
P2020DS \
P2020DS_36BIT \
P1011RDB \
+ P1011RDB_NAND \
+ P1011RDB_SDCARD \
+ P1011RDB_SPIFLASH \
P1020RDB \
+ P1020RDB_NAND \
+ P1020RDB_SDCARD \
+ P1020RDB_SPIFLASH \
P2010RDB \
+ P2010RDB_NAND \
+ P2010RDB_SDCARD \
+ P2010RDB_SPIFLASH \
P2020RDB \
+ P2020RDB_NAND \
+ P2020RDB_SDCARD \
+ P2020RDB_SPIFLASH \
PM854 \
PM856 \
sbc8540 \
#########################################################################
LIST_ARM9=" \
+ a320evb \
ap920t \
ap922_XA10 \
ap926ejs \
cp926ejs \
cp946es \
cp966 \
+ da830evm \
+ edb9301 \
+ edb9302 \
+ edb9302a \
+ edb9307 \
+ edb9307a \
+ edb9312 \
+ edb9315 \
+ edb9315a \
imx27lite \
lpd7a400 \
mv88f6281gtw_ge \
sheevaplug \
smdk2400 \
smdk2410 \
+ spear300 \
+ spear310 \
+ spear320 \
+ spear600 \
+ suen3 \
trab \
VCMA9 \
versatile \
davinci_sffsdr \
davinci_sonata \
davinci_dm355evm \
+ davinci_dm355leopard \
+ davinci_dm365evm \
+ davinci_dm6467evm \
"
#########################################################################
#########################################################################
LIST_ARM_CORTEX_A8=" \
devkit8000 \
+ mx51evk \
omap3_beagle \
omap3_overo \
omap3_evm \
omap3_pandora \
+ omap3_sdp3430 \
omap3_zoom1 \
omap3_zoom2 \
+ smdkc100 \
"
#########################################################################
CPU9260 \
CPU9G20 \
csb637 \
+ eb_cpux9k2 \
kb9202 \
meesc \
mp2usb \
m501sk \
+ otc570 \
pm9261 \
pm9263 \
SBC35_A9G20 \
bf518f-ezbrd \
bf526-ezbrd \
bf527-ezkit \
+ bf527-ezkit-v2 \
bf533-ezkit \
bf533-stamp \
bf537-minotaur \
bf537-stamp \
bf538f-ezkit \
bf548-ezkit \
+ bf561-acvilon \
bf561-ezkit \
blackstamp \
cm-bf527 \
cm-bf548 \
cm-bf561 \
ibf-dsp561 \
+ tcm-bf518 \
tcm-bf537 \
"
${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
| tee ${LOG_DIR}/$target.ERR
+
+ # Check for 'make' errors
+ if [ ${PIPESTATUS[0]} -ne 0 ] ; then
+ RC=1
+ fi
+
if [ -s ${LOG_DIR}/$target.ERR ] ; then
ERR_CNT=$((ERR_CNT + 1))
ERR_LIST="${ERR_LIST} $target"
echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
fi
echo "----------------------------------------------------------"
+
+ exit $RC
}
#-----------------------------------------------------------------------