Accepting request 318393 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/318393 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=51
This commit is contained in:
@@ -35,6 +35,8 @@ Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
|
||||
Source2: arndale-bl1.img
|
||||
Source300: u-boot-rpmlintrc
|
||||
Patch1: mx53loco-bootscr.patch
|
||||
Patch51: jetson-tk1-gpu-1.patch
|
||||
Patch52: jetson-tk1-gpu-2.patch
|
||||
# Marvell boards support is non-free licensed, and we don't need it (bnc#773824)
|
||||
Patch99: drop-marvell.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -67,6 +69,8 @@ This package contains documentation for u-boot firmware
|
||||
rm -rf board/Marvell
|
||||
# Any custom patches to be applied on top of mainline u-boot
|
||||
%patch1 -p1
|
||||
%patch51 -p1
|
||||
%patch52 -p1
|
||||
%patch99 -p1
|
||||
|
||||
%build
|
||||
@@ -79,6 +83,12 @@ export TEXT_START=$(awk '$NF == "_start" { printf "0x"$1 }' System.map)
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if "%{name}" == "u-boot-jetson-tk1"
|
||||
# tegra-uboot-flasher needs several intermediate files, under their original name.
|
||||
for f in u-boot u-boot.dtb u-boot-dtb-tegra.bin u-boot-nodtb-tegra.bin; do
|
||||
install -D -m 0644 $f %{buildroot}/boot/$f
|
||||
done
|
||||
%else
|
||||
# Some times u-boot needs a dtb to configure itself appended to the binary.
|
||||
# In that case prefer the one with a working dtb already appended.
|
||||
if [ -f u-boot-dtb-tegra.bin ]; then
|
||||
@@ -88,6 +98,7 @@ elif [ -f u-boot-dtb.BINEND ]; then
|
||||
else
|
||||
install -D -m 0644 u-boot.BINEND %{buildroot}/boot/u-boot.BINEND
|
||||
fi
|
||||
%endif
|
||||
%if %x_loader == 1
|
||||
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user