2012-07-24 16:16:40 +02:00
|
|
|
#
|
|
|
|
# spec file for package u-boot-BOARDNAME
|
|
|
|
#
|
2016-02-09 16:49:43 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-07-24 16:16:40 +02:00
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-12-16 14:49:23 +01:00
|
|
|
%define x_loader OMAP_SPL
|
2012-08-07 08:24:10 +02:00
|
|
|
%define origen_spl ORIGEN_SPL
|
Accepting request 174405 from Base:System
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
OBS-URL: https://build.opensuse.org/request/show/174405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=13
2013-05-07 07:38:13 +02:00
|
|
|
%define sunxi_spl SUNXI_SPL
|
2013-12-22 19:38:12 +01:00
|
|
|
%define arndale_spl ARNDALE_SPL
|
2014-07-11 06:45:49 +02:00
|
|
|
%define cuboxi_spl CUBOXI_SPL
|
2016-02-09 16:49:43 +01:00
|
|
|
%define udoo_spl UDOO_SPL
|
2012-07-24 16:16:40 +02:00
|
|
|
|
2015-08-10 09:16:06 +02:00
|
|
|
# archive_version differs from version for RC version only
|
2016-03-07 13:27:45 +01:00
|
|
|
%define archive_version 2016.03-rc3
|
2015-08-10 09:16:06 +02:00
|
|
|
|
2012-07-24 16:16:40 +02:00
|
|
|
Name: u-boot-BOARDNAME
|
2016-03-07 13:27:45 +01:00
|
|
|
Version: 2016.03~rc3
|
2012-07-24 16:16:40 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The u-boot firmware for the BOARDNAME arm platform
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Boot
|
|
|
|
Url: http://www.denx.de/wiki/U-Boot
|
2015-08-10 09:16:06 +02:00
|
|
|
Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{archive_version}.tar.bz2
|
2013-12-22 19:38:12 +01:00
|
|
|
Source2: arndale-bl1.img
|
2014-08-01 07:07:48 +02:00
|
|
|
Source300: u-boot-rpmlintrc
|
2016-02-09 16:49:43 +01:00
|
|
|
# Fix exynos KVM support
|
2016-02-26 22:18:42 +01:00
|
|
|
Patch1: u-boot-exynos.patch
|
2016-03-07 13:27:45 +01:00
|
|
|
# Add EFI support. Will be upstream in the next version of u-boot.
|
|
|
|
Patch3: efi.patch
|
|
|
|
Patch4: efi2.patch
|
|
|
|
# Set default environment slightly different for EFI, so it finds our dtbs
|
|
|
|
Patch5: efi-default-env.patch
|
|
|
|
# Move omap3 to distro boot method
|
|
|
|
Patch6: omap3-Move-to-distro-bootcmd.patch
|
|
|
|
# efi: Run memory node fixups in device tree
|
|
|
|
Patch7: efi_loader-Call-fdt-preparation-functions.patch
|
|
|
|
# Allow grub2 to find its config file
|
|
|
|
Patch8: efi_loader-Pass-proper-device-path-in-on-boot.patch
|
|
|
|
# Fix Raspberry Pi 1 build
|
|
|
|
Patch9: efi_loader-Provide-icache-flush-stub.patch
|
|
|
|
# Make SPL work with raw sector offsets on beagle-xm
|
|
|
|
Patch10: omap3-Use-raw-SPL-by-default-for-mmc1.patch
|
|
|
|
# Ensure we mark the device tree as reserved
|
|
|
|
Patch11: efi-map-fdt-as-reserved.patch
|
2014-09-08 21:29:09 +02:00
|
|
|
# Marvell boards support is non-free licensed, and we don't need it (bnc#773824)
|
|
|
|
Patch99: drop-marvell.patch
|
2012-07-24 16:16:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-12-22 19:38:12 +01:00
|
|
|
# Arndale board need DTC >= 1.4
|
2014-09-08 21:29:09 +02:00
|
|
|
BuildRequires: bc
|
2013-12-22 19:38:12 +01:00
|
|
|
BuildRequires: dtc >= 1.4.0
|
2016-02-17 10:26:12 +01:00
|
|
|
%if "%{name}" == "u-boot-qemu-ppce500"
|
|
|
|
# Owns /usr/share/qemu directory
|
|
|
|
BuildRequires: qemu
|
|
|
|
Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500
|
|
|
|
%endif
|
2016-02-09 16:49:43 +01:00
|
|
|
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2"
|
|
|
|
# Owns /boot/vc directory
|
|
|
|
BuildRequires: raspberrypi-firmware
|
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
Provides: u-boot-loader
|
|
|
|
Conflicts: otherproviders(u-boot-loader)
|
|
|
|
%if %x_loader == 1
|
|
|
|
Obsoletes: x-loader-BOARDNAME
|
|
|
|
Provides: x-loader-BOARDNAME
|
|
|
|
%endif
|
2014-05-17 21:45:20 +02:00
|
|
|
ExclusiveArch: ARCH_RESTRICTIONS
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%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 the firmware for the BOARDNAME arm platform.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for the u-boot Firmware
|
|
|
|
Group: Documentation/Other
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
|
|
|
|
This package contains documentation for u-boot firmware
|
|
|
|
|
|
|
|
%prep
|
2015-08-10 09:16:06 +02:00
|
|
|
%setup -q -n u-boot-%{archive_version}
|
2015-11-08 11:26:14 +01:00
|
|
|
%patch1 -p1
|
2016-03-07 13:27:45 +01:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
2012-08-07 08:24:10 +02:00
|
|
|
# is non-free licensed, and we don't need it (bnc#773824)
|
|
|
|
rm -rf board/Marvell
|
2014-09-08 21:29:09 +02:00
|
|
|
%patch99 -p1
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%build
|
2016-02-09 16:49:43 +01:00
|
|
|
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" BOARDCONFIG
|
|
|
|
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
2015-10-08 08:25:53 +02:00
|
|
|
%if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring"
|
|
|
|
# Chromebook ARM (snow) and HP Chromebook 11 (spring) need a uImage format
|
2014-04-08 22:37:34 +02:00
|
|
|
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
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%install
|
2015-12-24 12:16:47 +01:00
|
|
|
export NO_BRP_STRIP_DEBUG=true
|
|
|
|
export NO_DEBUGINFO_STRIP_DEBUG=true
|
|
|
|
%define uboot_dir /boot
|
|
|
|
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2"
|
|
|
|
%define uboot_dir /boot/vc
|
|
|
|
%endif
|
2016-02-17 10:26:12 +01:00
|
|
|
%if "%{name}" == "u-boot-qemu-ppce500"
|
|
|
|
%define uboot_dir %{_datadir}/qemu
|
|
|
|
%endif
|
2015-08-01 11:35:33 +02:00
|
|
|
%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
|
2014-01-08 20:09:39 +01:00
|
|
|
# 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.
|
2014-01-29 22:22:37 +01:00
|
|
|
if [ -f u-boot-dtb-tegra.bin ]; then
|
2015-12-24 12:16:47 +01:00
|
|
|
install -D -m 0644 u-boot-dtb-tegra.BINEND %{buildroot}%{uboot_dir}/u-boot.BINEND
|
2014-01-29 22:22:37 +01:00
|
|
|
elif [ -f u-boot-dtb.BINEND ]; then
|
2015-12-24 12:16:47 +01:00
|
|
|
install -D -m 0644 u-boot-dtb.BINEND %{buildroot}%{uboot_dir}/u-boot.BINEND
|
2014-01-08 20:09:39 +01:00
|
|
|
else
|
2015-12-24 12:16:47 +01:00
|
|
|
install -D -m 0644 u-boot.BINEND %{buildroot}%{uboot_dir}/u-boot.BINEND
|
2014-01-08 20:09:39 +01:00
|
|
|
fi
|
2016-02-17 10:26:12 +01:00
|
|
|
%if "%{name}" == "u-boot-qemu-ppce500"
|
|
|
|
mv %{buildroot}%{uboot_dir}/u-boot.BINEND %{buildroot}%{uboot_dir}/u-boot.e500
|
|
|
|
%endif
|
2015-08-01 11:35:33 +02:00
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
%if %x_loader == 1
|
|
|
|
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
|
|
|
%endif
|
2012-08-07 08:24:10 +02:00
|
|
|
%if %origen_spl == 1
|
|
|
|
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
|
|
|
%endif
|
2013-12-22 19:38:12 +01:00
|
|
|
%if %arndale_spl == 1
|
|
|
|
install -D -m 0755 spl/arndale-spl.bin %{buildroot}/boot/arndale-spl.bin
|
|
|
|
install -D -m 0755 %{SOURCE2} %{buildroot}/boot/arndale-bl1.img
|
|
|
|
%endif
|
Accepting request 174405 from Base:System
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
OBS-URL: https://build.opensuse.org/request/show/174405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=13
2013-05-07 07:38:13 +02:00
|
|
|
%if %sunxi_spl == 1
|
|
|
|
install -D -m 0755 spl/sunxi-spl.bin %{buildroot}/boot/sunxi-spl.bin
|
2014-11-19 20:26:40 +01:00
|
|
|
install -D -m 0755 u-boot-sunxi-with-spl.bin %{buildroot}/boot/u-boot-sunxi-with-spl.bin
|
Accepting request 174405 from Base:System
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
- update to 2013.04
* no upstream changelog available
- remove dead u-boot-raspberrypi* (actually called rpib now)
- add rpib variant
- add support for cubieboard, hyundaia7hd, melea1000
OBS-URL: https://build.opensuse.org/request/show/174405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=13
2013-05-07 07:38:13 +02:00
|
|
|
%endif
|
2014-07-11 06:45:49 +02:00
|
|
|
%if %cuboxi_spl == 1
|
|
|
|
install -D -m 0755 SPL %{buildroot}/boot/cuboxi-spl.bin
|
|
|
|
%endif
|
2016-02-09 16:49:43 +01:00
|
|
|
%if %udoo_spl == 1
|
|
|
|
install -D -m 0755 SPL %{buildroot}/boot/udoo_spl.bin
|
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-02-09 16:49:43 +01:00
|
|
|
%{uboot_dir}/*
|
2014-11-13 09:17:26 +01:00
|
|
|
%doc Licenses/gpl-2.0.txt README
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# Generic documents
|
|
|
|
%doc doc/README.JFFS2 doc/README.JFFS2_NAND doc/README.commands
|
|
|
|
%doc doc/README.autoboot doc/README.commands doc/README.console doc/README.dns
|
|
|
|
%doc doc/README.hwconfig doc/README.nand doc/README.NetConsole doc/README.serial_multi
|
|
|
|
%doc doc/README.SNTP doc/README.standalone doc/README.update doc/README.usb
|
2016-02-26 22:18:42 +01:00
|
|
|
%doc doc/README.video doc/README.VLAN doc/README.silent doc/README.POST
|
2012-07-24 16:16:40 +02:00
|
|
|
# Copy some useful kermit scripts as well
|
2014-05-17 21:45:20 +02:00
|
|
|
%doc tools/kermit/dot.kermrc tools/kermit/flash_param tools/kermit/send_cmd tools/kermit/send_image
|
2012-07-24 16:16:40 +02:00
|
|
|
# Now any h/w dependent Documentation
|
2014-09-08 21:29:09 +02:00
|
|
|
%doc doc/README.ARM-memory-map
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%changelog
|