2018-04-22 21:12:48 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2023-01-22 21:02:00 +00:00
|
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-motorola-harpia
|
2018-04-22 21:12:48 +00:00
|
|
|
pkgdesc="Motorola Moto G4 Play"
|
2024-02-15 08:21:05 +00:00
|
|
|
pkgver=9
|
2024-06-18 19:53:59 +00:00
|
|
|
pkgrel=1
|
2018-04-22 21:12:48 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2019-10-13 11:00:28 +00:00
|
|
|
arch="aarch64"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2021-10-24 12:48:45 +00:00
|
|
|
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
|
|
|
|
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
|
2018-04-22 21:12:48 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs"
|
2020-02-04 11:41:38 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2021-10-24 12:48:45 +00:00
|
|
|
_pmb_select="soc-qcom-msm8916-rproc"
|
|
|
|
|
|
|
|
# Backwards compatibility for old kernel variant subpackages
|
|
|
|
replaces="$pkgname-kernel-mainline $pkgname-kernel-mainline-modem"
|
|
|
|
for pkg in $replaces; do provides="$provides $pkg=$pkgver-r$pkgrel"; done
|
2018-04-22 21:12:48 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2019-10-13 11:00:28 +00:00
|
|
|
nonfree_firmware() {
|
2021-10-19 08:31:47 +00:00
|
|
|
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
2023-04-24 10:37:05 +00:00
|
|
|
# harpia's WCNSS firmware has problems with WiFi channels on some device
|
|
|
|
# variants, using osprey's firmware seems to help as a workaround
|
|
|
|
# (see https://gitlab.com/postmarketOS/pmaports/-/issues/1085)
|
2021-10-19 08:31:47 +00:00
|
|
|
depends="firmware-qcom-adreno-a300 msm-firmware-loader
|
2023-04-24 10:37:05 +00:00
|
|
|
firmware-motorola-harpia-wcnss-nv firmware-motorola-harpia-venus
|
|
|
|
firmware-motorola-osprey-wcnss"
|
2020-02-04 11:41:38 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-07 05:06:17 +00:00
|
|
|
sha512sums="
|
2024-06-18 19:53:59 +00:00
|
|
|
31eba51ab586af61d0ea0efb2e0f0a8533524254e864d59bc2142ba30c6b5745a46a00314fbf86a8b5bcfeee2d42b218c27d2e8aa5ed19f24e50468860999e56 deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
525a3e20672a7dff26b885b99ee157e0ece33efa10db34c90aed45dc47d7f1c2e90d7082dc84f2724892f199b5adaca04d5864f0aa1d1e4b8ea695f840346d60 modules-initfs
|
2021-07-07 05:06:17 +00:00
|
|
|
"
|