SHA256
1
0
forked from pool/u-boot

Accepting request 336911 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/336911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=55
This commit is contained in:
Stephan Kulow
2015-10-08 06:25:53 +00:00
committed by Git OBS Bridge
parent ba7e0c5dfb
commit 9179ad19f0
66 changed files with 2714 additions and 74 deletions

View File

@@ -37,6 +37,9 @@ Url: http://www.denx.de/wiki/U-Boot
Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2
Source2: arndale-bl1.img
Source300: u-boot-rpmlintrc
# openSUSE fixes hopefully going upstream soon
# https://www.mail-archive.com/u-boot@lists.denx.de/msg187126.html
Patch50: arndale-apply-cortex-a15-erratas.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
@@ -65,6 +68,7 @@ This package contains documentation for u-boot firmware
%prep
%setup -q -n u-boot-%{archive_version}
%patch50 -p1
# is non-free licensed, and we don't need it (bnc#773824)
rm -rf board/Marvell
# Any custom patches to be applied on top of mainline u-boot
@@ -73,8 +77,8 @@ rm -rf board/Marvell
%build
make %{?jobs:-j %jobs} CFLAGS="$RPM_OPT_FLAGS" BOARDCONFIG
make %{?jobs:-j %jobs} CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
%if "%{name}" == "u-boot-snow"
# Chromebook ARM (snow) need a uImage format
%if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring"
# Chromebook ARM (snow) and HP Chromebook 11 (spring) need a uImage format
export TEXT_START=$(awk '$NF == "_start" { printf "0x"$1 }' System.map)
./tools/mkimage -A arm -O linux -T kernel -C none -a $TEXT_START -e $TEXT_START -n uboot -d u-boot-dtb.bin u-boot.img
%endif