SHA256
1
0
forked from pool/u-boot

Accepting request 424787 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/424787
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/u-boot?expand=0&rev=79
This commit is contained in:
2016-09-05 19:24:33 +00:00
committed by Git OBS Bridge
parent 36c65f2eed
commit eb23a39a31
90 changed files with 1033 additions and 88 deletions

View File

@@ -71,6 +71,8 @@ Provides: qemu-ppc:%{_datadir}/qemu/u-boot.e500
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi3"
# Owns /boot/vc directory
BuildRequires: raspberrypi-firmware
# For mountpoint
Requires(post): util-linux
%endif
Provides: u-boot-loader
Conflicts: otherproviders(u-boot-loader)
@@ -114,7 +116,7 @@ This package contains documentation for U-Boot firmware.
%patch0018 -p1
%build
export SOURCE_DATE_EPOCH=1471010869
export SOURCE_DATE_EPOCH=1472858744
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" dragonboard410c_defconfig
make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
%if "%{name}" == "u-boot-snow" || "%{name}" == "u-boot-spring"
@@ -129,7 +131,7 @@ done
%endif
%install
export SOURCE_DATE_EPOCH=1471010869
export SOURCE_DATE_EPOCH=1472858744
export NO_BRP_STRIP_DEBUG=true
export NO_DEBUGINFO_STRIP_DEBUG=true
%define uboot_dir /boot
@@ -188,6 +190,19 @@ install -D -m 0755 SPL %{buildroot}/boot/cuboxi-spl.bin
install -D -m 0755 SPL %{buildroot}/boot/udoo_spl.bin
%endif
%if "%{name}" == "u-boot-rpi" || "%{name}" == "u-boot-rpi2" || "%{name}" == "u-boot-rpi3"
%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.bin /boot/efi/
fi
%endif
%files
%defattr(-,root,root)
%{uboot_dir}/*