2014-04-08 22:37:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package u-boot-mx6qsabrelite
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 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 0
|
|
|
|
%define origen_spl 0
|
|
|
|
%define sunxi_spl 0
|
|
|
|
%define arndale_spl 0
|
2014-07-11 06:45:49 +02:00
|
|
|
%define cuboxi_spl 0
|
2014-04-08 22:37:34 +02:00
|
|
|
|
|
|
|
Name: u-boot-mx6qsabrelite
|
2014-05-17 21:45:20 +02:00
|
|
|
Version: 2014.04
|
2014-04-08 22:37:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: The u-boot firmware for the mx6qsabrelite 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
|
2014-08-01 07:07:48 +02:00
|
|
|
Source300: u-boot-rpmlintrc
|
2014-04-08 22:37:34 +02:00
|
|
|
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
|
2014-05-17 21:45:20 +02:00
|
|
|
Patch8: v2014.04-sunxi.patch
|
2014-04-08 22:37:34 +02:00
|
|
|
Patch9: am335x_evm-bootscr.patch
|
|
|
|
Patch10: rpi_b-bootscr.patch
|
|
|
|
Patch12: fix_spl_build_for_am335x.patch
|
|
|
|
Patch13: fix_sabrelite_boot.scr.patch
|
2014-07-11 06:45:49 +02:00
|
|
|
Patch14: cubox-i-v2014.04-port.patch
|
|
|
|
Patch15: cubox-i-enable_raw_rd.patch
|
2014-04-08 22:37:34 +02:00
|
|
|
Patch20: fix_exynos5_text_base.patch
|
|
|
|
Patch21: fix_snow_config.patch
|
|
|
|
Patch22: exynos5-dt.h.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-mx6qsabrelite
|
|
|
|
Provides: x-loader-mx6qsabrelite
|
|
|
|
%endif
|
2014-05-17 21:45:20 +02:00
|
|
|
ExclusiveArch: armv7l armv7hl
|
2014-04-08 22:37:34 +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 mx6qsabrelite 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
|
2014-07-11 06:45:49 +02:00
|
|
|
%if "%{name}" != "u-boot-mx6cubox-i"
|
|
|
|
# conflicts with cubox-i-v2014.04-port.patch, skip it when building for cubox-i
|
2014-05-17 21:45:20 +02:00
|
|
|
%patch2
|
2014-07-11 06:45:49 +02:00
|
|
|
%endif
|
2014-04-08 22:37:34 +02:00
|
|
|
%patch3
|
|
|
|
%patch4
|
|
|
|
%patch5
|
|
|
|
%patch6
|
|
|
|
%patch7
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2014-05-17 21:45:20 +02:00
|
|
|
%patch10
|
2014-04-08 22:37:34 +02:00
|
|
|
%patch12
|
|
|
|
%patch13
|
2014-07-11 06:45:49 +02:00
|
|
|
%if "%{name}" == "u-boot-mx6cubox-i"
|
|
|
|
# Conflicts with mlo-ext2.patch, so apply only for cubox-i now
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%endif
|
2014-04-08 22:37:34 +02:00
|
|
|
%if "%{name}" == "u-boot-snow"
|
|
|
|
# Still WIP, so only apply Chromebook ARM (snow) patches for u-boot-snow to avoid to break other boards (Arndale board)
|
|
|
|
%patch20
|
|
|
|
%patch21
|
|
|
|
%patch22
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?jobs:-j %jobs} CFLAGS="$RPM_OPT_FLAGS" mx6qsabrelite_config
|
|
|
|
# temporary disable of --build-id
|
|
|
|
#make CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
|
|
|
make %{?jobs:-j %jobs} USE_PRIVATE_LIBGG=yes
|
|
|
|
%if "%{name}" == "u-boot-snow"
|
|
|
|
# Chromebook ARM (snow) need a uImage format
|
|
|
|
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
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m 0644 u-boot.imx %{buildroot}/boot/u-boot.imx
|
|
|
|
# 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-tegra.bin ]; then
|
|
|
|
install -D -m 0644 u-boot-dtb-tegra.imx %{buildroot}/boot/u-boot.imx
|
|
|
|
elif [ -f u-boot-dtb.imx ]; then
|
|
|
|
install -D -m 0644 u-boot-dtb.imx %{buildroot}/boot/u-boot.imx
|
|
|
|
else
|
|
|
|
install -D -m 0644 u-boot.imx %{buildroot}/boot/u-boot.imx
|
|
|
|
fi
|
|
|
|
%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
|
2014-07-11 06:45:49 +02:00
|
|
|
%if %cuboxi_spl == 1
|
|
|
|
install -D -m 0755 SPL %{buildroot}/boot/cuboxi-spl.bin
|
|
|
|
%endif
|
2014-04-08 22:37:34 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/boot/*
|
|
|
|
%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
|
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
|
2014-04-08 22:37:34 +02:00
|
|
|
# Now any h/w dependent Documentation
|
|
|
|
%doc doc/README.ARM-SoC doc/README.ARM-memory-map
|
|
|
|
|
|
|
|
%changelog
|