device-generic-x86_64: include all Intel GPU fw in the initramfs (MR 5527)

Newer Intel GPUs won't work without the GUC fw, and older ones still need DMC fw for power management, so let's just include everything... pkgs.alpinelinux.org says the install size is only 9MB...

Note that this was not added to the oem-intel package because it would make the initramfs too big for some devices that depend on oem-intel (e.g. x64-cros)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Clayton Craft 2024-09-02 14:41:54 -07:00
parent d7b1c3a87b
commit 9f7f179691
No known key found for this signature in database
GPG Key ID: 4A4CED6D7EDF950A
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,4 @@
# Newer integrated and discrete Intel GPUs won't work without GUC fw,
# and older GPUs need DMC firmware for lower power states, so let's
# include everything:
/lib/firmware/i915

View File

@ -2,7 +2,7 @@
# Co-Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=device-generic-x86_64
pkgdesc="Generic x86_64 system, with EFI"
pkgver=14
pkgver=15
pkgrel=0
url="https://postmarketos.org"
license="MIT"
@ -17,6 +17,7 @@ makedepends="devicepkg-dev"
source="
deviceinfo
modules-initfs
30-gpu-firmware.files
"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="
@ -40,6 +41,9 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/30-gpu-firmware.files \
-t "$pkgdir"/usr/share/mkinitfs/files/
}
kernel_edge() {
@ -61,4 +65,5 @@ kernel_lts() {
sha512sums="
e9dfcd70ccfb9a0fdaa0cdc52faf3be96d6de8af8c60a758bb703c515b0648cec4552e0eaf56e5168b0004cd3fc4b28118abb05dad2c581d3579a2e9134862cb deviceinfo
e464ef0ad4a4c34d2d53f69c4612b612ea878a77c9efdef69b0f842edf701036c8218809fd63aac286d6a08ae07f39e568199fc3e38d145e716c1723e7215019 modules-initfs
9599a10679a43929e4ed2ea22269a0716219163817574d48db4dc1cb21a0fcf17ea54d77d5fd8efd034905c421ecb3eaa600a72927d683983ce48d1159329881 30-gpu-firmware.files
"