2012-07-24 16:16:40 +02:00
|
|
|
#
|
2012-08-07 08:24:10 +02:00
|
|
|
# spec file for package u-boot-mx53loco
|
2012-07-24 16:16:40 +02:00
|
|
|
#
|
2014-01-08 20:09:39 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-08-07 08:24:10 +02:00
|
|
|
%define x_loader 0
|
|
|
|
%define origen_spl 0
|
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 0
|
2013-12-22 19:38:12 +01:00
|
|
|
%define arndale_spl 0
|
2012-07-24 16:16:40 +02:00
|
|
|
|
2012-08-07 08:24:10 +02:00
|
|
|
Name: u-boot-mx53loco
|
2013-12-22 19:38:12 +01:00
|
|
|
Version: 2013.10
|
2012-07-24 16:16:40 +02:00
|
|
|
Release: 0
|
2012-08-07 08:24:10 +02:00
|
|
|
Summary: The u-boot firmware for the mx53loco arm platform
|
2012-07-24 16:16:40 +02:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: System/Boot
|
|
|
|
Url: http://www.denx.de/wiki/U-Boot
|
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
|
|
|
Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
|
2012-07-24 16:16:40 +02:00
|
|
|
Source1: openSUSE_panda.txt
|
2013-12-22 19:38:12 +01:00
|
|
|
Source2: arndale-bl1.img
|
2012-07-24 16:16:40 +02:00
|
|
|
Source300: rpmlintrc
|
|
|
|
Patch1: 0006-ARMV7-hardfp-build-fix.patch
|
|
|
|
Patch2: mlo-ext2.patch
|
2013-12-22 19:38:12 +01:00
|
|
|
Patch3: ti_common_initrd_support.patch
|
2012-08-07 08:24:10 +02:00
|
|
|
Patch4: beagle-bootscr.patch
|
|
|
|
Patch5: mx53loco-bootscr.patch
|
2013-12-22 19:38:12 +01:00
|
|
|
Patch6: origen-ext2.patch
|
|
|
|
Patch7: arndale.patch
|
|
|
|
Patch8: v2013.10-sunxi.patch
|
2014-01-03 19:52:00 +01:00
|
|
|
Patch9: am335x_evm-bootscr.patch
|
2014-01-08 20:09:39 +01:00
|
|
|
Patch10: rpi_b-bootscr.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
|
|
|
|
BuildRequires: dtc >= 1.4.0
|
2012-07-24 16:16:40 +02:00
|
|
|
Provides: u-boot-loader
|
|
|
|
Conflicts: otherproviders(u-boot-loader)
|
|
|
|
%if %x_loader == 1
|
2012-08-07 08:24:10 +02:00
|
|
|
Obsoletes: x-loader-mx53loco
|
|
|
|
Provides: x-loader-mx53loco
|
2012-07-24 16:16:40 +02:00
|
|
|
%endif
|
|
|
|
ExclusiveArch: %arm
|
|
|
|
|
|
|
|
%description
|
|
|
|
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
|
2012-08-07 08:24:10 +02:00
|
|
|
This package contains the firmware for the mx53loco arm platform.
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
%setup -q -n u-boot-%{version}
|
2012-08-07 08:24:10 +02:00
|
|
|
# is non-free licensed, and we don't need it (bnc#773824)
|
|
|
|
rm -rf board/Marvell
|
2012-07-24 16:16:40 +02:00
|
|
|
# Any custom patches to be applied on top of mainline u-boot
|
2013-12-22 19:38:12 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
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
|
|
|
%patch7
|
2013-12-22 19:38:12 +01:00
|
|
|
%patch8 -p1
|
2014-01-03 19:52:00 +01:00
|
|
|
%patch9 -p1
|
2014-01-08 20:09:39 +01:00
|
|
|
%patch10 -p1
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%build
|
2012-08-07 08:24:10 +02:00
|
|
|
make %{?jobs:-j %jobs} CFLAGS="$RPM_OPT_FLAGS" mx53loco_config
|
2012-07-24 16:16:40 +02:00
|
|
|
# temporary disable of --build-id
|
|
|
|
#make CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
|
|
|
make %{?jobs:-j %jobs} USE_PRIVATE_LIBGG=yes
|
|
|
|
|
|
|
|
%install
|
2012-08-07 08:24:10 +02:00
|
|
|
install -D -m 0644 u-boot.imx %{buildroot}/boot/u-boot.imx
|
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.
|
|
|
|
if [ -f u-boot-dtb.imx ]; then
|
|
|
|
install -D -m 0644 u-boot-dtb.imx %{buildroot}/boot/u-boot.imx
|
2014-01-21 07:02:30 +01:00
|
|
|
elif [ -f u-boot-dtb-tegra.bin ]; then
|
|
|
|
install -D -m 0644 u-boot-dtb-tegra.imx %{buildroot}/boot/u-boot.imx
|
2014-01-08 20:09:39 +01:00
|
|
|
else
|
|
|
|
install -D -m 0644 u-boot.imx %{buildroot}/boot/u-boot.imx
|
|
|
|
fi
|
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
|
|
|
|
%endif
|
2012-07-24 16:16:40 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-01-08 20:09:39 +01:00
|
|
|
/boot/*
|
2013-12-22 19:38:12 +01:00
|
|
|
%doc Licenses/gpl-2.0.txt CREDITS 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
|
|
|
|
%doc doc/README.video doc/README.VLAN doc/README.silent doc/README.POST doc/README.Modem
|
|
|
|
# Copy some useful kermit scripts as well
|
|
|
|
%doc tools/scripts/dot.kermrc tools/scripts/flash_param tools/scripts/send_cmd tools/scripts/send_image
|
|
|
|
# Now any h/w dependent Documentation
|
|
|
|
%doc doc/README.ARM-SoC doc/README.ARM-memory-map
|
|
|
|
|
|
|
|
%changelog
|