SHA256
1
0
forked from pool/u-boot
u-boot/pre_checkin.sh
Guillaume GARDET 31045129c4 Accepting request 607419 from hardware👢staging
- Conditionalize pine64plus ATF support on uboot_atf_pine64
- u-boot-board.spec.in: Update license
- Add poplar
- Update to 2018.05
- Update to 2018.05-rc3
- Include u-boot.spec in autogeneration logic
- Add support for .bif generation in mkimage
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches added:
  0006-tools-zynqmpimage-Add-partition-rea.patch
  0007-tools-zynqmpimage-Move-defines-to-h.patch
  0008-MAINTAINERS-Declare-tools-zynq-.-c-.patch
  0009-tools-zynqmpimage-Add-bif-support.patch
  0010-tools-zynqmpbif-Add-support-for-loa.patch
- Add generic ZynqMP support
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches added:
  0005-zynqmp-Add-generic-target.patch
- Update to 2018.05-rc2
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches dropped:
  0004-rpi3-Enable-lan78xx-driver.patch
  0005-rpi-Add-identifier-for-the-new-RPi3.patch
  0006-efi_loader-Fix-network-DP-with-DM_E.patch
  0007-mkimage-do-not-fail-if-there-is-no-.patch
  0008-rpi-Allow-to-boot-without-serial.patch
  0009-mmc-use-core-clock-frequency-in-bcm.patch
  0010-Temp-workaround-for-Chromebook-snow.patch
* Patches added:
  0004-Temp-workaround-for-Chromebook-snow.patch
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches added:
  0010-Temp-workaround-for-Chromebook-snow.patch
  
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches dropped:
  0009-rpi-Allow-to-boot-without-serial.patch
  0010-mmc-use-core-clock-frequency-in-bcm.patch
* Patches added:
  0008-rpi-Allow-to-boot-without-serial.patch
  0009-mmc-use-core-clock-frequency-in-bcm.patch
    
- Update to 2018.05-rc1
- Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2018.05
* Patches dropped:
  0003-Revert-rockchip-mkimage-remove-plac.patch
  0004-rpi-Use-firmware-provided-device-tr.patch
  0005-rpi3-Enable-lan78xx-driver.patch
  0006-net-Only-access-network-devices-aft.patch
  0007-rpi-Add-identifier-for-the-new-RPi3.patch
  0008-efi_loader-Fix-network-DP-with-DM_E.patch
* Patches added:
  0003-rpi-Use-firmware-provided-device-tr.patch
  0004-rpi3-Enable-lan78xx-driver.patch
  0005-rpi-Add-identifier-for-the-new-RPi3.patch
  0006-efi_loader-Fix-network-DP-with-DM_E.patch
  0007-mkimage-do-not-fail-if-there-is-no-.patch

OBS-URL: https://build.opensuse.org/request/show/607419
OBS-URL: https://build.opensuse.org/package/show/hardware:boot/u-boot?expand=0&rev=16
2018-05-15 09:14:56 +00:00

178 lines
4.9 KiB
Bash

