summaryrefslogtreecommitdiff
path: root/opt/intel-ucode/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'opt/intel-ucode/MAKEPKG')
-rw-r--r--opt/intel-ucode/MAKEPKG31
1 files changed, 31 insertions, 0 deletions
diff --git a/opt/intel-ucode/MAKEPKG b/opt/intel-ucode/MAKEPKG
new file mode 100644
index 0000000..2924ac8
--- /dev/null
+++ b/opt/intel-ucode/MAKEPKG
@@ -0,0 +1,31 @@
+#!/bin/mkpkg
+# description: Intel CPU microcode early initramfs image
+# url: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
+
+name=intel-ucode
+version=20260925
+release=1
+makedeps=(cpio)
+source=(https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-$version.tar.gz)
+
+sha256sums=(
+ "0ec19023dad1e6dd0c5909174b8dff2555b91cf01671e36271a1ef36655c0cfc"
+)
+
+build() {
+ cd Intel-Linux-Processor-Microcode-Data-Files-microcode-$version
+
+ mkdir -p kernel/x86/microcode
+ cat intel-ucode/* > kernel/x86/microcode/GenuineIntel.bin
+
+ find kernel | cpio -o -H newc --owner=0:0 > intel-ucode.img
+
+ install -Dm644 intel-ucode.img $PKG/boot/efi/intel-ucode.img
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh