2020-01-10 16:31:33 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-10-07 17:55:55 +00:00
|
|
|
pkgname=device-motorola-osprey
|
2020-12-17 12:10:10 +00:00
|
|
|
pkgver=2
|
2021-04-11 15:59:52 +00:00
|
|
|
pkgrel=2
|
2017-10-07 17:55:55 +00:00
|
|
|
pkgdesc="Motorola Moto G 3rd gen. (2015)"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-12-17 12:10:10 +00:00
|
|
|
arch="aarch64"
|
2017-10-07 17:55:55 +00:00
|
|
|
license="MIT"
|
2020-12-17 12:10:10 +00:00
|
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
2020-01-10 16:31:33 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-12-17 12:10:10 +00:00
|
|
|
source="deviceinfo"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-10-07 17:55:55 +00:00
|
|
|
|
2020-12-17 12:10:10 +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
|
|
|
|
"
|
|
|
|
|
2020-01-10 16:31:33 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-10-07 17:55:55 +00:00
|
|
|
package() {
|
2020-01-10 16:31:33 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-10-07 17:55:55 +00:00
|
|
|
}
|
|
|
|
|
2020-12-17 12:10:10 +00:00
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel (no modem, audio routed directly)"
|
|
|
|
depends="linux-postmarketos-qcom-msm8916"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline_modem() {
|
|
|
|
pkgdesc="Close to mainline kernel (non-free modem, audio routed through ADSP)"
|
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="GPU/Wi-Fi/Bluetooth/Video(/Modem) firmware"
|
|
|
|
depends="linux-firmware-qcom firmware-motorola-osprey-wcnss firmware-motorola-osprey-venus"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware_modem() {
|
|
|
|
pkgdesc="Modem firmware"
|
|
|
|
depends="firmware-motorola-osprey-modem"
|
|
|
|
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-03-18 11:53:59 +00:00
|
|
|
sha512sums="a21dc16fb604210dd52d977c5267d96e6d6e19c279172b85029a979882949ae6cf78fd62a11758a03a6febe4e26d6d2d76fccdfcb4f75a24659849cb9c67a029 deviceinfo"
|