2012-07-24 16:16:40 +02:00
|
|
|
#
|
2015-04-25 09:53:30 +02:00
|
|
|
# spec file for package u-boot-a20-olinuxino-lime
|
2012-07-24 16:16:40 +02:00
|
|
|
#
|
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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-05-10 09:27:03 +02:00
|
|
|
%define mvebu_spl 0
|
2012-07-24 16:16:40 +02:00
|
|
|
%define x_loader 0
|
2016-04-07 13:32:23 +02:00
|
|
|
%define rockchip_spl 0
|
2015-04-25 09:53:30 +02:00
|
|
|
%define sunxi_spl 1
|
2013-12-22 19:38:12 +01:00
|
|
|
%define arndale_spl 0
|
2014-07-11 06:45:49 +02:00
|
|
|
%define cuboxi_spl 0
|
2016-05-10 09:27:03 +02:00
|
|
|
%define origen_spl 0
|
2016-02-09 16:49:43 +01:00
|
|
|
%define udoo_spl 0
|
2017-01-09 11:54:59 +01:00
|
|
|
%define socfpga_spl 0
|
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
|
2017-01-09 11:54:59 +01:00
|
|
|
%define archive_version 2016.11
|
2015-08-10 09:16:06 +02:00
|
|
|
|
2015-04-25 09:53:30 +02:00
|
|
|
Name: u-boot-a20-olinuxino-lime
|
2017-01-09 11:54:59 +01:00
|
|
|
Version: 2016.11
|
2012-07-24 16:16:40 +02:00
|
|
|
Release: 0
|
2016-05-10 09:27:03 +02:00
|
|
|
Summary: The U-Boot firmware for the a20-olinuxino-lime platform
|
2012-07-24 16:16:40 +02:00
|
|
|
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
|
2016-07-01 10:00:13 +02:00
|
|
|
Source3: update_git.sh
|
2014-08-01 07:07:48 +02:00
|
|
|
Source300: u-boot-rpmlintrc
|
2016-07-01 10:00:13 +02:00
|
|
|
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
|
2017-01-09 11:54:59 +01:00
|
|
|
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
|
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-10-20 23:08:26 +02:00
|
|
|
# u-boot-firefly-rk3288 needs python to build
|
|
|
|
BuildRequires: python
|
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-09-30 15:33:56 +02:00
|
|
|
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
2016-02-09 16:49:43 +01:00
|
|
|
# Owns /boot/vc directory
|
|
|
|
BuildRequires: raspberrypi-firmware
|
2016-09-05 21:24:33 +02:00
|
|
|
# For mountpoint
|
|
|
|
Requires(post): util-linux
|
2016-02-09 16:49:43 +01:00
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
Provides: u-boot-loader
|
|
|
|
Conflicts: otherproviders(u-boot-loader)
|
|
|
|
%if %x_loader == 1
|
2015-04-25 09:53:30 +02:00
|
|
|
Obsoletes: x-loader-a20-olinuxino-lime
|
|
|
|
Provides: x-loader-a20-olinuxino-lime
|
2012-07-24 16:16:40 +02:00
|
|
|
%endif
|
2014-05-17 21:45:20 +02:00
|
|
|
ExclusiveArch: armv7l armv7hl
|
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.
|
2016-05-10 09:27:03 +02:00
|
|
|
This package contains the firmware for the a20-olinuxino-lime platform.
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%package doc
|
2016-05-10 09:27:03 +02:00
|
|
|
Summary: Documentation for the U-Boot Firmware
|
2012-07-24 16:16:40 +02:00
|
|
|
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.
|
2016-05-10 09:27:03 +02:00
|
|
|
This package contains documentation for U-Boot firmware.
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%prep
|
2015-08-10 09:16:06 +02:00
|
|
|
%setup -q -n u-boot-%{archive_version}
|
2016-07-01 10:00:13 +02:00
|
|
|
%patch0001 -p1
|
|
|
|
%patch0002 -p1
|
|
|
|
%patch0003 -p1
|
|
|
|
%patch0004 -p1
|
|
|
|
%patch0005 -p1
|
|
|
|
%patch0006 -p1
|
|
|
|
%patch0007 -p1
|
|
|
|
%patch0008 -p1
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%build
|
2017-01-09 11:54:59 +01:00
|
|
|
export SOURCE_DATE_EPOCH=1482180630
|
2016-02-09 16:49:43 +01:00
|
|
|
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" A20-OLinuXino-Lime_defconfig
|
|
|
|
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
|
2016-04-07 13:32:23 +02:00
|
|
|
%if %rockchip_spl == 1
|
|
|
|
for t in ; do
|
2016-10-20 23:08:26 +02:00
|
|
|
./tools/mkimage -n -d spl/u-boot-spl.bin -T $t u-boot-spl.$t
|
2016-04-07 13:32:23 +02:00
|
|
|
done
|
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%install
|
2017-01-09 11:54:59 +01:00
|
|
|
export SOURCE_DATE_EPOCH=1482180630
|
2015-12-24 12:16:47 +01:00
|
|
|
export NO_BRP_STRIP_DEBUG=true
|
|
|
|
export NO_DEBUGINFO_STRIP_DEBUG=true
|
|
|
|
%define uboot_dir /boot
|
2016-09-30 15:33:56 +02:00
|
|
|
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
2015-12-24 12:16:47 +01:00
|
|
|
%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.
|
2016-04-07 13:32:23 +02:00
|
|
|
for f in u-boot u-boot.dtb u-boot-dtb-tegra.bin u-boot-nodtb-tegra.bin spl/u-boot-spl; do
|
2015-08-01 11:35:33 +02:00
|
|
|
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.img %{buildroot}%{uboot_dir}/u-boot.img
|
2015-04-25 09:53:30 +02:00
|
|
|
elif [ -f u-boot-dtb.img ]; then
|
2015-12-24 12:16:47 +01:00
|
|
|
install -D -m 0644 u-boot-dtb.img %{buildroot}%{uboot_dir}/u-boot.img
|
2014-01-08 20:09:39 +01:00
|
|
|
else
|
2015-12-24 12:16:47 +01:00
|
|
|
install -D -m 0644 u-boot.img %{buildroot}%{uboot_dir}/u-boot.img
|
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.img %{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
|
2016-05-10 09:27:03 +02:00
|
|
|
%if %mvebu_spl == 1
|
|
|
|
install -D -m 0755 u-boot-spl.kwb %{buildroot}%{uboot_dir}/u-boot-spl.kwb
|
|
|
|
%endif
|
2016-04-07 13:32:23 +02:00
|
|
|
%if %rockchip_spl == 1
|
2016-10-20 23:08:26 +02:00
|
|
|
install -D -m 0644 spl/u-boot-spl.bin %{buildroot}%{uboot_dir}/u-boot-spl.bin
|
2016-04-07 13:32:23 +02:00
|
|
|
for t in ; do
|
|
|
|
install -D -m 0644 u-boot-spl.$t %{buildroot}%{uboot_dir}/u-boot-spl.$t
|
|
|
|
done
|
|
|
|
%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
|
2017-01-09 11:54:59 +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
|
2017-01-09 11:54:59 +01:00
|
|
|
%if %socfpga_spl == 1
|
|
|
|
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
|
2016-09-30 15:33:56 +02:00
|
|
|
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
2016-09-05 21:24:33 +02:00
|
|
|
%post
|
|
|
|
# On the Raspberry Pi we chain-load u-boot.bin from bootcode.bin via config.txt.
|
|
|
|
# It needs to be on the first FAT partition, wherever we mounted it.
|
|
|
|
# a) Unmounted, then do nothing.
|
|
|
|
# b) Mounted as /boot/vc, then they're in the right place already.
|
|
|
|
# c) Mounted as /boot/efi, with /boot/vc as symlink, then nothing to be done.
|
|
|
|
# d) Mounted as /boot/efi, with /boot/vc a directory, then copy files over.
|
|
|
|
if mountpoint -q /boot/efi; then
|
|
|
|
[[ "$(readlink -f /boot/efi)" -ef "$(readlink -f %{uboot_dir})" ]] || cp %{uboot_dir}/u-boot.img /boot/efi/
|
|
|
|
fi
|
|
|
|
%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
|
2017-01-09 11:54:59 +01:00
|
|
|
%doc doc/README.ARM-memory-map
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%changelog
|