forked from pool/u-boot
26 lines
561 B
Bash
26 lines
561 B
Bash
#!/bin/bash -e
|
|
|
|
BOARDNAME="$1"
|
|
BOARDCONFIG="$2"
|
|
|
|
if [ ! "$1" -o ! "$2" ]; then
|
|
for BOARDCONFIG in omap3_beagle omap4_panda u8500_href origen; do
|
|
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_')"
|
|
BOARDCONFIG=${BOARDCONFIG}_config
|
|
bash $0 $BOARDNAME $BOARDCONFIG
|
|
done
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$(echo $BOARDCONFIG | grep omap)" ]; then
|
|
XLOADER=1
|
|
else
|
|
XLOADER=0
|
|
fi
|
|
|
|
sed "s/BOARDCONFIG/$BOARDCONFIG/g
|
|
s/BOARDNAME/$BOARDNAME/g
|
|
s/XLOADER/$XLOADER/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec
|
|
|
|
cp u-boot.changes u-boot-$BOARDNAME.changes
|