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-05-27 08:24:46 +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"
|
2020-04-04 16:00:14 +00:00
|
|
|
pkgver=3
|
2020-05-17 13:33:49 +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"
|
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-05-17 13:33:49 +00:00
|
|
|
sha512sums="37fca3131876b7deeae86b0b7eec37ec649534cbfda85f6bc5c81e7066becb129752f019b528922f2d7d105f2879b38d3ad77080b42e3b89c3628709876acda6 deviceinfo
|
2020-04-04 16:00:14 +00:00
|
|
|
739d208365990a659a12b47013cc430d701bc5f202d5a7df93bf5db7628191d135825344087b93eb05f0db59d1d0e3adc0e49d102e294abf366902afd44251ab modprobe.conf"
|