git » linux-firmware.git » commit 584283a

Move /usr/lib/firmware/amd-ucode to amd-ucode package

author David Runge
2024-01-15 15:11:36 UTC
committer David Runge
2024-01-23 09:36:14 UTC
parent 37dc4618d31cbe4d5892f428d59e39e2dad78128

Move /usr/lib/firmware/amd-ucode to amd-ucode package

Fixes https://gitlab.archlinux.org/archlinux/packaging/packages/linux-firmware/-/issues/2

Signed-off-by: David Runge <dvzrv@archlinux.org>

PKGBUILD +4 -0

diff --git a/PKGBUILD b/PKGBUILD
index 2afa665..da6ae7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -84,6 +84,8 @@ package_linux-firmware() {
   rm usr/lib/firmware/mrvl/prestera/mvsw_prestera_fw_arm64-v4.1.img.zst
 
   # split
+  _pick amd-ucode usr/lib/firmware/amd-ucode
+
   _pick linux-firmware-nfp usr/lib/firmware/netronome
   _pick linux-firmware-nfp usr/share/licenses/${pkgname}/LICENCE.Netronome
 
@@ -108,6 +110,8 @@ package_amd-ucode() {
   pkgdesc="Microcode update image for AMD CPUs"
   license=(custom)
 
+  mv -v $pkgname/* "$pkgdir"
+
   install -Dt "${pkgdir}/boot" -m644 amd-ucode.img
 
   install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 ${pkgbase}/LICENSE.amd-ucode