forked from pool/u-boot
Accepting request 487710 from Base:System
Update to v2017.03, and add mvebudb-88f{3720,7040,8040} and tinker-rk3288 OBS-URL: https://build.opensuse.org/request/show/487710 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=86
This commit is contained in:
@@ -29,11 +29,15 @@
|
||||
%define imx6_spl 0
|
||||
%define socfpga_spl 1
|
||||
|
||||
%if "socfpgade0nanosoc" == "rpi" || "socfpgade0nanosoc" == "rpi2" || "socfpgade0nanosoc" == "rpi332b" || "socfpgade0nanosoc" == "rpi3"
|
||||
%define is_rpi 1
|
||||
%endif
|
||||
|
||||
# archive_version differs from version for RC version only
|
||||
%define archive_version 2017.01
|
||||
%define archive_version 2017.03
|
||||
|
||||
Name: u-boot-socfpgade0nanosoc
|
||||
Version: 2017.01
|
||||
Version: 2017.03
|
||||
Release: 0
|
||||
Summary: The U-Boot firmware for the socfpgade0nanosoc platform
|
||||
License: GPL-2.0
|
||||
@@ -45,10 +49,13 @@ Source3: update_git.sh
|
||||
Source300: u-boot-rpmlintrc
|
||||
Patch0001: 0001-XXX-openSUSE-XXX-Load-dtb-from-part.patch
|
||||
Patch0002: 0002-Revert-Revert-omap3-Use-raw-SPL-by-.patch
|
||||
Patch0003: 0003-Makefile-Fix-linking-with-modern-bi.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# Arndale board need DTC >= 1.4
|
||||
BuildRequires: bc
|
||||
BuildRequires: dtc >= 1.4.0
|
||||
# u-boot-clearfog (tools/kwbimage.c) needs openssl to build
|
||||
BuildRequires: libopenssl-devel
|
||||
# u-boot-firefly-rk3288 needs python to build
|
||||
BuildRequires: python
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
@@ -56,7 +63,7 @@ BuildRequires: python
|
||||
BuildRequires: qemu
|
||||
Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500
|
||||
%endif
|
||||
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
||||
%if 0%{?is_rpi}
|
||||
# Owns /boot/vc directory
|
||||
BuildRequires: raspberrypi-firmware
|
||||
# For mountpoint
|
||||
@@ -86,16 +93,24 @@ This package contains documentation for U-Boot firmware.
|
||||
%setup -q -n u-boot-%{archive_version}
|
||||
%patch0001 -p1
|
||||
%patch0002 -p1
|
||||
%patch0003 -p1
|
||||
|
||||
%build
|
||||
export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes | tail -n 1 | cut -d- -f1 )" +%s)
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" socfpga_de0_nano_soc_defconfig
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" socfpga_de0_nano_soc_defconfig
|
||||
%if 0%{?is_rpi}
|
||||
# U-Boot is installed in the filesystem, so we are confident there's enough space.
|
||||
echo "Attempting to enable fdt apply command (.dtbo) support."
|
||||
echo "CONFIG_OF_LIBFDT_OVERLAY=y" >> .config
|
||||
%endif
|
||||
make %{?jobs:-j %jobs} CROSS_COMPILE= HOSTCFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
|
||||
|
||||
%if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring"
|
||||
# Chromebook ARM (snow) and HP Chromebook 11 (spring) 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
|
||||
|
||||
%if %rockchip_spl == 1
|
||||
for t in ; do
|
||||
./tools/mkimage -n -d spl/u-boot-spl.bin -T $t u-boot-spl.$t
|
||||
@@ -107,7 +122,7 @@ export SOURCE_DATE_EPOCH=$(date -d "$(head -n 2 %{_sourcedir}/%{name}.changes |
|
||||
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" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
||||
%if 0%{?is_rpi}
|
||||
%define uboot_dir /boot/vc
|
||||
%endif
|
||||
%if "%{name}" == "u-boot-qemu-ppce500"
|
||||
@@ -168,7 +183,7 @@ install -D -m 0755 SPL %{buildroot}/boot/imx6-spl.bin
|
||||
install -D -m 0755 u-boot-with-spl.sfp %{buildroot}/boot/u-boot-with-spl.sfp
|
||||
%endif
|
||||
|
||||
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi332b" || "%{name}" == "u-boot-rpi3"
|
||||
%if 0%{?is_rpi}
|
||||
%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.
|
||||
|
Reference in New Issue
Block a user