2012-07-24 16:16:40 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
BOARDNAME="$1"
|
|
|
|
BOARDCONFIG="$2"
|
|
|
|
|
2012-08-07 08:24:10 +02:00
|
|
|
# omap3_beagle currently needs separate sources
|
|
|
|
|
2012-07-24 16:16:40 +02:00
|
|
|
if [ ! "$1" -o ! "$2" ]; then
|
2012-08-07 08:24:10 +02:00
|
|
|
for BOARDCONFIG in omap4_panda u8500_href origen highbank mx53loco; do
|
2012-07-24 16:16:40 +02:00
|
|
|
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_')"
|
|
|
|
BOARDCONFIG=${BOARDCONFIG}_config
|
|
|
|
bash $0 $BOARDNAME $BOARDCONFIG
|
|
|
|
done
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2012-08-07 08:24:10 +02:00
|
|
|
XLOADER=0
|
|
|
|
ORIGEN_SPL=0
|
|
|
|
case "$BOARDCONFIG" in
|
|
|
|
mx*|efika*) BINEND=imx ;;
|
|
|
|
*omap*) BINEND=bin
|
|
|
|
XLOADER=1 ;;
|
|
|
|
*origen*) BINEND=bin
|
|
|
|
ORIGEN_SPL=1 ;;
|
|
|
|
*) BINEND=bin ;;
|
|
|
|
esac
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
sed "s/BOARDCONFIG/$BOARDCONFIG/g
|
|
|
|
s/BOARDNAME/$BOARDNAME/g
|
2012-08-07 08:24:10 +02:00
|
|
|
s/BINEND/$BINEND/g
|
|
|
|
s/ORIGEN_SPL/$ORIGEN_SPL/g
|
2012-07-24 16:16:40 +02:00
|
|
|
s/XLOADER/$XLOADER/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec
|
|
|
|
|
|
|
|
cp u-boot.changes u-boot-$BOARDNAME.changes
|