[arch-commits] Commit in intel-ucode/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Dec 22 22:15:27 UTC 2018
Date: Saturday, December 22, 2018 @ 22:15:24
Author: jelle
Revision: 342677
Make intel-ucode reproducible
When SOURCE_DATE_EPOCH is set touch the .bin file so it will always be the same
for reproducible builds.
Modified:
intel-ucode/trunk/PKGBUILD
----------+
PKGBUILD | 2 ++
1 file changed, 2 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-12-22 18:49:04 UTC (rev 342676)
+++ PKGBUILD 2018-12-22 22:15:24 UTC (rev 342677)
@@ -20,6 +20,8 @@
rm -f intel-ucode{,-with-caveats}/list
mkdir -p kernel/x86/microcode
iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode{,-with-caveats}/
+ # Make intel-ucode.img reproducible
+ [ ! -z $SOURCE_DATE_EPOCH ] && touch -d @$SOURCE_DATE_EPOCH kernel/x86/microcode/GenuineIntel.bin
echo kernel/x86/microcode/GenuineIntel.bin | bsdcpio -o -H newc -R 0:0 > intel-ucode.img
}
More information about the arch-commits
mailing list