SHA256
1
0
forked from pool/u-boot
u-boot/pre_checkin.sh
Stephan Kulow 2ab1f2309e Accepting request 174405 from Base:System
- add support for cubieboard, hyundaia7hd, melea1000

- update to 2013.04
  * no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant

- add support for cubieboard, hyundaia7hd, melea1000

- update to 2013.04
  * no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant

- add support for cubieboard, hyundaia7hd, melea1000

- update to 2013.04
  * no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant

- add support for cubieboard, hyundaia7hd, melea1000

- update to 2013.04
  * no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant

- add support for cubieboard, hyundaia7hd, melea1000

OBS-URL: https://build.opensuse.org/request/show/174405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=13
2013-05-07 05:38:13 +00:00

41 lines
975 B
Bash

#!/bin/bash -e
BOARDNAME="$1"
BOARDCONFIG="$2"
if [ ! "$1" -o ! "$2" ]; then
for BOARDCONFIG in omap3_beagle omap4_panda origen highbank mx53loco rpi_b cubieboard hyundai_a7hd mele_a1000; do
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_')"
BOARDCONFIG=${BOARDCONFIG}_config
bash $0 $BOARDNAME $BOARDCONFIG
done
exit 0
fi
XLOADER=0
ORIGEN_SPL=0
SUNXI_SPL=0
case "$BOARDCONFIG" in
mx*|efika*) BINEND=imx ;;
*omap*) BINEND=bin
XLOADER=1 ;;
*origen*) BINEND=bin
ORIGEN_SPL=1 ;;
*cubieboard*) BINEND=bin
SUNXI_SPL=1 ;;
*mele_a1000*) BINEND=bin
SUNXI_SPL=1 ;;
*hyundai_a7hd*) BINEND=bin
SUNXI_SPL=1 ;;
*) BINEND=bin ;;
esac
sed "s/BOARDCONFIG/$BOARDCONFIG/g
s/BOARDNAME/$BOARDNAME/g
s/BINEND/$BINEND/g
s/ORIGEN_SPL/$ORIGEN_SPL/g
s/SUNXI_SPL/$SUNXI_SPL/g
s/XLOADER/$XLOADER/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec
cp u-boot.changes u-boot-$BOARDNAME.changes