7e43e9aba7
Adds Alpine's linux-edge as a kernel for the OnePlus 5.
64 lines
1.7 KiB
Text
64 lines
1.7 KiB
Text
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-oneplus-cheeseburger
|
|
pkgdesc="OnePlus 5"
|
|
pkgver=3
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="
|
|
mkbootimg
|
|
postmarketos-base
|
|
postmarketos-update-kernel
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
phoc.ini
|
|
"
|
|
subpackages="
|
|
$pkgname-kernel-alpine:kernel_alpine
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-phosh
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_alpine() {
|
|
pkgdesc="Pure mainline kernel, unpatched Alpine linux-edge"
|
|
depends="linux-edge linux-firmware-none"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_mainline() {
|
|
pkgdesc="Close to mainline kernel, plenty of working features and fixes"
|
|
# NOTE: soc-qcom-sdm845 is also applicable to msm8998
|
|
depends="linux-postmarketos-qcom-msm8998 soc-qcom-sdm845"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Firmware for GPU, Wi-Fi, Bluetooth etc. (also needed for full disk encryption)"
|
|
depends="firmware-oneplus-msm8998"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
}
|
|
|
|
sha512sums="
|
|
a5c0a7bf014f39c4f8ae06148eb2331f937d3075518e34d09fe5d8c48bc0fd13af7eb67dc33567073c78667a1fa9f2121d9ef9648e8f041f8342f00cc6233e4e deviceinfo
|
|
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
|
|
"
|