2009-12-07 13:58:28 +08:00
|
|
|
#!/bin/bash
|
2010-10-17 18:26:48 +08:00
|
|
|
# Tool mainly for U-Boot Quality Assurance: build one or more board
|
|
|
|
# configurations with minimal verbosity, showing only warnings and
|
|
|
|
# errors.
|
|
|
|
|
2011-04-22 06:01:43 +08:00
|
|
|
usage()
|
|
|
|
{
|
|
|
|
# if exiting with 0, write to stdout, else write to stderr
|
|
|
|
local ret=${1:-0}
|
|
|
|
[ "${ret}" -eq 1 ] && exec 1>&2
|
|
|
|
cat <<-EOF
|
|
|
|
Usage: MAKEALL [options] [--] [boards-to-build]
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-a ARCH, --arch ARCH Build all boards with arch ARCH
|
|
|
|
-c CPU, --cpu CPU Build all boards with cpu CPU
|
|
|
|
-v VENDOR, --vendor VENDOR Build all boards with vendor VENDOR
|
|
|
|
-s SOC, --soc SOC Build all boards with soc SOC
|
|
|
|
-h, --help This help output
|
|
|
|
|
|
|
|
Selections by these options are logically ANDed; if the same option
|
|
|
|
is used repeatedly, such selections are ORed. So "-v FOO -v BAR"
|
|
|
|
will select all configurations where the vendor is either FOO or
|
|
|
|
BAR. Any additional arguments specified on the command line are
|
|
|
|
always build additionally. See the boards.cfg file for more info.
|
|
|
|
|
|
|
|
If no boards are specified, then the default is "powerpc".
|
|
|
|
|
|
|
|
Environment variables:
|
|
|
|
BUILD_NCPUS number of parallel make jobs (default: auto)
|
|
|
|
CROSS_COMPILE cross-compiler toolchain prefix (default: "")
|
|
|
|
MAKEALL_LOGDIR output all logs to here (default: ./LOG/)
|
|
|
|
BUILD_DIR output build directory (default: ./)
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
- build all Power Architecture boards:
|
|
|
|
MAKEALL -a powerpc
|
|
|
|
MAKEALL --arch powerpc
|
|
|
|
MAKEALL powerpc
|
|
|
|
- build all PowerPC boards manufactured by vendor "esd":
|
|
|
|
MAKEALL -a powerpc -v esd
|
|
|
|
- build all PowerPC boards manufactured either by "keymile" or "siemens":
|
|
|
|
MAKEALL -a powerpc -v keymile -v siemens
|
|
|
|
- build all Freescale boards with MPC83xx CPUs, plus all 4xx boards:
|
|
|
|
MAKEALL -c mpc83xx -v freescale 4xx
|
|
|
|
EOF
|
|
|
|
exit ${ret}
|
|
|
|
}
|
|
|
|
|
|
|
|
SHORT_OPTS="ha:c:v:s:"
|
|
|
|
LONG_OPTS="help,arch:,cpu:,vendor:,soc:"
|
2010-10-17 18:26:48 +08:00
|
|
|
|
|
|
|
# Option processing based on util-linux-2.13/getopt-parse.bash
|
|
|
|
|
2010-10-28 04:48:30 +08:00
|
|
|
# Note that we use `"$@"' to let each command-line parameter expand to a
|
2010-10-17 18:26:48 +08:00
|
|
|
# separate word. The quotes around `$@' are essential!
|
|
|
|
# We need TEMP as the `eval set --' would nuke the return value of
|
|
|
|
# getopt.
|
|
|
|
TEMP=`getopt -o ${SHORT_OPTS} --long ${LONG_OPTS} \
|
|
|
|
-n 'MAKEALL' -- "$@"`
|
|
|
|
|
2011-04-22 06:01:43 +08:00
|
|
|
[ $? != 0 ] && usage 1
|
2010-10-17 18:26:48 +08:00
|
|
|
|
|
|
|
# Note the quotes around `$TEMP': they are essential!
|
|
|
|
eval set -- "$TEMP"
|
|
|
|
|
|
|
|
SELECTED=''
|
|
|
|
|
|
|
|
while true ; do
|
|
|
|
case "$1" in
|
|
|
|
-a|--arch)
|
|
|
|
# echo "Option ARCH: argument \`$2'"
|
|
|
|
if [ "$opt_a" ] ; then
|
|
|
|
opt_a="${opt_a%)} || \$2 == \"$2\")"
|
|
|
|
else
|
|
|
|
opt_a="(\$2 == \"$2\")"
|
|
|
|
fi
|
|
|
|
SELECTED='y'
|
|
|
|
shift 2 ;;
|
|
|
|
-c|--cpu)
|
|
|
|
# echo "Option CPU: argument \`$2'"
|
|
|
|
if [ "$opt_c" ] ; then
|
|
|
|
opt_c="${opt_c%)} || \$3 == \"$2\")"
|
|
|
|
else
|
|
|
|
opt_c="(\$3 == \"$2\")"
|
|
|
|
fi
|
|
|
|
SELECTED='y'
|
|
|
|
shift 2 ;;
|
|
|
|
-s|--soc)
|
|
|
|
# echo "Option SoC: argument \`$2'"
|
|
|
|
if [ "$opt_s" ] ; then
|
|
|
|
opt_s="${opt_s%)} || \$6 == \"$2\")"
|
|
|
|
else
|
|
|
|
opt_s="(\$6 == \"$2\")"
|
|
|
|
fi
|
|
|
|
SELECTED='y'
|
|
|
|
shift 2 ;;
|
|
|
|
-v|--vendor)
|
|
|
|
# echo "Option VENDOR: argument \`$2'"
|
|
|
|
if [ "$opt_v" ] ; then
|
|
|
|
opt_v="${opt_v%)} || \$5 == \"$2\")"
|
|
|
|
else
|
|
|
|
opt_v="(\$5 == \"$2\")"
|
|
|
|
fi
|
|
|
|
SELECTED='y'
|
|
|
|
shift 2 ;;
|
2011-04-22 06:01:43 +08:00
|
|
|
-h|--help)
|
|
|
|
usage ;;
|
2010-10-17 18:26:48 +08:00
|
|
|
--)
|
|
|
|
shift ; break ;;
|
|
|
|
*)
|
|
|
|
echo "Internal error!" >&2 ; exit 1 ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
# echo "Remaining arguments:"
|
|
|
|
# for arg do echo '--> '"\`$arg'" ; done
|
|
|
|
|
|
|
|
FILTER="\$1 !~ /^#/"
|
|
|
|
[ "$opt_a" ] && FILTER="${FILTER} && $opt_a"
|
|
|
|
[ "$opt_c" ] && FILTER="${FILTER} && $opt_c"
|
|
|
|
[ "$opt_s" ] && FILTER="${FILTER} && $opt_s"
|
|
|
|
[ "$opt_v" ] && FILTER="${FILTER} && $opt_v"
|
|
|
|
|
|
|
|
if [ "$SELECTED" ] ; then
|
|
|
|
SELECTED=$(awk '('"$FILTER"') { print $1 }' boards.cfg)
|
2010-10-30 06:59:06 +08:00
|
|
|
|
|
|
|
# Make sure some boards from boards.cfg are actually found
|
|
|
|
if [ -z "$SELECTED" ] ; then
|
|
|
|
echo "Error: No boards selected, invalid arguments"
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-10-17 18:26:48 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2009-09-22 01:04:32 +08:00
|
|
|
# Print statistics when we exit
|
|
|
|
trap exit 1 2 3 15
|
|
|
|
trap print_stats 0
|
|
|
|
|
2008-12-09 07:39:08 +08:00
|
|
|
# Determine number of CPU cores if no default was set
|
|
|
|
: ${BUILD_NCPUS:="`getconf _NPROCESSORS_ONLN`"}
|
|
|
|
|
|
|
|
if [ "$BUILD_NCPUS" -gt 1 ]
|
|
|
|
then
|
2009-09-22 01:04:33 +08:00
|
|
|
JOBS="-j $((BUILD_NCPUS + 1))"
|
2008-12-09 07:39:08 +08:00
|
|
|
else
|
|
|
|
JOBS=""
|
|
|
|
fi
|
|
|
|
|
2003-12-07 03:49:23 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
if [ "${CROSS_COMPILE}" ] ; then
|
|
|
|
MAKE="make CROSS_COMPILE=${CROSS_COMPILE}"
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
if [ "${MAKEALL_LOGDIR}" ] ; then
|
|
|
|
LOG_DIR=${MAKEALL_LOGDIR}
|
|
|
|
else
|
|
|
|
LOG_DIR="LOG"
|
|
|
|
fi
|
2006-09-07 17:51:23 +08:00
|
|
|
|
2006-09-02 01:49:50 +08:00
|
|
|
if [ ! "${BUILD_DIR}" ] ; then
|
|
|
|
BUILD_DIR="."
|
|
|
|
fi
|
|
|
|
|
2006-09-07 18:05:53 +08:00
|
|
|
[ -d ${LOG_DIR} ] || mkdir ${LOG_DIR} || exit 1
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
LIST=""
|
|
|
|
|
2009-09-22 01:04:32 +08:00
|
|
|
# Keep track of the number of builds and errors
|
|
|
|
ERR_CNT=0
|
|
|
|
ERR_LIST=""
|
|
|
|
TOTAL_CNT=0
|
2009-12-07 13:58:28 +08:00
|
|
|
RC=0
|
2009-09-22 01:04:32 +08:00
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
# Helper funcs for parsing boards.cfg
|
|
|
|
boards_by_field()
|
|
|
|
{
|
|
|
|
awk \
|
|
|
|
-v field="$1" \
|
|
|
|
-v select="$2" \
|
|
|
|
'($1 !~ /^#/ && $field == select) { print $1 }' \
|
|
|
|
boards.cfg
|
|
|
|
}
|
|
|
|
boards_by_arch() { boards_by_field 2 "$@" ; }
|
|
|
|
boards_by_cpu() { boards_by_field 3 "$@" ; }
|
2010-11-30 17:45:04 +08:00
|
|
|
boards_by_soc() { boards_by_field 6 "$@" ; }
|
2010-08-20 01:05:06 +08:00
|
|
|
|
2003-04-01 01:27:09 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_5xx="$(boards_by_cpu mpc5xx)"
|
2003-04-01 01:27:09 +08:00
|
|
|
|
2003-07-17 05:53:01 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC5xxx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_5xxx="$(boards_by_cpu mpc5xxx)"
|
2003-07-17 05:53:01 +08:00
|
|
|
|
2007-07-27 20:43:59 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC512x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_512x="$(boards_by_cpu mpc512x)"
|
2003-07-17 05:53:01 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC8xx Systems
|
|
|
|
#########################################################################
|
2010-08-20 01:05:06 +08:00
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_8xx="$(boards_by_cpu mpc8xx)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## PPC4xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_4xx="$(boards_by_cpu ppc4xx)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2004-10-28 08:09:35 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC8220 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_8220="$(boards_by_cpu mpc8220)"
|
2004-10-28 08:09:35 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC824x Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_824x="$(boards_by_cpu mpc824x)"
|
2003-06-21 08:17:24 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
2003-05-03 23:50:43 +08:00
|
|
|
## MPC8260 Systems (includes 8250, 8255 etc.)
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_8260="$(boards_by_cpu mpc8260)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2005-07-28 23:08:46 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC83xx Systems (includes 8349, etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_83xx="$(boards_by_cpu mpc83xx)"
|
2005-07-28 23:08:46 +08:00
|
|
|
|
2003-10-16 07:53:47 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC85xx Systems (includes 8540, 8560 etc.)
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_85xx="$(boards_by_cpu mpc85xx)"
|
2003-10-16 07:53:47 +08:00
|
|
|
|
2007-05-24 03:09:46 +08:00
|
|
|
#########################################################################
|
|
|
|
## MPC86xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_86xx="$(boards_by_cpu mpc86xx)"
|
2007-05-24 03:09:46 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## 74xx/7xx Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-06 15:05:45 +08:00
|
|
|
LIST_74xx_7xx="$(boards_by_cpu 74xx_7xx)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2008-04-21 06:35:52 +08:00
|
|
|
#########################################################################
|
|
|
|
## PowerPC groups
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_TSEC=" \
|
|
|
|
${LIST_83xx} \
|
|
|
|
${LIST_85xx} \
|
|
|
|
${LIST_86xx} \
|
|
|
|
"
|
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
LIST_powerpc=" \
|
2007-08-11 04:34:48 +08:00
|
|
|
${LIST_5xx} \
|
2007-11-26 05:39:25 +08:00
|
|
|
${LIST_512x} \
|
2007-08-11 04:34:48 +08:00
|
|
|
${LIST_5xxx} \
|
|
|
|
${LIST_8xx} \
|
|
|
|
${LIST_8220} \
|
|
|
|
${LIST_824x} \
|
|
|
|
${LIST_8260} \
|
|
|
|
${LIST_83xx} \
|
|
|
|
${LIST_85xx} \
|
|
|
|
${LIST_86xx} \
|
|
|
|
${LIST_4xx} \
|
2010-10-06 15:05:45 +08:00
|
|
|
${LIST_74xx_7xx}\
|
2007-08-11 04:34:48 +08:00
|
|
|
"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2010-04-15 22:07:28 +08:00
|
|
|
# Alias "ppc" -> "powerpc" to not break compatibility with older scripts
|
|
|
|
# still using "ppc" instead of "powerpc"
|
|
|
|
LIST_ppc=" \
|
|
|
|
${LIST_powerpc} \
|
|
|
|
"
|
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## StrongARM Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_SA="$(boards_by_cpu sa1100)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
## ARM9 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_ARM9=" \
|
2009-11-11 17:27:30 +08:00
|
|
|
a320evb \
|
Armada100: Add Board Support for Marvell Aspenite-DB
Aspenite is a Development Board for ASPEN/ARMADA168(88AP168) with
* Processor upto 1.2GHz
* Parallel 1Gb x8 DDR2-1066 MHz
* 16 Mb x16 NOR, 4Gb x8 SLC NAND, footprint for SPI NOR
* Footprints for eMMC/eSD NAND & MMC x8 card
* 4-in-1 card reader (xD, MMC/SD/MS Pro), CF True IDE socket
* SEAF memory board, subset of PISMO2
With Peripherals:
* 4.3” WVGA 24-bit LCD
* Audio codecs (AC97 & I2S), TSI
* VGA camera
* Video in via 3 RCA jacks, and HDMI type C out
* Marvell 88W8688 802.11bg/BT module
* GPS RF IC
* Dual analog mics & speakers, headset jack, LED, ambient light sensor
* USB2.0 HS host (A), OTG (micro AB)
* FE PHY, PCIE Mini Card slot
* GPIO, GPIO expander with DIP switches for easier selection UART serial over USB, CIR
This patch adds basic board support with DRAM and UART functionality
The patch is tested for boot from DRAM using XDB
Signed-off-by: Mahavir Jain <mjain@marvell.com>
Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
2010-11-29 19:31:27 +08:00
|
|
|
aspenite \
|
2009-11-13 00:09:25 +08:00
|
|
|
da830evm \
|
2010-06-10 17:48:15 +08:00
|
|
|
da850evm \
|
2010-06-17 22:08:21 +08:00
|
|
|
edminiv2 \
|
2010-03-18 22:55:40 +08:00
|
|
|
guruplug \
|
2009-08-11 06:32:09 +08:00
|
|
|
imx27lite \
|
2010-08-09 19:31:51 +08:00
|
|
|
jadecpu \
|
2011-06-16 20:41:15 +08:00
|
|
|
km_kirkwood \
|
2010-03-05 14:36:33 +08:00
|
|
|
magnesium \
|
2009-07-16 23:28:01 +08:00
|
|
|
mv88f6281gtw_ge \
|
2007-08-11 04:34:48 +08:00
|
|
|
mx1ads \
|
2009-07-05 07:06:06 +08:00
|
|
|
nhk8815 \
|
|
|
|
nhk8815_onenand \
|
2007-08-11 04:34:48 +08:00
|
|
|
omap1510inn \
|
|
|
|
omap1610h2 \
|
|
|
|
omap1610inn \
|
2008-01-19 04:45:45 +08:00
|
|
|
omap5912osk \
|
2007-08-11 04:34:48 +08:00
|
|
|
omap730p2 \
|
2009-09-22 06:31:01 +08:00
|
|
|
openrd_base \
|
2011-05-07 00:36:47 +08:00
|
|
|
openrd_client \
|
|
|
|
openrd_ultimate \
|
2011-06-16 20:41:15 +08:00
|
|
|
portl2 \
|
2009-07-16 23:32:24 +08:00
|
|
|
rd6281a \
|
2007-08-11 04:34:48 +08:00
|
|
|
scb9328 \
|
2009-07-16 23:28:00 +08:00
|
|
|
sheevaplug \
|
2007-08-11 04:34:48 +08:00
|
|
|
smdk2410 \
|
2010-01-15 21:45:50 +08:00
|
|
|
spear300 \
|
2010-01-15 21:45:52 +08:00
|
|
|
spear310 \
|
2010-01-15 21:45:53 +08:00
|
|
|
spear320 \
|
2010-01-15 21:45:48 +08:00
|
|
|
spear600 \
|
2007-08-11 04:34:48 +08:00
|
|
|
VCMA9 \
|
|
|
|
versatile \
|
|
|
|
versatileab \
|
|
|
|
versatilepb \
|
|
|
|
davinci_dvevm \
|
|
|
|
davinci_schmoogie \
|
2008-05-22 01:58:41 +08:00
|
|
|
davinci_sffsdr \
|
2007-08-11 04:34:48 +08:00
|
|
|
davinci_sonata \
|
2009-05-16 05:48:37 +08:00
|
|
|
davinci_dm355evm \
|
2009-10-11 01:37:10 +08:00
|
|
|
davinci_dm355leopard \
|
2010-02-18 10:09:21 +08:00
|
|
|
davinci_dm365evm \
|
2009-10-11 00:00:47 +08:00
|
|
|
davinci_dm6467evm \
|
2003-08-30 06:00:43 +08:00
|
|
|
"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2005-01-10 07:16:25 +08:00
|
|
|
#########################################################################
|
|
|
|
## ARM11 Systems
|
|
|
|
#########################################################################
|
2009-03-25 18:36:50 +08:00
|
|
|
LIST_ARM11=" \
|
|
|
|
omap2420h4 \
|
|
|
|
apollon \
|
|
|
|
imx31_litekit \
|
|
|
|
imx31_phycore \
|
|
|
|
imx31_phycore_eet \
|
|
|
|
mx31ads \
|
2009-07-01 07:07:55 +08:00
|
|
|
mx31pdk \
|
2009-07-04 16:31:24 +08:00
|
|
|
mx31pdk_nand \
|
2009-03-25 18:36:50 +08:00
|
|
|
qong \
|
|
|
|
smdk6400 \
|
2010-06-08 02:13:36 +08:00
|
|
|
tnetv107x_evm \
|
2005-09-25 07:48:28 +08:00
|
|
|
"
|
2005-01-10 07:16:25 +08:00
|
|
|
|
2009-01-28 01:19:12 +08:00
|
|
|
#########################################################################
|
2010-06-18 12:50:01 +08:00
|
|
|
## ARMV7 Systems
|
2009-01-28 01:19:12 +08:00
|
|
|
#########################################################################
|
2011-08-06 04:48:32 +08:00
|
|
|
|
|
|
|
LIST_ARMV7="$(boards_by_cpu armv7)"
|
2009-01-28 01:19:12 +08:00
|
|
|
|
2008-05-24 18:47:46 +08:00
|
|
|
#########################################################################
|
|
|
|
## AT91 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2011-08-04 19:08:50 +08:00
|
|
|
LIST_at91="$(boards_by_soc at91)"
|
2008-05-24 18:47:46 +08:00
|
|
|
|
2002-11-03 07:17:16 +08:00
|
|
|
#########################################################################
|
|
|
|
## Xscale Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-04 06:21:51 +08:00
|
|
|
LIST_pxa="$(boards_by_cpu pxa)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_ixp="$(boards_by_cpu ixp)
|
2007-08-11 04:34:48 +08:00
|
|
|
pdnb3 \
|
|
|
|
scpu \
|
|
|
|
"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2008-04-21 06:35:52 +08:00
|
|
|
#########################################################################
|
|
|
|
## ARM groups
|
|
|
|
#########################################################################
|
2003-10-15 03:43:55 +08:00
|
|
|
|
2009-01-28 01:19:12 +08:00
|
|
|
LIST_arm=" \
|
|
|
|
${LIST_SA} \
|
|
|
|
${LIST_ARM9} \
|
|
|
|
${LIST_ARM10} \
|
|
|
|
${LIST_ARM11} \
|
2010-06-18 12:50:01 +08:00
|
|
|
${LIST_ARMV7} \
|
2009-01-28 01:19:12 +08:00
|
|
|
${LIST_at91} \
|
|
|
|
${LIST_pxa} \
|
|
|
|
${LIST_ixp} \
|
2005-01-10 07:16:25 +08:00
|
|
|
"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2003-03-27 20:09:35 +08:00
|
|
|
#########################################################################
|
2005-08-14 06:27:00 +08:00
|
|
|
## MIPS Systems (default = big endian)
|
2003-03-27 20:09:35 +08:00
|
|
|
#########################################################################
|
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_mips4kc=" \
|
|
|
|
incaip \
|
2008-01-17 01:27:51 +08:00
|
|
|
qemu_mips \
|
2009-01-22 00:25:01 +08:00
|
|
|
vct_platinum \
|
|
|
|
vct_platinum_small \
|
|
|
|
vct_platinum_onenand \
|
|
|
|
vct_platinum_onenand_small \
|
|
|
|
vct_platinumavc \
|
|
|
|
vct_platinumavc_small \
|
|
|
|
vct_platinumavc_onenand \
|
|
|
|
vct_platinumavc_onenand_small \
|
|
|
|
vct_premium \
|
|
|
|
vct_premium_small \
|
|
|
|
vct_premium_onenand \
|
|
|
|
vct_premium_onenand_small \
|
2007-08-11 04:34:48 +08:00
|
|
|
"
|
2003-03-27 20:09:35 +08:00
|
|
|
|
2011-03-29 00:33:54 +08:00
|
|
|
LIST_mips5kc=""
|
2003-04-05 08:53:31 +08:00
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_au1xx0=" \
|
|
|
|
dbau1000 \
|
|
|
|
dbau1100 \
|
|
|
|
dbau1500 \
|
|
|
|
dbau1550 \
|
|
|
|
dbau1550_el \
|
|
|
|
gth2 \
|
|
|
|
"
|
2003-10-10 04:09:04 +08:00
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_mips=" \
|
|
|
|
${LIST_mips4kc} \
|
|
|
|
${LIST_mips5kc} \
|
|
|
|
${LIST_au1xx0} \
|
|
|
|
"
|
2003-03-27 20:09:35 +08:00
|
|
|
|
2005-08-14 06:27:00 +08:00
|
|
|
#########################################################################
|
|
|
|
## MIPS Systems (little endian)
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
LIST_mips4kc_el=""
|
|
|
|
|
|
|
|
LIST_mips5kc_el=""
|
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_au1xx0_el=" \
|
|
|
|
dbau1550_el \
|
2007-10-27 14:00:25 +08:00
|
|
|
pb1000 \
|
2007-08-11 04:34:48 +08:00
|
|
|
"
|
2005-08-14 06:27:00 +08:00
|
|
|
|
2007-08-11 04:34:48 +08:00
|
|
|
LIST_mips_el=" \
|
|
|
|
${LIST_mips4kc_el} \
|
|
|
|
${LIST_mips5kc_el} \
|
|
|
|
${LIST_au1xx0_el} \
|
|
|
|
"
|
2005-08-14 06:27:00 +08:00
|
|
|
|
2003-06-01 02:35:21 +08:00
|
|
|
#########################################################################
|
2011-04-13 17:43:28 +08:00
|
|
|
## x86 Systems
|
2003-06-01 02:35:21 +08:00
|
|
|
#########################################################################
|
|
|
|
|
2011-04-13 17:43:28 +08:00
|
|
|
LIST_x86="$(boards_by_arch x86)"
|
2003-06-01 02:35:21 +08:00
|
|
|
|
2004-10-11 05:27:30 +08:00
|
|
|
#########################################################################
|
|
|
|
## Nios-II Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2011-06-27 11:00:19 +08:00
|
|
|
LIST_nios2="$(boards_by_arch nios2)"
|
2004-10-11 05:27:30 +08:00
|
|
|
|
2004-07-11 07:48:41 +08:00
|
|
|
#########################################################################
|
|
|
|
## MicroBlaze Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_microblaze="$(boards_by_arch microblaze)"
|
2004-07-11 07:48:41 +08:00
|
|
|
|
2006-01-27 06:38:46 +08:00
|
|
|
#########################################################################
|
|
|
|
## ColdFire Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_coldfire="$(boards_by_arch m68k)
|
2010-01-25 18:27:44 +08:00
|
|
|
astro_mcf5373l \
|
2007-08-11 04:34:48 +08:00
|
|
|
cobra5272 \
|
|
|
|
EB+MCF-EV123 \
|
|
|
|
EB+MCF-EV123_internal \
|
2008-01-15 07:43:33 +08:00
|
|
|
M52277EVB \
|
2007-08-17 08:23:50 +08:00
|
|
|
M5235EVB \
|
2008-01-15 07:23:08 +08:00
|
|
|
M5329AFEE \
|
|
|
|
M5373EVB \
|
2008-08-11 21:41:49 +08:00
|
|
|
M54451EVB \
|
2007-08-17 04:05:11 +08:00
|
|
|
M54455EVB \
|
2008-01-16 04:15:46 +08:00
|
|
|
M5475AFE \
|
|
|
|
M5485AFE \
|
2006-04-20 14:42:42 +08:00
|
|
|
"
|
2006-01-27 06:38:46 +08:00
|
|
|
|
2006-10-24 20:42:37 +08:00
|
|
|
#########################################################################
|
|
|
|
## AVR32 Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_avr32="$(boards_by_arch avr32)"
|
2006-10-24 20:42:37 +08:00
|
|
|
|
2007-03-09 13:40:56 +08:00
|
|
|
#########################################################################
|
|
|
|
## Blackfin Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-19 14:41:26 +08:00
|
|
|
LIST_blackfin="$(boards_by_arch blackfin)"
|
2007-03-09 13:40:56 +08:00
|
|
|
|
2007-11-27 16:44:53 +08:00
|
|
|
#########################################################################
|
|
|
|
## SH Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-10-20 00:22:25 +08:00
|
|
|
LIST_sh2="$(boards_by_cpu sh2)"
|
2010-10-20 00:28:29 +08:00
|
|
|
LIST_sh3="$(boards_by_cpu sh3)"
|
2010-10-20 00:35:28 +08:00
|
|
|
LIST_sh4="$(boards_by_cpu sh4)"
|
2008-04-21 06:35:52 +08:00
|
|
|
|
2010-10-20 00:35:28 +08:00
|
|
|
LIST_sh="$(boards_by_arch sh)"
|
2007-11-27 16:44:53 +08:00
|
|
|
|
2008-03-28 16:47:00 +08:00
|
|
|
#########################################################################
|
|
|
|
## SPARC Systems
|
|
|
|
#########################################################################
|
|
|
|
|
2010-08-20 01:05:06 +08:00
|
|
|
LIST_sparc="$(boards_by_arch sparc)"
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
build_target() {
|
|
|
|
target=$1
|
|
|
|
|
|
|
|
${MAKE} distclean >/dev/null
|
2010-09-15 03:48:16 +08:00
|
|
|
${MAKE} -s ${target}_config
|
2006-09-02 01:49:50 +08:00
|
|
|
|
|
|
|
${MAKE} ${JOBS} all 2>&1 >${LOG_DIR}/$target.MAKELOG \
|
|
|
|
| tee ${LOG_DIR}/$target.ERR
|
2009-12-07 13:58:28 +08:00
|
|
|
|
|
|
|
# Check for 'make' errors
|
|
|
|
if [ ${PIPESTATUS[0]} -ne 0 ] ; then
|
|
|
|
RC=1
|
|
|
|
fi
|
|
|
|
|
2009-09-22 01:04:32 +08:00
|
|
|
if [ -s ${LOG_DIR}/$target.ERR ] ; then
|
|
|
|
ERR_CNT=$((ERR_CNT + 1))
|
|
|
|
ERR_LIST="${ERR_LIST} $target"
|
|
|
|
else
|
|
|
|
rm ${LOG_DIR}/$target.ERR
|
|
|
|
fi
|
|
|
|
|
|
|
|
TOTAL_CNT=$((TOTAL_CNT + 1))
|
2006-09-02 01:49:50 +08:00
|
|
|
|
2008-01-28 18:56:19 +08:00
|
|
|
${CROSS_COMPILE}size ${BUILD_DIR}/u-boot \
|
2006-09-02 01:49:50 +08:00
|
|
|
| tee -a ${LOG_DIR}/$target.MAKELOG
|
2002-11-03 07:17:16 +08:00
|
|
|
}
|
2010-08-20 01:05:06 +08:00
|
|
|
build_targets() {
|
|
|
|
for t in "$@" ; do
|
|
|
|
# If a LIST_xxx var exists, use it. But avoid variable
|
|
|
|
# expansion in the eval when a board name contains certain
|
|
|
|
# characters that the shell interprets.
|
|
|
|
case ${t} in
|
|
|
|
*[-+=]*) list= ;;
|
|
|
|
*) list=$(eval echo '${LIST_'$t'}') ;;
|
|
|
|
esac
|
|
|
|
if [ -n "${list}" ] ; then
|
|
|
|
build_targets ${list}
|
|
|
|
else
|
|
|
|
build_target ${t}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
2002-11-03 07:17:16 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
2009-09-22 01:04:32 +08:00
|
|
|
print_stats() {
|
|
|
|
echo ""
|
|
|
|
echo "--------------------- SUMMARY ----------------------------"
|
|
|
|
echo "Boards compiled: ${TOTAL_CNT}"
|
|
|
|
if [ ${ERR_CNT} -gt 0 ] ; then
|
|
|
|
echo "Boards with warnings or errors: ${ERR_CNT} (${ERR_LIST} )"
|
|
|
|
fi
|
|
|
|
echo "----------------------------------------------------------"
|
2009-12-07 13:58:28 +08:00
|
|
|
|
|
|
|
exit $RC
|
2009-09-22 01:04:32 +08:00
|
|
|
}
|
2002-11-03 07:17:16 +08:00
|
|
|
|
2009-09-22 01:04:32 +08:00
|
|
|
#-----------------------------------------------------------------------
|
2010-08-20 01:05:06 +08:00
|
|
|
|
2010-10-17 18:26:48 +08:00
|
|
|
# Build target groups selected by options, plus any command line args
|
|
|
|
set -- ${SELECTED} "$@"
|
|
|
|
# run PowerPC by default
|
2010-08-20 01:05:06 +08:00
|
|
|
[ $# = 0 ] && set -- powerpc
|
|
|
|
build_targets "$@"
|