Hello community,

here is the log from the commit of package u-boot for openSUSE:Factory checked 
in at 2016-09-05 21:24:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/u-boot (Old)
 and      /work/SRC/openSUSE:Factory/.u-boot.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "u-boot"

Changes:
--------
--- /work/SRC/openSUSE:Factory/u-boot/u-boot-a10-olinuxino-lime.changes 
2016-08-17 12:06:09.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.u-boot.new/u-boot-a10-olinuxino-lime.changes    
2016-09-05 21:25:04.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Sep  2 23:25:44 UTC 2016 - [email protected]
+
+- Add post-install script for Raspberry Pi to install to /boot/efi
+  where needed. (bsc#996064)
+
+-------------------------------------------------------------------
u-boot-a13-olinuxino.changes: same change
u-boot-a13-olinuxinom.changes: same change
u-boot-a20-olinuxino-lime.changes: same change
u-boot-a20-olinuxino-lime2.changes: same change
u-boot-a20-olinuxinomicro.changes: same change
u-boot-am335xboneblack.changes: same change
u-boot-am335xevm.changes: same change
u-boot-am57xxevm.changes: same change
u-boot-am57xxevmnodt.changes: same change
u-boot-arndale.changes: same change
u-boot-bananapi.changes: same change
u-boot-clearfog.changes: same change
u-boot-colibrit20.changes: same change
u-boot-cubieboard.changes: same change
u-boot-cubieboard2.changes: same change
u-boot-cubietruck.changes: same change
u-boot-dragonboard410c.changes: same change
u-boot-firefly-rk3288.changes: same change
u-boot-highbank.changes: same change
u-boot-hyundaia7hd.changes: same change
u-boot-jetson-tk1.changes: same change
u-boot-melea1000.changes: same change
u-boot-merriia80optimus.changes: same change
u-boot-mx53loco.changes: same change
u-boot-mx6cuboxi.changes: same change
u-boot-mx6qsabrelite.changes: same change
u-boot-odroid-c2.changes: same change
u-boot-odroid-xu3.changes: same change
u-boot-odroid.changes: same change
u-boot-omap3beagle.changes: same change
u-boot-omap4panda.changes: same change
u-boot-orangepipc.changes: same change
u-boot-p2371-2180.changes: same change
u-boot-paz00.changes: same change
u-boot-pcm051rev3.changes: same change
u-boot-pine64plus.changes: same change
u-boot-qemu-ppce500.changes: same change
u-boot-rpi.changes: same change
u-boot-rpi2.changes: same change
u-boot-rpi3.changes: same change
u-boot-snow.changes: same change
u-boot-spring.changes: same change
u-boot-udoo.changes: same change
u-boot.changes: same change

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ u-boot-a10-olinuxino-lime.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A10-OLinuXino-Lime_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-a13-olinuxino.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A13-OLinuXino_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-a13-olinuxinom.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A13-OLinuXinoM_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-a20-olinuxino-lime.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A20-OLinuXino-Lime_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-a20-olinuxino-lime2.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A20-OLinuXino-Lime2_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-a20-olinuxinomicro.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
A20-OLinuXino_MICRO_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-am335xboneblack.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
am335x_boneblack_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-am335xevm.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
am335x_evm_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-am57xxevm.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
am57xx_evm_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 @@
 %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/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}/*

++++++ u-boot-am57xxevmnodt.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
am57xx_evm_nodt_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 @@
 %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/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}/*

++++++ u-boot-arndale.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" arndale_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 @@
 %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/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}/*

++++++ u-boot-bananapi.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Bananapi_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-clearfog.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
clearfog_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-colibrit20.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
colibri_t20_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 @@
 %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/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}/*

++++++ u-boot-cubieboard.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Cubieboard_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-cubieboard2.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Cubieboard2_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-cubietruck.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Cubietruck_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-dragonboard410c.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %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 @@
 %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/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}/*

++++++ u-boot-firefly-rk3288.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
firefly-rk3288_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-highbank.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
highbank_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 @@
 %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/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}/*

++++++ u-boot-hyundaia7hd.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Hyundai_A7HD_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-jetson-tk1.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
jetson-tk1_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 @@
 %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/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}/*

++++++ u-boot-melea1000.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Mele_A1000_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-merriia80optimus.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
Merrii_A80_Optimus_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 @@
 %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/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}/*

++++++ u-boot-mx53loco.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
mx53loco_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 @@
 %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/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.imx /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-mx6cuboxi.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
mx6cuboxi_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-mx6qsabrelite.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
mx6qsabrelite_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 @@
 %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/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.imx /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-odroid-c2.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
odroid-c2_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 @@
 %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/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}/*

++++++ u-boot-odroid-xu3.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
odroid-xu3_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 @@
 %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/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}/*

++++++ u-boot-odroid.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" odroid_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 @@
 %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/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}/*

++++++ u-boot-omap3beagle.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
omap3_beagle_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-omap4panda.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
omap4_panda_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-orangepipc.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
orangepi_pc_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-p2371-2180.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
p2371-2180_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 @@
 %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/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}/*

++++++ u-boot-paz00.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" paz00_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 @@
 %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/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}/*

++++++ u-boot-pcm051rev3.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
pcm051_rev3_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-pine64plus.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
pine64_plus_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 @@
 %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/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}/*

++++++ u-boot-qemu-ppce500.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" 
qemu-ppce500_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 @@
 %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/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}/*

++++++ u-boot-rpi.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" rpi_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 @@
 %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/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}/*

++++++ u-boot-rpi2.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" rpi_2_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 @@
 %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/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}/*

++++++ u-boot-rpi3.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" rpi_3_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 @@
 %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/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}/*

++++++ u-boot-snow.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" snow_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-spring.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:38.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:38.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" spring_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*

++++++ u-boot-udoo.spec ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:39.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:39.000000000 +0200
@@ -71,6 +71,8 @@
 %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 @@
 %patch0018 -p1
 
 %build
-export SOURCE_DATE_EPOCH=1471010869
+export SOURCE_DATE_EPOCH=1472858744
 make %{?jobs:-j %jobs} CROSS_COMPILE= CFLAGS="$RPM_OPT_FLAGS" udoo_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 @@
 %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/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.img /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*


++++++ u-boot.spec.in ++++++
--- /var/tmp/diff_new_pack.OK3nJq/_old  2016-09-05 21:25:39.000000000 +0200
+++ /var/tmp/diff_new_pack.OK3nJq/_new  2016-09-05 21:25:39.000000000 +0200
@@ -54,6 +54,8 @@
 %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)
@@ -154,6 +156,19 @@
 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.BINEND /boot/efi/
+fi
+%endif
+
 %files
 %defattr(-,root,root)
 %{uboot_dir}/*


Reply via email to