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>
|
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"
|
2020-04-04 16:00:14 +00:00
|
|
|
pkgver=3
|
|
|
|
pkgrel=0
|
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"
|
2020-04-04 16:00:14 +00:00
|
|
|
source="deviceinfo modprobe.conf"
|
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-04-04 16:00:14 +00:00
|
|
|
sha512sums="0817f0bb48b0b1e73747f9495a23d876d6a97e4f89565649a099562560f00a9e806f1cfaf8f367534d28350577f4654938dffe3b0145ce19ff5df51b7d4b09a6 deviceinfo
|
|
|
|
739d208365990a659a12b47013cc430d701bc5f202d5a7df93bf5db7628191d135825344087b93eb05f0db59d1d0e3adc0e49d102e294abf366902afd44251ab modprobe.conf"
|