2022-08-02 20:22:29 +00:00
|
|
|
# Maintainer: Jami Kettunen <jami.kettunen@protonmail.com>
|
2020-03-28 10:18:01 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-oneplus-dumpling
|
2020-03-28 10:18:01 +00:00
|
|
|
pkgdesc="OnePlus 5T"
|
2022-10-12 20:35:42 +00:00
|
|
|
pkgver=4
|
2024-04-18 10:44:22 +00:00
|
|
|
pkgrel=5
|
2020-03-28 10:18:01 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-10-02 13:32:29 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2020-03-28 10:18:01 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-10-02 13:32:29 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs.alpine
|
|
|
|
modules-initfs.mainline
|
2021-10-02 13:32:29 +00:00
|
|
|
phoc.ini
|
|
|
|
"
|
|
|
|
subpackages="
|
2022-08-02 20:12:59 +00:00
|
|
|
$pkgname-kernel-alpine:kernel_alpine
|
2021-10-02 13:32:29 +00:00
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
|
|
|
"
|
2020-03-28 10:18:01 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2022-08-02 20:12:59 +00:00
|
|
|
kernel_alpine() {
|
2022-10-12 20:35:42 +00:00
|
|
|
# FIXME: msm-modem-uim-selection hangs boot for some 20 seconds when installed with non-free FW
|
2022-08-02 20:12:59 +00:00
|
|
|
pkgdesc="Pure mainline kernel, unpatched Alpine linux-edge"
|
|
|
|
depends="linux-edge linux-firmware-none"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-10-02 13:32:29 +00:00
|
|
|
kernel_mainline() {
|
2022-08-02 20:12:59 +00:00
|
|
|
pkgdesc="Close to mainline kernel, plenty of working features and fixes"
|
2022-10-09 13:39:25 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8998 soc-qcom-msm8998"
|
2021-10-02 13:32:29 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2022-08-02 20:22:29 +00:00
|
|
|
pkgdesc="Firmware for GPU, Wi-Fi, Bluetooth etc. (also needed for full disk encryption)"
|
2021-10-02 13:32:29 +00:00
|
|
|
depends="firmware-oneplus-msm8998"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-10-09 13:39:25 +00:00
|
|
|
# some scaling tweaks
|
2021-10-02 13:32:29 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
20398b57d04441f514d7f125ff606d6cd6c2c44fb266121635a8a3d3bee9d8b0d1635ec83fecd6a17f5cfd2d78c4318c85727c4ae29a5123274e82d8d819c008 deviceinfo
|
|
|
|
53472343462865f6b44897a079edc62dbbefe1b3ad0c7ceb02fa85a21d0162c0505321b516fc37a9fa7fcfe946cd17fd03a70b24bca302aa18773b576e5f14c9 modules-initfs.alpine
|
|
|
|
27fa563174768cf1c3b0568b9e5b84cfb5eb54ed29ff4788eaba829ca484a053dff46ae7f64741c59a9e7652970f5858e8bf42af5ae23fe6f37660777ca40d4a modules-initfs.mainline
|
2021-10-02 13:32:29 +00:00
|
|
|
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|