9a7b58c834
- Remove old unused patches: * v2013.04-sunxi.patch * loadaddr-defaults.patch - Add ti_common_initrd_support.patch to enable initrd support for AM335x boards - Add am335x_evm support which includes: Beagle Bone, Beagle Bone Black, TI AM335x EVM, TI AM335x EVM-SK - Add Arndale support - Update v2013.04-sunxi.patch to v2013.10-sunxi.patch - Remove kerneladdr and ramdiskaddr definition in u-boot patches (now done in JeOS image with u-boot hooks) - Update patches to current version: * 0006-ARMV7-hardfp-build-fix.patch * beagle-bootscr.patch * mx53loco-bootscr.patch * mlo-ext2.patch - Merge fix_omap4_ext2_boot.patch in mlo-ext2.patch - Rename exynos-ext2.patch in origen-ext2.patch - Update to 2013.10 - Fix OMAP4 pandaboard EXT2 boot - Remove old unused patches: * v2013.04-sunxi.patch OBS-URL: https://build.opensuse.org/request/show/211599 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=16
136 lines
4.3 KiB
RPMSpec
136 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package u-boot-am335xevm
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define x_loader 1
|
|
%define origen_spl 0
|
|
%define sunxi_spl 0
|
|
%define arndale_spl 0
|
|
|
|
Name: u-boot-am335xevm
|
|
Version: 2013.10
|
|
Release: 0
|
|
Summary: The u-boot firmware for the am335xevm arm platform
|
|
License: GPL-2.0
|
|
Group: System/Boot
|
|
Url: http://www.denx.de/wiki/U-Boot
|
|
Source: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
|
|
Source1: openSUSE_panda.txt
|
|
Source2: arndale-bl1.img
|
|
Source300: rpmlintrc
|
|
Patch1: 0006-ARMV7-hardfp-build-fix.patch
|
|
Patch2: mlo-ext2.patch
|
|
Patch3: ti_common_initrd_support.patch
|
|
Patch4: beagle-bootscr.patch
|
|
Patch5: mx53loco-bootscr.patch
|
|
Patch6: origen-ext2.patch
|
|
Patch7: arndale.patch
|
|
Patch8: v2013.10-sunxi.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# Arndale board need DTC >= 1.4
|
|
BuildRequires: dtc >= 1.4.0
|
|
Provides: u-boot-loader
|
|
Conflicts: otherproviders(u-boot-loader)
|
|
%if %x_loader == 1
|
|
Obsoletes: x-loader-am335xevm
|
|
Provides: x-loader-am335xevm
|
|
%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.
|
|
This package contains the firmware for the am335xevm 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
|
|
%setup -q -n u-boot-%{version}
|
|
# is non-free licensed, and we don't need it (bnc#773824)
|
|
rm -rf board/Marvell
|
|
# Any custom patches to be applied on top of mainline u-boot
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch6
|
|
%patch7
|
|
%patch8 -p1
|
|
|
|
%build
|
|
make %{?jobs:-j %jobs} CFLAGS="$RPM_OPT_FLAGS" am335x_evm_config
|
|
# temporary disable of --build-id
|
|
#make CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
|
make %{?jobs:-j %jobs} USE_PRIVATE_LIBGG=yes
|
|
|
|
%install
|
|
install -D -m 0644 u-boot.bin %{buildroot}/boot/u-boot.bin
|
|
%if %x_loader == 1
|
|
install -D -m 0755 MLO %{buildroot}/boot/MLO
|
|
%endif
|
|
%if %origen_spl == 1
|
|
install -D -m 0755 spl/origen-spl.bin %{buildroot}/boot/origen-spl.bin
|
|
%endif
|
|
%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
|
|
%if %sunxi_spl == 1
|
|
install -D -m 0755 spl/sunxi-spl.bin %{buildroot}/boot/sunxi-spl.bin
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/boot/u-boot.bin
|
|
%if %x_loader == 1
|
|
/boot/MLO
|
|
%endif
|
|
%if %origen_spl == 1
|
|
/boot/origen-spl.bin
|
|
%endif
|
|
%if %arndale_spl == 1
|
|
/boot/arndale-spl.bin
|
|
/boot/arndale-bl1.img
|
|
%endif
|
|
%if %sunxi_spl == 1
|
|
/boot/sunxi-spl.bin
|
|
%endif
|
|
%doc Licenses/gpl-2.0.txt CREDITS README
|
|
|
|
%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
|