u-boot/pre_checkin.sh
Dominique Leuenberger 886f663d28 Accepting request 265381 from Base:System
- Added support for A20-OLinuXIno-LIME2 and A10-OLinuXino-LIME from
  www.olimex.com

- Rename XLOADER to OMAP_SPL in pre_checkin.sh and u-boot.spec.in

- Update to 2015.01-rc3 
  * Drop upstreamed/unneeded patches:
    - 0001-exynos-Enable-config_distro_defaults.h.patch
    - 0002-exynos5-Use-config_distro_bootcmd.h.patch
    - boot_mode_fallback.patch
    - fix_snow_usb_support
    - fix_spl_ext.patch
    - fix_arm_hf_toolchain.patch
    - origen-ext2.patch
  * Update patch: 
    - fix_snow_config.patch
  * Follow upstream: rpi_b config renamed to rpi

- Update snow (chromebook)
  * Update patch: 
    - fix_snow_config.patch patch
  * Add patches:
    - add_snow_usb_boot.patch to be able to boot from USB0
    - fix_bootpart_snow_only.patch to boot on partition #2 (snow only!)
  * Backport patches:
    - fix_snow_usb_support.patch to fix USB on snow
    - 0001-exynos-Enable-config_distro_defaults.h.patch
    - 0002-exynos5-Use-config_distro_bootcmd.h.patch
  * Drop unneeded/obsolete patches: 
    - fix_exynos5_text_base.patch

OBS-URL: https://build.opensuse.org/request/show/265381
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=37
2014-12-16 13:49:23 +00:00

71 lines
2.2 KiB
Bash

#!/bin/bash -e
BOARDNAME="$1"
BOARDCONFIG="$2"
ARCH_RESTRICTIONS="$3 $4"
armv6_boards="rpi"
armv7_boards="omap3_beagle omap4_panda am335x_evm arndale highbank mx53loco mx6qsabrelite Bananapi Cubieboard Cubieboard2 Cubietruck Mele_A1000 colibri_t20_iris paz00 snow A10-OLinuXino-Lime A20-OLinuXino-Lime2"
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}_defconfig
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}_defconfig
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}_defconfig
ARCH_RESTRICTIONS="aarch64"
bash $0 $BOARDNAME $BOARDCONFIG $ARCH_RESTRICTIONS
done
exit 0
fi
OMAP_SPL=0
ORIGEN_SPL=0
SUNXI_SPL=0
ARNDALE_SPL=0
CUBOXI_SPL=0
case "$BOARDCONFIG" in
mx53loco*|mx6qsabrelite*|efika*) BINEND=imx ;;
*omap*|*am335x*) BINEND=img
OMAP_SPL=1 ;;
*arndale*) BINEND=bin
ARNDALE_SPL=1 ;;
*Bananapi*|*Cubieboard*|Cubietruck*|*-OLinuXino-Lime*) BINEND=img
SUNXI_SPL=1 ;;
*Mele_A1000*) BINEND=img
SUNXI_SPL=1 ;;
*Hyundai_A7HD*) BINEND=img
SUNXI_SPL=1 ;;
*snow*) BINEND=img ;;
mx6_cubox-i*) BINEND=img
CUBOXI_SPL=1 ;;
*) 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/CUBOXI_SPL/$CUBOXI_SPL/g
s/OMAP_SPL/$OMAP_SPL/g" < u-boot.spec.in > u-boot-$BOARDNAME.spec
cp u-boot.changes u-boot-$BOARDNAME.changes