SHA256
1
0
forked from pool/u-boot
u-boot/pre_checkin.sh
Stephan Kulow 7b56261a82 Accepting request 234407 from Base:System
- Enhance pre_checkin.sh script to handle arch restrictions

- Fix builds :
  * 'tools' target is now 'tools-only'
  * kermit scripts moved from 'tools/scripts' to 'tools/kermit/'
  * Enhanced pre_checkin.sh script to handle uppercases in config name
  * Renamed config from cubieboard to Cubieboard
  * Renamed config from cubieboard2 to Cubieboard2
  * Renamed config from hyundai_a7hd to Hyundai_A7HD
  * Renamed config from mele_a1000 to Mele_A1000

- Add vexpress_aemv8a board

- Update to v2014.04
  * Update mlo-ext2.patch
  * Update mx53loco-bootscr.patch
  * Update origen-ext2.patch
  * Dropped v2014.01-sunxi.patch and created
  v2014.04-sunxi.patch by diffing u-boot-2014.04 with 
  u-boot-sunxi.git d9fe0a1e061e2bde6c24a0f7cef4f5023f3bd579
  * Update rpi_b-bootscr.patch
  * Drop gnuhash.patch (upstreamed)

- Enhance pre_checkin.sh script to handle arch restrictions

- Fix builds :
  * 'tools' target is now 'tools-only'
  * kermit scripts moved from 'tools/scripts' to 'tools/kermit/'
  * Enhanced pre_checkin.sh script to handle uppercases in config name
  * Renamed config from cubieboard to Cubieboard

OBS-URL: https://build.opensuse.org/request/show/234407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=25
2014-05-17 19:45:20 +00:00

67 lines
2.0 KiB
Bash

#!/bin/bash -e
BOARDNAME="$1"
BOARDCONFIG="$2"
ARCH_RESTRICTIONS="$3 $4"
armv6_boards="rpi_b"
armv7_boards="omap3_beagle omap4_panda am335x_evm arndale highbank mx53loco mx6qsabrelite Cubieboard Cubieboard2 Hyundai_A7HD Mele_A1000 colibri_t20_iris paz00 snow"
aarch64_boards="vexpress_aemv8a"
if [ ! "$1" -o ! "$2" -o ! "$3" ]; then
# armv6 boards
for BOARDCONFIG in $armv6_boards; do
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_' | tr '[:upper:]' '[:lower:]')"
BOARDCONFIG=${BOARDCONFIG}_config
ARCH_RESTRICTIONS="armv6l armv6hl"
bash $0 $BOARDNAME $BOARDCONFIG $ARCH_RESTRICTIONS
done
# armv7 boards
for BOARDCONFIG in $armv7_boards; do
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_' | tr '[:upper:]' '[:lower:]')"
BOARDCONFIG=${BOARDCONFIG}_config
ARCH_RESTRICTIONS="armv7l armv7hl"
bash $0 $BOARDNAME $BOARDCONFIG $ARCH_RESTRICTIONS
done
# aarch64 boards
for BOARDCONFIG in $aarch64_boards; do
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_' | tr '[:upper:]' '[:lower:]')"
BOARDCONFIG=${BOARDCONFIG}_config
ARCH_RESTRICTIONS="aarch64"
bash $0 $BOARDNAME $BOARDCONFIG $ARCH_RESTRICTIONS
done
exit 0
fi
XLOADER=0
ORIGEN_SPL=0
SUNXI_SPL=0
ARNDALE_SPL=0
case "$BOARDCONFIG" in
mx*|efika*) BINEND=imx ;;
*omap*|*am335x*) BINEND=bin
XLOADER=1 ;;
*arndale*) BINEND=bin
ARNDALE_SPL=1 ;;
*Cubieboard*) BINEND=bin
SUNXI_SPL=1 ;;
*Mele_A1000*) BINEND=bin
SUNXI_SPL=1 ;;
*Hyundai_A7HD*) BINEND=bin
SUNXI_SPL=1 ;;
*snow*) BINEND=img ;;
*) BINEND=bin ;;
esac
sed "s/BOARDCONFIG/$BOARDCONFIG/g
s/BOARDNAME/$BOARDNAME/g
s/ARCH_RESTRICTIONS/$ARCH_RESTRICTIONS/g
s/BINEND/$BINEND/g
s/ORIGEN_SPL/$ORIGEN_SPL/g
s/ARNDALE_SPL/$ARNDALE_SPL/g
s/SUNXI_SPL/$SUNXI_SPL/g
s/TEGRA_SPL/$TEGRA_SPL/g
s/XLOADER/$XLOADER/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec
cp u-boot.changes u-boot-$BOARDNAME.changes