2020-05-27 00:05:15 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
|
|
|
|
pkgname=device-oneplus-fajita
|
2020-05-27 00:20:17 +00:00
|
|
|
pkgdesc="OnePlus 6T"
|
2024-05-12 05:03:29 +00:00
|
|
|
pkgver=14
|
|
|
|
pkgrel=0
|
2020-05-27 00:05:15 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-06-01 22:46:27 +00:00
|
|
|
depends="
|
|
|
|
linux-postmarketos-qcom-sdm845
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
soc-qcom-sdm845
|
|
|
|
soc-qcom-sdm845-ucm
|
2022-06-04 15:47:01 +00:00
|
|
|
soc-qcom-sdm845-qbootctl
|
2021-06-01 22:46:27 +00:00
|
|
|
"
|
2020-05-27 00:05:15 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2022-11-21 01:25:58 +00:00
|
|
|
source="
|
2023-03-15 15:55:48 +00:00
|
|
|
10-unl0kr.conf
|
2022-11-21 01:25:58 +00:00
|
|
|
deviceinfo
|
2024-05-12 05:03:29 +00:00
|
|
|
hexagonrpcd.confd
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2022-11-21 01:25:58 +00:00
|
|
|
q6voiced.conf
|
2023-05-26 10:23:26 +00:00
|
|
|
81-libssc-oneplus-fajita.rules
|
2022-11-21 01:25:58 +00:00
|
|
|
"
|
2023-10-02 11:58:34 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-pmtest"
|
2020-05-27 00:05:15 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-03-15 15:55:48 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/10-unl0kr.conf \
|
|
|
|
"$pkgdir"/etc/unl0kr.conf.d/10-unl0kr.conf
|
2020-05-27 00:05:15 +00:00
|
|
|
}
|
|
|
|
|
2020-05-27 00:20:17 +00:00
|
|
|
nonfree_firmware() {
|
2021-05-30 19:32:11 +00:00
|
|
|
pkgdesc="Modem, WiFi and GPU Firmware, also needed for osk-sdl"
|
2023-05-26 10:23:26 +00:00
|
|
|
depends="
|
|
|
|
firmware-oneplus-sdm845>=9
|
|
|
|
hexagonrpcd
|
|
|
|
soc-qcom-sdm845-nonfree-firmware
|
|
|
|
soc-qcom-sdm845-modem
|
|
|
|
"
|
2024-05-12 05:03:29 +00:00
|
|
|
replaces="hexagonrpcd-openrc"
|
2023-05-26 10:23:26 +00:00
|
|
|
install="$subpkgname.post-install $subpkgname.post-upgrade"
|
2020-05-27 00:20:17 +00:00
|
|
|
mkdir "$subpkgdir"
|
2022-11-21 01:25:58 +00:00
|
|
|
|
|
|
|
install -Dm644 q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
2023-05-26 10:23:26 +00:00
|
|
|
install -Dm644 "$srcdir"/81-libssc-oneplus-fajita.rules -t "$subpkgdir"/usr/lib/udev/rules.d/
|
2024-05-12 05:03:29 +00:00
|
|
|
install -Dm644 "$srcdir"/hexagonrpcd.confd "$subpkgdir"/etc/conf.d/hexagonrpcd-sdsp
|
2020-05-27 00:20:17 +00:00
|
|
|
}
|
|
|
|
|
2023-10-02 11:58:34 +00:00
|
|
|
pmtest() {
|
|
|
|
depends="bootrr qrtr firmware-oneplus-sdm845 unl0kr"
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
|
|
|
|
install="$subpkgname.post-install"
|
|
|
|
|
|
|
|
devicepkg_pmtest_post_install "ttyMSM0,115200" > "$subpkgname.post-install"
|
|
|
|
}
|
|
|
|
|
2021-05-30 19:32:11 +00:00
|
|
|
sha512sums="
|
2023-03-15 15:55:48 +00:00
|
|
|
e957b7b0ed219eaa56be6c6b976b60886f73970703fdebf045800154ee652affee4e19654b3ac4244b29bcf6760ad3db6cb87143dc9c4673e905800d751103d1 10-unl0kr.conf
|
2023-12-08 17:56:23 +00:00
|
|
|
07e3d79715befccd1e7393908c06f88ac8468d1ce6cb96138e3a04e6f8274889db169f5daf05b04b633bcc9e85d11ea5c2017b84bc0ae86a8fad80b05794d0d8 deviceinfo
|
2024-05-12 05:03:29 +00:00
|
|
|
6b5308471fcbb938ac00d6e9a3f8e61073bda1d608f2edf1a2aba4b256dd3f76b1ccee0873dcaa8dc4a8db304d433360a56fe447d70f57ba068428b75ddea236 hexagonrpcd.confd
|
2023-08-02 17:06:01 +00:00
|
|
|
ea8709aa214cffaefb1d486c0c47044537446faebff16efb3b015623f043f730b7121e401c676e43aa8868bd6c630fc8a2d7dbf5fb082490e9b5493e0405b66d modules-initfs
|
2022-11-21 01:25:58 +00:00
|
|
|
fe9871c325a38c0cadc9631870801ec15ab9f5b786ee854325b93eb3d23e7d8b1ac4f1075572ffcd225d8ec514dec09b986972ddff12a89260c0218af6de7887 q6voiced.conf
|
2023-12-28 15:44:03 +00:00
|
|
|
f4961015c920c50182d35767de080f16ec348ff693a8cca91dd2593640cf19c31c1e6eac1e8a12a1d38946755eb21bdacad29c9e972adaec854500ab3a7ad3a0 81-libssc-oneplus-fajita.rules
|
2021-05-30 19:32:11 +00:00
|
|
|
"
|