SHA256
1
0
forked from pool/u-boot

Accepting request 876781 from hardware:boot

- Fix confname assignment for zynqmp and zynq case (bsc#1182962)
- Guard 'export BL31' for sun50i_h6 and sun50i_a64 with
  '%{with uboot_atf}' condition (bsc#1182962)
- update_git.sh: use safe tmp directories, use authenticated https://
  procotol.
- Build with arm-trusted-firmware for Tumbleweed
- Drop unused uboot_atf_pine64 option

OBS-URL: https://build.opensuse.org/request/show/876781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=144
This commit is contained in:
Dominique Leuenberger 2021-03-10 07:49:06 +00:00 committed by Git OBS Bridge
commit 1a25a270e8
3 changed files with 41 additions and 11 deletions

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Mar 4 14:59:52 UTC 2021 - Matthias Brugger <mbrugger@suse.com>
- Fix confname assignment for zynqmp and zynq case (bsc#1182962)
-------------------------------------------------------------------
Thu Mar 4 10:51:38 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Guard 'export BL31' for sun50i_h6 and sun50i_a64 with
'%{with uboot_atf}' condition (bsc#1182962)
-------------------------------------------------------------------
Mon Mar 1 13:13:54 UTC 2021 - Matthias Gerstner <matthias.gerstner@suse.com>
- update_git.sh: use safe tmp directories, use authenticated https://
procotol.
-------------------------------------------------------------------
Mon Mar 1 09:36:17 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Build with arm-trusted-firmware for Tumbleweed
- Drop unused uboot_atf_pine64 option
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 16 19:58:28 UTC 2021 - Matthias Brugger <mbrugger@suse.com> Tue Feb 16 19:58:28 UTC 2021 - Matthias Brugger <mbrugger@suse.com>

View File

@ -206,8 +206,12 @@ ExclusiveArch: do_not_build
%endif %endif
%endif %endif
%endif %endif
%if 0%{?suse_version} > 1500
# arm-trusted-firmware is only in Tumbleweed
%bcond_without uboot_atf
%else
%bcond_with uboot_atf %bcond_with uboot_atf
%bcond_with uboot_atf_pine64 %endif
Version: 2021.01 Version: 2021.01
Release: 0 Release: 0
Summary: The U-Boot firmware for the %target platform Summary: The U-Boot firmware for the %target platform
@ -404,11 +408,15 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" tools-only
%else %else
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/u-boot.changes | tail -n 1 | cut -d- -f1 )" +%s) export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/u-boot.changes | tail -n 1 | cut -d- -f1 )" +%s)
%if 0%{?is_a64} || 0%{?is_h5} %if 0%{?is_a64} || 0%{?is_h5}
%if %{with uboot_atf}
export BL31=%{_datadir}/arm-trusted-firmware-sun50i_a64/bl31.bin export BL31=%{_datadir}/arm-trusted-firmware-sun50i_a64/bl31.bin
%endif
export SCP=/dev/null export SCP=/dev/null
%endif %endif
%if 0%{?is_h6} %if 0%{?is_h6}
%if %{with uboot_atf}
export BL31=%{_datadir}/arm-trusted-firmware-sun50i_h6/bl31.bin export BL31=%{_datadir}/arm-trusted-firmware-sun50i_h6/bl31.bin
%endif
export SCP=/dev/null export SCP=/dev/null
%endif %endif
%if "%{name}" == "u-boot-qemu-riscv64spl" %if "%{name}" == "u-boot-qemu-riscv64spl"
@ -429,11 +437,13 @@ cp %{_datadir}/arm-trusted-firmware-rk3399/bl31.elf .
%if %{is_zynq} %if %{is_zynq}
confname="xilinx_zynq_virt_defconfig" confname="xilinx_zynq_virt_defconfig"
%elif %{is_zynqmp} %else
%if %{is_zynqmp}
confname="xilinx_zynqmp_virt_defconfig" confname="xilinx_zynqmp_virt_defconfig"
%else %else
confname=$(ls configs | perl -ne '$l=lc; $l=~ s,_,,g; $l eq "%{target}defconfig\n" && print;') confname=$(ls configs | perl -ne '$l=lc; $l=~ s,_,,g; $l eq "%{target}defconfig\n" && print;')
%endif %endif
%endif
%if "%target" == "avnetultra96rev1" %if "%target" == "avnetultra96rev1"
export DEVICE_TREE=avnet-ultra96-rev1 export DEVICE_TREE=avnet-ultra96-rev1

View File

@ -11,15 +11,14 @@
set -e set -e
GIT_TREE=git://github.com/openSUSE/u-boot.git GIT_TREE=https://github.com/openSUSE/u-boot.git
GIT_LOCAL_TREE=~/src/opensuse/u-boot GIT_LOCAL_TREE=~/src/opensuse/u-boot
GIT_BRANCH=tumbleweed-2021.01 GIT_BRANCH=tumbleweed-2021.01
GIT_UPSTREAM_TAG=v2021.01 GIT_UPSTREAM_TAG=v2021.01
GIT_DIR=/dev/shm/u-boot-factory-git-dir GIT_DIR=`mktemp -d -p /dev/shm`
CMP_DIR=/dev/shm/u-boot-factory-cmp-dir CMP_DIR=`mktemp -d -p /dev/shm`
rm -rf $GIT_DIR trap 'rm -rf "$GIT_DIR" "$CMP_DIR"' EXIT
rm -rf $CMP_DIR
if [ -d "$GIT_LOCAL_TREE" ] || [ -L "$GIT_LOCAL_TREE" ]; then if [ -d "$GIT_LOCAL_TREE" ] || [ -L "$GIT_LOCAL_TREE" ]; then
echo "Processing $GIT_BRANCH branch of local git tree, using tag:" \ echo "Processing $GIT_BRANCH branch of local git tree, using tag:" \
@ -57,7 +56,6 @@ fi
UBOOT_VERSION="${UBOOT_VERSION}${UBOOT_EXTRAVERSION}" UBOOT_VERSION="${UBOOT_VERSION}${UBOOT_EXTRAVERSION}"
echo "U-Boot version: $UBOOT_VERSION" echo "U-Boot version: $UBOOT_VERSION"
rm -rf $GIT_DIR
( (
CHANGED_COUNT=0 CHANGED_COUNT=0
@ -70,9 +68,10 @@ rm -rf $GIT_DIR
# Process patches to eliminate useless differences: limit file names to 40 chars # Process patches to eliminate useless differences: limit file names to 40 chars
# before extension and remove git signature. ('32' below gets us past dir prefix) # before extension and remove git signature. ('32' below gets us past dir prefix)
for i in $CMP_DIR/*; do for i in $CMP_DIR/*; do
base=`basename "$i"`
# format-patch may append a signature, which per default contains the git version # format-patch may append a signature, which per default contains the git version
# wipe everything starting from the signature tag # wipe everything starting from the signature tag
sed '/^-- $/Q' $i > $CMP_DIR/${i:32:40}.patch sed '/^-- $/Q' $i > $CMP_DIR/${base:0:40}.patch
rm $i rm $i
done done
@ -128,8 +127,6 @@ rm -rf $GIT_DIR
echo " added: $ADDED_COUNT" echo " added: $ADDED_COUNT"
) )
rm -rf $CMP_DIR
echo "Updating patch list" echo "Updating patch list"
# Handle patch list automatically in spec file # Handle patch list automatically in spec file
patch_list=`ls 0*.patch` patch_list=`ls 0*.patch`