2020-01-28 10:42:25 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-oneplus-cheeseburger
|
2020-01-28 10:42:25 +00:00
|
|
|
pkgdesc="OnePlus 5"
|
2021-11-09 20:26:45 +00:00
|
|
|
pkgver=2
|
2022-01-20 22:01:52 +00:00
|
|
|
pkgrel=1
|
2020-01-28 10:42:25 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-10-10 22:56:33 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
postmarketos-update-kernel
|
|
|
|
"
|
2020-01-28 10:42:25 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-10-10 22:56:33 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
phoc.ini
|
|
|
|
"
|
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-phosh
|
|
|
|
"
|
2020-01-28 10:42:25 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2021-10-10 22:56:33 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-oneplus-msm8998 mesa-dri-gallium msm-fb-refresher"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
|
|
|
# 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. (mainline only, also needed for osk-sdl)"
|
|
|
|
depends="firmware-oneplus-msm8998"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2021-11-09 20:26:45 +00:00
|
|
|
dfa270249998db3fe79dd0bb83359e0af9366fcc80fe8239ec3e1747deb3ad26fac04c0874daaf1258d70885a1720120d79b84bc35fe1b0f04c2c8dffca3fdea deviceinfo
|
2021-10-10 22:56:33 +00:00
|
|
|
2288f08a44aae5136c0c0c846501c2bd4bcb10f05454b40c6e4490d398385b8a7129216047b5eb7982ca6d62d3aa71f3e18bfb8661d0cd32c8a600685ca0da48 phoc.ini
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|