forked from pool/u-boot
4a8c51668e
- Added support for DE0-Nanos-SoC board - Updated to v2016.11 - Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2016.11 to fix build of Raspberry Pi 1, 2 and 3 - Updated to v2016.11-rc3 - Patch queue updated from git://github.com/openSUSE/u-boot.git tumbleweed-2016.11 * Patches dropped: 0004-efi_loader-Allow-boards-to-implemen.patch 0005-ARM-bcm283x-Implement-EFI-RTS-reset.patch 0006-efi_loader-gop-Expose-fb-when-32bpp.patch 0007-bcm2835-video-Map-frame-buffer-as-3.patch 0008-bcm2835-Reserve-the-spin-table-in-e.patch 0009-x86-Move-table-csum-into-separate-h.patch 0010-x86-Move-smbios-generation-into-arc.patch 0011-efi_loader-Expose-efi_install_confi.patch 0012-smbios-Allow-compilation-on-64bit-s.patch 0013-smbios-Expose-in-efi_loader-as-tabl.patch 0014-efi_loader-Fix-efi_install_configur.patch 0015-smbios-Provide-serial-number.patch 0016-efi_loader-Update-description-of-in.patch 0017-efi_loader-Fix-memory-map-size-chec.patch 0018-efi_loader-Fix-crash-on-32-bit-syst.patch 0019-efi_loader-Move-efi_allocate_pool-i.patch 0020-efi_loader-Track-size-of-pool-alloc.patch 0021-efi_loader-Readd-freed-pages-to-mem.patch 0022-efi_loader-Keep-memory-mapping-sort.patch 0023-efi_loader-Do-not-leak-memory-when-.patch OBS-URL: https://build.opensuse.org/request/show/448523 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=83
156 lines
4.0 KiB
Bash
156 lines
4.0 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 am57xx_evm_nodt"
|
|
# 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"
|
|
# 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 orangepi_pc Hyundai_A7HD"
|
|
# 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"
|
|
# Marvell
|
|
armv7_boards="$armv7_boards clearfog"
|
|
# Altera
|
|
armv7_boards="$armv7_boards socfpga_de0_nano_soc"
|
|
|
|
aarch64_boards="dragonboard410c hikey odroid-c2 p2371-2180 pine64_plus rpi_3"
|
|
|
|
ppc_boards="qemu-ppce500"
|
|
|
|
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
|
|
exit 0
|
|
fi
|
|
|
|
CHANGE_DATE=$(date -d "$(head -n 2 u-boot.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
|
MVEBU_SPL=0
|
|
OMAP_SPL=0
|
|
ROCKCHIP_SPL=0
|
|
SUNXI_SPL=0
|
|
ARNDALE_SPL=0
|
|
CUBOXI_SPL=0
|
|
ORIGEN_SPL=0
|
|
UDOO_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*|*-OLinuXino*|orangepi_pc)
|
|
BINEND=img
|
|
SUNXI_SPL=1
|
|
;;
|
|
Mele_A1000)
|
|
BINEND=img
|
|
SUNXI_SPL=1
|
|
;;
|
|
Hyundai_A7HD)
|
|
BINEND=img
|
|
SUNXI_SPL=1
|
|
;;
|
|
snow|spring)
|
|
BINEND=img
|
|
;;
|
|
mx6cuboxi)
|
|
BINEND=img
|
|
CUBOXI_SPL=1
|
|
;;
|
|
udoo)
|
|
BINEND=img
|
|
UDOO_SPL=1
|
|
;;
|
|
firefly-rk3288)
|
|
BINEND=img
|
|
ROCKCHIP_SPL=1
|
|
ROCKCHIP_SPL_IMAGE_TYPES="rksd rkimage"
|
|
ROCKCHIP_SPL_SOC=rk3288
|
|
;;
|
|
clearfog)
|
|
BINEND=img
|
|
MVEBU_SPL=1
|
|
;;
|
|
socfpga_*)
|
|
BINEND=img
|
|
SOCFPGA_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/CHANGE_DATE/$CHANGE_DATE/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/CUBOXI_SPL/$CUBOXI_SPL/g
|
|
s/UDOO_SPL/$UDOO_SPL/g
|
|
s/OMAP_SPL/$OMAP_SPL/g" < u-boot.spec.tmp > u-boot-$BOARDNAME.spec
|
|
|
|
cp u-boot.changes u-boot-$BOARDNAME.changes
|