File u-boot.spec of Package u-boot-firefly-rk3288.25197
#
# spec file for package u-boot
#
# Copyright (c) 2018 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>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# 'archive_version' differs from 'version' for RC version only
%define archive_version 2019.01
Name: u-boot
Version: 2019.01
Release: 0
Summary: Tools for the U-Boot Firmware
License: GPL-2.0-only
Group: System/Boot
Url: http://www.denx.de/wiki/U-Boot
Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2
Source1: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2.sig
Patch0001: 0001-XXX-openSUSE-XXX-Prepend-partition-.patch
Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
Patch0003: 0003-rpi-Use-firmware-provided-device-tr.patch
Patch0004: 0004-Temp-workaround-for-Chromebook-snow.patch
Patch0005: 0005-zynqmp-Add-generic-target.patch
Patch0006: 0006-tools-zynqmpbif-Add-support-for-loa.patch
Patch0007: 0007-boo-1123170-Remove-ubifs-support-fr.patch
Patch0008: 0008-zynqmp-generic-fix-compilation.patch
Patch0009: 0009-efi_loader-Fix-serial-console-size-.patch
Patch0010: 0010-CVE-2019-13106-ext4-fix-out-of-boun.patch
Patch0011: 0011-CVE-2019-13104-ext4-check-for-under.patch
Patch0012: 0012-rpi-add-Compute-Module-3.patch
Patch0013: 0013-usb_kdb-only-process-events-success.patch
Patch0014: 0014-usb-usb_submit_int_msg-usb_int_msg.patch
Patch0015: 0015-usb-storage-submit_int_msg-usb_int_.patch
Patch0016: 0016-usb-Add-nonblock-argument-to-submit.patch
Patch0017: 0017-dwc2-use-the-nonblock-argument-in-s.patch
Patch0018: 0018-CVE-net-fix-unbounded-memcpy-of-UDP.patch
Patch0019: 0019-CVE-nfs-fix-stack-based-buffer-over.patch
Patch0020: 0020-CVE-2019-14194-CVE-2019-14198-nfs-f.patch
Patch0021: 0021-CVE-2019-14195-nfs-fix-unbounded-me.patch
Patch0022: 0022-CVE-2019-14196-nfs-fix-unbounded-me.patch
Patch0023: 0023-CVE-2019-13103-disk-stop-infinite-r.patch
Patch0024: 0024-cmd-gpt-Address-error-cases-during-.patch
Patch0025: 0025-Fix-ext4-block-group-descriptor-siz.patch
Patch0026: 0026-lib-uuid-Fix-unseeded-PRNG-on-RANDO.patch
Patch0027: 0027-image-Check-hash-nodes-when-checkin.patch
Patch0028: 0028-image-Load-the-correct-configuratio.patch
Patch0029: 0029-net-Check-for-the-minimum-IP-fragme.patch
Patch0030: 0030-i2c-fix-stack-buffer-overflow-vulne.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: libopenssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
This package contains:
mkimage- a tool that creates kernel bootable images for U-Boot.
%package tools
Summary: Tools for the U-Boot Firmware
Group: System/Boot
%description tools
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
This package contains:
mkimage- a tool that creates kernel bootable images for U-Boot.
%prep
%setup -q -n u-boot-%{archive_version}
%patch0001 -p1
%patch0002 -p1
%patch0003 -p1
%patch0004 -p1
%patch0005 -p1
%patch0006 -p1
%patch0007 -p1
%patch0008 -p1
%patch0009 -p1
%patch0010 -p1
%patch0011 -p1
%patch0012 -p1
%patch0013 -p1
%patch0014 -p1
%patch0015 -p1
%patch0016 -p1
%patch0017 -p1
%patch0018 -p1
%patch0019 -p1
%patch0020 -p1
%patch0021 -p1
%patch0022 -p1
%patch0023 -p1
%patch0024 -p1
%patch0025 -p1
%patch0026 -p1
%patch0027 -p1
%patch0028 -p1
%patch0029 -p1
%patch0030 -p1
%build
# needed for include/config/auto.conf
make defconfig
make syncconfig
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" tools-only
%install
install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage
install -D -m 0644 doc/mkimage.1 %{buildroot}%{_mandir}/man1/mkimage.1
%files tools
%defattr(-,root,root)
%license Licenses/gpl-2.0.txt
%{_bindir}/mkimage
%{_mandir}/man1/mkimage.1.gz
%changelog