2020-07-30 23:20:28 +00:00
|
|
|
# Maintainer: Ultracoolguy <myownpersonalaccount@protonmail.com>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-motorola-ocean
|
|
|
|
pkgdesc="Motorola Moto G7 Power"
|
2021-06-17 15:32:08 +00:00
|
|
|
pkgver=0.2
|
|
|
|
pkgrel=0
|
2020-07-30 23:20:28 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2020-09-14 20:40:48 +00:00
|
|
|
depends="postmarketos-base mkbootimg mesa-dri-gallium"
|
2020-07-30 23:20:28 +00:00
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="deviceinfo"
|
2020-09-14 20:40:48 +00:00
|
|
|
subpackages="$pkgname-kernel-downstream:kernel_downstream $pkgname-kernel-mainline:kernel_mainline $pkgname-nonfree-firmware:nonfree_firmware"
|
2020-07-30 23:20:28 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2020-09-14 20:40:48 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Wifi, USB, partially screen, and other miscellanious stuff works. (See device table for details)"
|
|
|
|
depends="linux-motorola-ocean wcnss-wlan"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="It's currently WIP. Most features don't work."
|
|
|
|
depends="linux-postmarketos-qcom-msm8953"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2020-07-30 23:20:28 +00:00
|
|
|
nonfree_firmware() {
|
2021-06-17 15:32:08 +00:00
|
|
|
pkgdesc="Wifi, GPU, modem, and audio firmware"
|
2020-07-30 23:20:28 +00:00
|
|
|
depends="firmware-motorola-ocean"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-06-17 15:32:08 +00:00
|
|
|
sha512sums="
|
|
|
|
7718e1d1c59f82832c446ccaac9bad6833339f5ba968942df10df538d11f90c431117ff2f5408262c5a9b333bfd1d3af96ab2913aacb380c919c465f61e9f759 deviceinfo
|
|
|
|
"
|