2018-04-22 21:12:48 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2019-10-13 11:00:28 +00:00
|
|
|
# Maintainer: Ruby Iris Juric <ruby@srxl.me>
|
2018-04-22 21:12:48 +00:00
|
|
|
pkgname="device-motorola-harpia"
|
|
|
|
pkgdesc="Motorola Moto G4 Play"
|
2020-02-04 11:41:38 +00:00
|
|
|
pkgver=2
|
2020-03-07 18:58:32 +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"
|
2020-02-04 11:41:38 +00:00
|
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
2018-04-22 21:12:48 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2019-10-13 11:00:28 +00:00
|
|
|
source="deviceinfo"
|
2018-04-22 21:12:48 +00:00
|
|
|
|
2020-02-04 11:41:38 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
|
|
|
|
"
|
2018-04-22 21:12:48 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2020-02-04 11:41:38 +00:00
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Mainline kernel (no modem, audio routed directly)"
|
|
|
|
depends="linux-postmarketos-qcom-msm8916"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline_modem() {
|
|
|
|
pkgdesc="Mainline kernel (non-free modem, audio routed through ADSP)"
|
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2019-10-13 11:00:28 +00:00
|
|
|
nonfree_firmware() {
|
2020-02-04 11:41:38 +00:00
|
|
|
pkgdesc="GPU/Wi-Fi/Bluetooth/Video(/Modem) firmware"
|
2019-10-13 11:00:28 +00:00
|
|
|
depends="linux-firmware-qcom firmware-motorola-harpia-wcnss firmware-motorola-harpia-venus"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-02-04 11:41:38 +00:00
|
|
|
nonfree_firmware_modem() {
|
|
|
|
pkgdesc="Modem firmware"
|
|
|
|
depends="firmware-motorola-harpia-modem"
|
|
|
|
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-03-07 16:10:22 +00:00
|
|
|
sha512sums="4ec1bbd4bfb3baf43aa98ab62143cfbacc5ef2820a146f08614b32afab9e21d0a1191aba69ee52b647af9848ead515c35531255ec4e04e4640fc40603d681c83 deviceinfo"
|