pmaports/device/community/device-google-x64cros/APKBUILD
Anton Bambura 4d17876274
google-x64cros: add sdhci_pci to initfs modules (MR 4793)
This is required for eMMC on some devices
2024-02-09 11:59:01 +02:00

78 lines
1.9 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: JustSoup321 <brandonboese@protonmail.com>
# Co-Maintainer: Alper Nebi Yasak <alpernebiyasak@gmail.com>
# Co-Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-x64cros
pkgdesc="Google Chromebooks with x64 CPU"
pkgver=6
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="
depthcharge-tools
postmarketos-base
postmarketos-cros-common
postmarketos-update-depthcharge-kernel
systemd-boot
"
makedepends="devicepkg-dev"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="
$pkgname-kernel-lts:kernel_lts
$pkgname-kernel-edge:kernel_edge
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-amd:nonfree_firmware_amd
$pkgname-nonfree-firmware-intel:nonfree_firmware_intel
"
source="deviceinfo modules-initfs"
_pmb_recommends="
oem-intel
oem-amd
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_edge() {
pkgdesc="Alpine Edge kernel"
depends="linux-edge"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_lts() {
pkgdesc="Alpine LTS kernel"
depends="linux-lts"
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="
9260fe8df64e284f137f77844562d2f08e28d72d36a50772b0216cd7d68eeb41d0cdb650d0f0d1ad04c3906991aba0561c36813a2beb62cedf16f616c9ccedb9 deviceinfo
0626c223cb91f45680e2f9f8ad6ae0306a497261bec94e66552ed314f41e3dfe276511ff8cf61ae72156eba82ba9080aee9ccae84ce7a5f502580dabdb035fd1 modules-initfs
"