forked from pool/u-boot
Accepting request 455547 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/455547 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=84
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package u-boot-dragonboard410c
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2010 Texas Instruments Inc by Nishanth Menon
|
||||
# Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
@@ -26,13 +26,14 @@
|
||||
%define cuboxi_spl 0
|
||||
%define origen_spl 0
|
||||
%define udoo_spl 0
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 0
|
||||
|
||||
# archive_version differs from version for RC version only
|
||||
%define archive_version 2016.11
|
||||
%define archive_version 2017.01
|
||||
|
||||
Name: u-boot-dragonboard410c
|
||||
Version: 2016.11
|
||||
Version: 2017.01
|
||||
Release: 0
|
||||
Summary: The U-Boot firmware for the dragonboard410c platform
|
||||
License: GPL-2.0
|
||||
@@ -43,13 +44,7 @@ Source2: arndale-bl1.img
|
||||
Source3: update_git.sh
|
||||
Source300: u-boot-rpmlintrc
|
||||
Patch0001: 0001-XXX-openSUSE-XXX-Load-dtb-from-part.patch
|
||||
Patch0002: 0002-XXX-openSUSE-XXX-omap3-Move-to-dist.patch
|
||||
Patch0003: 0003-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0004: 0004-ARM-bcm283x-Implement-EFI-RTS-reset.patch
|
||||
Patch0005: 0005-bcm2835-video-Map-frame-buffer-as-3.patch
|
||||
Patch0006: 0006-bcm2835-Reserve-the-spin-table-in-e.patch
|
||||
Patch0007: 0007-efi_loader-fix-depends-on-line-of-E.patch
|
||||
Patch0008: 0008-efi-Use-device-device-path-type-Mes.patch
|
||||
Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# Arndale board need DTC >= 1.4
|
||||
BuildRequires: bc
|
||||
@@ -91,15 +86,9 @@ This package contains documentation for U-Boot firmware.
|
||||
%setup -q -n u-boot-%{archive_version}
|
||||
%patch0001 -p1
|
||||
%patch0002 -p1
|
||||
%patch0003 -p1
|
||||
%patch0004 -p1
|
||||
%patch0005 -p1
|
||||
%patch0006 -p1
|
||||
%patch0007 -p1
|
||||
%patch0008 -p1
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=1482180630
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" dragonboard410c_defconfig
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
%if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring"
|
||||
@@ -114,7 +103,7 @@ done
|
||||
%endif
|
||||
|
||||
%install
|
||||
export SOURCE_DATE_EPOCH=1482180630
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
export NO_BRP_STRIP_DEBUG=true
|
||||
export NO_DEBUGINFO_STRIP_DEBUG=true
|
||||
%define uboot_dir /boot
|
||||
@@ -172,6 +161,9 @@ install -D -m 0755 SPL %{buildroot}/boot/cuboxi-spl.bin
|
||||
%if %udoo_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/udoo_spl.bin
|
||||
%endif
|
||||
%if %imx6_spl == 1
|
||||
install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
%endif
|
||||
%if %socfpga_spl == 1
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user