#!/bin/bash -e
if [ ! -e u-boot.spec.tmp ]; then
# We need to convert u-boot.spec.in into u-boot.spec.tmp first
/bin/sh update_git.sh
fi
BOARDNAME="$1"
BOARDCONFIG="$2"
ARCH_RESTRICTIONS="$3"
armv6_boards="rpi"
# TI
armv7_boards="omap3_beagle omap4_panda am335x_evm am335x_boneblack pcm051_rev3 am57xx_evm"
# Exynos
armv7_boards="$armv7_boards arndale snow spring odroid odroid-xu3"
# Calxeda
armv7_boards="$armv7_boards highbank"
# Freescale
armv7_boards="$armv7_boards mx53loco mx6cuboxi mx6qsabrelite udoo udoo_neo"
# Allwinner
armv7_boards="$armv7_boards Bananapi Cubieboard Cubieboard2 Cubietruck Mele_A1000 Merrii_A80_Optimus"
armv7_boards="$armv7_boards A10-OLinuXino-Lime A13-OLinuXino A13-OLinuXinoM"
armv7_boards="$armv7_boards A20-OLinuXino-Lime A20-OLinuXino-Lime2 A20-OLinuXino_MICRO"
armv7_boards="$armv7_boards nanopi_neo nanopi_neo_air orangepi_pc Hyundai_A7HD Lamobo_R1 Sinovoip_BPI_M2_Plus"
# Broadcom
armv7_boards="$armv7_boards rpi_2 rpi_3_32b"
# Nvidia
armv7_boards="$armv7_boards colibri_t20 paz00 jetson-tk1"
# Rockchip
armv7_boards="$armv7_boards firefly-rk3288 tinker-rk3288"
# Marvell
armv7_boards="$armv7_boards clearfog turris_omnia"
# Altera
armv7_boards="$armv7_boards socfpga_de0_nano_soc"
aarch64_boards="dragonboard410c ls1012afrdm_qspi p2371-2180 rpi_3"
# Allwinner
aarch64_boards="$aarch64_boards nanopi_a64 orangepi_pc2 pine64_plus"
# Amlogic
aarch64_boards="$aarch64_boards odroid-c2"
# Hisilicon
aarch64_boards="$aarch64_boards hikey poplar"
# Marvell
aarch64_boards="$aarch64_boards mvebu_db-88f3720 mvebu_espressobin-88f3720"
aarch64_boards="$aarch64_boards mvebu_db_armada8k mvebu_mcbin-88f8040"
# Rockchip
aarch64_boards="$aarch64_boards geekbox"
aarch64_boards="$aarch64_boards evb-rk3399 firefly-rk3399"
# Xilinx
aarch64_boards="$aarch64_boards xilinx_zynqmp_zcu102_rev1_0 xilinx_zynqmp_generic"
ppc_boards="qemu-ppce500"
function generate_spec() {
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/MVEBU_SPL/$MVEBU_SPL/g
s/SOCFPGA_SPL/$SOCFPGA_SPL/g
s/ROCKCHIP_SPL_IMAGE_TYPES/$ROCKCHIP_SPL_IMAGE_TYPES/g
s/ROCKCHIP_SPL_SOC/$ROCKCHIP_SPL_SOC/g
s/ROCKCHIP_SPL/$ROCKCHIP_SPL/g
s/SUNXI_SPL/$SUNXI_SPL/g
s/TEGRA_SPL/$TEGRA_SPL/g
s/IMX6_SPL/$IMX6_SPL/g
s/OMAP_SPL/$OMAP_SPL/g"
}
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
# ppc boards
for BOARDCONFIG in $ppc_boards; do
BOARDNAME="$(echo $BOARDCONFIG | tr -d '_' | tr '[:upper:]' '[:lower:]')"
BOARDCONFIG=${BOARDCONFIG}_defconfig
ARCH_RESTRICTIONS="ppc"
bash $0 $BOARDNAME $BOARDCONFIG "$ARCH_RESTRICTIONS"
done
# Generate u-boot.spec
generate_spec < u-boot.spec.tmp > u-boot.spec
exit 0
fi
MVEBU_SPL=0
OMAP_SPL=0
ROCKCHIP_SPL=0
SUNXI_SPL=0
ARNDALE_SPL=0
ORIGEN_SPL=0
IMX6_SPL=0
SOCFPGA_SPL=0
case "$(echo $BOARDCONFIG | sed -e 's/_defconfig//')" in
mx53loco|mx6qsabrelite|efika*)
BINEND=imx
;;
omap*|am335x*|pcm051*)
BINEND=img
OMAP_SPL=1
;;
arndale)
BINEND=bin
ARNDALE_SPL=1
;;
Bananapi*|Cubieboard*|Cubietruck*|Hyundai_A7HD|Mele_A1000|nanopi_neo|*-OLinuXino*|orangepi_pc|Lamobo_R1|Sinovoip_BPI_M2_Plus)
BINEND=img
SUNXI_SPL=1
;;
nanopi_a64|orangepi_pc2|pine64_plus)
BINEND=itb
SUNXI_SPL=1
;;
snow|spring)
BINEND=img
;;
mx6cuboxi)
BINEND=img
IMX6_SPL=1
;;
udoo|udoo_neo)
BINEND=img
IMX6_SPL=1
;;
firefly-rk3288)
BINEND=bin
ROCKCHIP_SPL=1
ROCKCHIP_SPL_IMAGE_TYPES="rksd rkimage"
ROCKCHIP_SPL_SOC=rk3288
;;
tinker-rk3288)
BINEND=bin
ROCKCHIP_SPL=1
ROCKCHIP_SPL_IMAGE_TYPES="rksd"
ROCKCHIP_SPL_SOC=rk3288
;;
clearfog|turris_omnia)
BINEND=img
MVEBU_SPL=1
;;
socfpga_*)
BINEND=img
SOCFPGA_SPL=1
;;
xilinx*|zynq*)
BINEND=elf
;;
*) BINEND=bin ;;
esac
generate_spec < u-boot-board.spec.tmp > u-boot-$BOARDNAME.spec
cp u-boot.changes u-boot-$BOARDNAME.changes