2020-02-17 18:13:13 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-oneplus-oneplus3t
|
2020-02-17 18:13:13 +00:00
|
|
|
pkgdesc="OnePlus 3T"
|
2022-07-29 13:06:54 +00:00
|
|
|
pkgver=1.2
|
2023-12-04 21:52:04 +00:00
|
|
|
pkgrel=3
|
2020-02-17 18:13:13 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2022-07-29 13:06:54 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2022-07-31 20:50:04 +00:00
|
|
|
$pkgname-kernel-s6e3fa3:kernel_s6e3fa3
|
|
|
|
$pkgname-kernel-s6e3fa5:kernel_s6e3fa5
|
2022-07-29 13:06:54 +00:00
|
|
|
$pkgname-phosh
|
2022-07-31 20:50:04 +00:00
|
|
|
"
|
2020-02-17 18:13:13 +00:00
|
|
|
depends="
|
|
|
|
postmarketos-base
|
2022-07-29 13:06:54 +00:00
|
|
|
postmarketos-update-kernel
|
2020-02-17 18:13:13 +00:00
|
|
|
mkbootimg
|
2021-03-27 13:52:31 +00:00
|
|
|
soc-qcom-msm8996
|
2020-02-17 18:13:13 +00:00
|
|
|
reboot-mode
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2022-07-29 13:06:54 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs.s6e3fa5
|
|
|
|
modules-initfs.s6e3fa3
|
2022-07-29 13:06:54 +00:00
|
|
|
phoc.ini
|
|
|
|
device-oneplus-oneplus3t-nonfree-firmware.post-install
|
|
|
|
10-local-powersave.rules
|
|
|
|
gpu-nobin.sh
|
|
|
|
"
|
2020-02-17 18:13:13 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2022-07-29 13:06:54 +00:00
|
|
|
|
|
|
|
install -D -m644 "$srcdir"/10-local-powersave.rules \
|
|
|
|
-t "$pkgdir"/lib/udev/rules.d
|
|
|
|
install -D -m644 "$srcdir"/gpu-nobin.sh \
|
|
|
|
-t "$pkgdir"/etc/profile.d
|
2020-02-17 18:13:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2021-03-27 13:52:31 +00:00
|
|
|
pkgdesc="OnePlus 3T nonfree firmware (GPU, modem, sound, camera, sensors, WiFi, bluetooth)"
|
2020-02-17 18:13:13 +00:00
|
|
|
depends="
|
2021-12-09 14:50:20 +00:00
|
|
|
firmware-oneplus-oneplus3t
|
2020-02-17 18:13:13 +00:00
|
|
|
linux-firmware-ath10k
|
|
|
|
linux-firmware-qca
|
2021-03-27 13:52:31 +00:00
|
|
|
soc-qcom-msm8996-nonfree-firmware
|
2020-02-17 18:13:13 +00:00
|
|
|
"
|
2022-07-29 13:06:54 +00:00
|
|
|
install="$subpkgname.post-install"
|
2020-02-17 18:13:13 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
2022-07-31 20:50:04 +00:00
|
|
|
|
|
|
|
kernel_s6e3fa3() {
|
|
|
|
pkgdesc="Samsung S6E3FA3 Panel. To find out which panel your device uses run cat /proc/cmdline in TWRP terminal"
|
|
|
|
depends="linux-postmarketos-qcom-msm8996"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_s6e3fa5() {
|
|
|
|
pkgdesc="Samsung S6E3FA5 Panel. To find out which panel your device uses run cat /proc/cmdline in TWRP terminal"
|
|
|
|
depends="linux-postmarketos-qcom-msm8996"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2022-07-29 13:06:54 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname=$pkgver-r$pkgrel phosh"
|
|
|
|
install -D -m644 "$srcdir"/phoc.ini \
|
|
|
|
-t "$subpkgdir"/etc/phosh
|
|
|
|
}
|
|
|
|
|
2022-07-19 18:26:37 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
0d07740b97870ab39fdf06f8bc37c7e1b0f06668a9b3edfc97177892ac6df0f926160d48cad99a3d16756d0821dcadbf9d4a58e2b37a9d6c0c058f8cdf7445a9 deviceinfo
|
|
|
|
6262c1adcd6097cfd7c3c13267cb272e9157b9cd6fa5ec9f0c4821e25e9aa1e444d15df6ab4b567cc20cf0dd430854f88bbbf138c858a4b37b3e0d7ff84f50c9 modules-initfs.s6e3fa5
|
|
|
|
cc0bbb074d5ca73910673b571546715d6cdf0195526ee7b873f1795c0181ca62b650ab9899d70b3e0589a6373a5c873c2056dd67f68980f348b45fad6b399dfa modules-initfs.s6e3fa3
|
2022-07-29 13:06:54 +00:00
|
|
|
38409d4ce48db4624539dbfd695d3c6e1596a29fd7c3004a41368b28cba646495d05360420ad728f82c63d6ddeeca71d09944df06ebaca120aedd9cc2b436eb3 phoc.ini
|
|
|
|
7c9d5e9f2032e088f720918ead9ed27ae6f81b4163a835310f41880c8ce16e63ee412c21cf80f9ee5b4dc0f9034b14980a47c5a717110e67dc4fb73133ff77c1 device-oneplus-oneplus3t-nonfree-firmware.post-install
|
|
|
|
c87ec170b7fcdbe37c27d389fe2aa8f9c25b76beeb02ea7f5958fe3daaeb6e55cfc4fc970c80571da9aea0316677dc12cbb23f4d3b14ff5215def03a7637f8e9 10-local-powersave.rules
|
|
|
|
4d9908ea8d0a497133df155a9b263fcf793eaec4b23fd11604503c2d9126d2ed2e51e746e24f8daa4d35ae182bfb0690cff62a3c398684c0ed79afcd658fe009 gpu-nobin.sh
|
2022-07-19 18:26:37 +00:00
|
|
|
"
|