d7dbabe46f
This uses oem-specific packages for configuring Intel and AMD systems, and installs them all by default for new images using pmbootstrap's pmb_recommends feature. The intention is to provide pre-built images with support for Intel and AMD already enabled/configured, and users can remove an unwanted set of packages (e.g., `apk del device-generic-x86_64-intel` when on an AMD system) if they want to. Upgrading existing systems should work, in that I haven't observed any apk conflicts with it. But you do need to manually install the new oem-specific package if you need it (e.g. `oem-intel`) fixes https://gitlab.com/postmarketOS/pmaports/-/issues/2484
68 lines
2 KiB
Text
68 lines
2 KiB
Text
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=device-generic-x86_64
|
|
pkgdesc="Generic x86_64 system, with EFI"
|
|
pkgver=9
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="x86_64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
alsa-ucm-conf
|
|
postmarketos-base
|
|
systemd-boot
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
|
subpackages="
|
|
$pkgname-kernel-edge:kernel_edge
|
|
$pkgname-kernel-lts:kernel_lts
|
|
$pkgname-mesa
|
|
"
|
|
_pmb_recommends="
|
|
oem-intel
|
|
oem-amd
|
|
"
|
|
provides="device-tablet-x64uefi=$pkgver-r$pkgrel device-tablet-x86uefi=$pkgver-r$pkgrel"
|
|
replaces="device-tablet-x64uefi device-tablet-x86uefi"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
mesa() {
|
|
install_if="$pkgname=$pkgver-r$pkgrel mesa-gl"
|
|
provides="device-tablet-x64uefi-mesa=$pkgver-r$pkgrel device-tablet-x86uefi-mesa=$pkgver-r$pkgrel"
|
|
replaces="device-tablet-x64uefi-mesa device-tablet-x86uefi-mesa"
|
|
depends="mesa-dri-gallium"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
kernel_edge() {
|
|
pkgdesc="Alpine Edge kernel"
|
|
provides="device-tablet-x64uefi-kernel-edge=$pkgver-r$pkgrel device-tablet-x86uefi-kernel-edge=$pkgver-r$pkgrel"
|
|
replaces="device-tablet-x64uefi-kernel-edge device-tablet-x86uefi-kernel-edge"
|
|
depends="linux-edge"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_lts() {
|
|
pkgdesc="Alpine LTS kernel"
|
|
provides="device-tablet-x64uefi-kernel-lts=$pkgver-r$pkgrel device-tablet-x86uefi-kernel-lts=$pkgver-r$pkgrel"
|
|
replaces="device-tablet-x64uefi-kernel-lts device-tablet-x86uefi-kernel-lts"
|
|
depends="linux-lts"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
sha512sums="
|
|
33f0450413c7b364390fdc715578b41389bced5ff69f04a2128155f5ad828ed0e1cc17a20b610eccf4bd99560e21be91e362faaa72e9decad4623f8669e8ab7a deviceinfo
|
|
d65ca12564ef032507c19359643794a14579fd1d065777f9042d40d38aad4d40d99c10aae9a3acd7799f4ad95651b6ca9d83335501d08869dc391f3050df4d1f modules-initfs
|
|
"
|