ports/contrib (3.7): amd-ucode: initial commit, version 20230804
commit ed34af419f1cb2eb02cc83edf521bc8e8f4e7eb4 Author: Tim Biermann <tbier@posteo.de> Date: Thu Aug 10 17:15:46 2023 +0200 amd-ucode: initial commit, version 20230804 diff --git a/amd-ucode/.footprint b/amd-ucode/.footprint new file mode 100644 index 000000000..5af961478 --- /dev/null +++ b/amd-ucode/.footprint @@ -0,0 +1,2 @@ +drwxr-xr-x root/root boot/ +-rw-r--r-- root/root boot/amd-ucode.img diff --git a/amd-ucode/.signature b/amd-ucode/.signature new file mode 100644 index 000000000..fe529cfd4 --- /dev/null +++ b/amd-ucode/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF33kVVKXDQ9TFaRDwYRhzL6SlXmd8/WHgbrVM5/+ZRklXy1Y1FyimHWjrmU25Er3ekw6jbAOOLnCyLAm6a4DvXAA= +SHA256 (Pkgfile) = 90f0bf163a2979c7587d849d3734d347d9fe944401aea45ba815481013b3cd83 +SHA256 (.footprint) = 41f8dfe0823defa1d72ad6e7c240d0f58785d9676312dcf1d59b0f68ade02a38 +SHA256 (linux-firmware-20230804.tar.gz) = c09913f675bea9623798eebf8b238cda49b62dfa1729cc7c2c17193b0ab22ff7 diff --git a/amd-ucode/Pkgfile b/amd-ucode/Pkgfile new file mode 100644 index 000000000..a3204f79f --- /dev/null +++ b/amd-ucode/Pkgfile @@ -0,0 +1,18 @@ +# Description: Microcode update image for AMD CPUs +# URL: https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=sum... +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: linux-firmware + +name=amd-ucode +version=20230804 +release=1 +source=(https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/...) + +build() { + mkdir -p kernel/x86/microcode + cat linux-firmware-$version/amd-ucode/microcode_amd*.bin > kernel/x86/microcode/AuthenticAMD.bin + + echo kernel/x86/microcode/AuthenticAMD.bin | bsdcpio -o -H newc -R 0:0 > amd-ucode.img + + install -Dt $PKG/boot -m644 amd-ucode.img +}
participants (1)
-
crux@crux.nu