From f6b8f9cf829a58dc04f1105d68464af2742b6100 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sun, 14 Jan 2024 13:38:57 +0100 Subject: [PATCH] oem-amd: put amdgpu module + fw into initramfs (MR 4723) Add the amdgpu kernel module and its firmware, as it is required for e.g. the Thinkpad L14 to have any graphical output on boot. --- device/testing/oem-amd/00-amdgpu-firmware.files | 1 + device/testing/oem-amd/00-oem-amd.modules | 1 + device/testing/oem-amd/APKBUILD | 14 +++++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 device/testing/oem-amd/00-amdgpu-firmware.files create mode 100644 device/testing/oem-amd/00-oem-amd.modules diff --git a/device/testing/oem-amd/00-amdgpu-firmware.files b/device/testing/oem-amd/00-amdgpu-firmware.files new file mode 100644 index 000000000..f8bf81f96 --- /dev/null +++ b/device/testing/oem-amd/00-amdgpu-firmware.files @@ -0,0 +1 @@ +/lib/firmware/amdgpu diff --git a/device/testing/oem-amd/00-oem-amd.modules b/device/testing/oem-amd/00-oem-amd.modules new file mode 100644 index 000000000..75f88fb07 --- /dev/null +++ b/device/testing/oem-amd/00-oem-amd.modules @@ -0,0 +1 @@ +amdgpu diff --git a/device/testing/oem-amd/APKBUILD b/device/testing/oem-amd/APKBUILD index 507416c32..acfce1a73 100644 --- a/device/testing/oem-amd/APKBUILD +++ b/device/testing/oem-amd/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Clayton Craft pkgname=oem-amd pkgdesc="AMD device support" -pkgver=1 +pkgver=1.1 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -15,9 +15,17 @@ subpackages=" $pkgname-libva $pkgname-vulkan " +source=" + 00-amdgpu-firmware.files + 00-oem-amd.modules +" package() { mkdir -p "$pkgdir" + install -Dm644 00-oem-amd.modules \ + -t "$pkgdir"/usr/share/mkinitfs/modules + install -Dm644 00-amdgpu-firmware.files \ + -t "$pkgdir"/usr/share/mkinitfs/files } libva() { @@ -35,3 +43,7 @@ vulkan() { mkdir "$subpkgdir" } +sha512sums=" +38c53d91a60d0402d4cc5428d65e1e8c26360c481c70b34593b1812c87241c32e91904a3bd31fbfe507f7fdb8b50c909eaad8c4c3a37ca962760567329f7f6ee 00-amdgpu-firmware.files +f56b5293f88727bb4fcceb2a347527402dd0938e96403461b1e2a6821cc00a4e680f58770addd7ba1ded20a187f91ccfd6270bc8bd28c6eae75cc075952361ca 00-oem-amd.modules +"