device-generic-x86_64: add non-free fw subpackage (MR 4728)

This commit is contained in:
Clayton Craft 2024-01-15 15:34:57 -08:00
parent feb09aa916
commit c6b6bd45ef
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -1,8 +1,8 @@
# Maintainer: Clayton Craft <clayton@craftyguy.net> # Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=device-generic-x86_64 pkgname=device-generic-x86_64
pkgdesc="Generic x86_64 system, with EFI" pkgdesc="Generic x86_64 system, with EFI"
pkgver=10 pkgver=11
pkgrel=1 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="x86_64" arch="x86_64"
@ -22,6 +22,9 @@ subpackages="
$pkgname-kernel-edge:kernel_edge $pkgname-kernel-edge:kernel_edge
$pkgname-kernel-lts:kernel_lts $pkgname-kernel-lts:kernel_lts
$pkgname-mesa $pkgname-mesa
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-amd:nonfree_firmware_amd
$pkgname-nonfree-firmware-intel:nonfree_firmware_intel
" "
_pmb_recommends=" _pmb_recommends="
oem-intel oem-intel
@ -62,6 +65,26 @@ kernel_lts() {
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
} }
nonfree_firmware() {
pkgdesc="Firmware for x86_64 devices"
mkdir -p "$subpkgdir"
}
nonfree_firmware_amd() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel oem-amd"
depends="oem-amd-nonfree-firmware"
mkdir -p "$subpkgdir"
}
nonfree_firmware_intel() {
install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel oem-intel"
depends="oem-intel-nonfree-firmware"
mkdir -p "$subpkgdir"
}
sha512sums=" sha512sums="
33f0450413c7b364390fdc715578b41389bced5ff69f04a2128155f5ad828ed0e1cc17a20b610eccf4bd99560e21be91e362faaa72e9decad4623f8669e8ab7a deviceinfo 33f0450413c7b364390fdc715578b41389bced5ff69f04a2128155f5ad828ed0e1cc17a20b610eccf4bd99560e21be91e362faaa72e9decad4623f8669e8ab7a deviceinfo
7e968698e54583023cc73a9dec0c15ef91d6eb24ad31f0ce531a6eada0ff2dceb22c9edc443bf7cef362a9a5b23ea95d698c217e1f780495029f4a5451ed2882 modules-initfs 7e968698e54583023cc73a9dec0c15ef91d6eb24ad31f0ce531a6eada0ff2dceb22c9edc443bf7cef362a9a5b23ea95d698c217e1f780495029f4a5451ed2882 modules-initfs