pmaports/device/testing/device-xiaomi-miatoll/APKBUILD
David Wronek e65dc71f05
xiaomi-miatoll: new device (MR 5177)
Add support for the Xiaomi Miatoll phones. There are currently two
device trees in the upstream kernel.

Signed-off-by: David Wronek <david@mainlining.org>
2024-06-02 17:10:07 +09:00

47 lines
1.3 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: David Wronek <david@mainlining.org>
pkgname=device-xiaomi-miatoll
pkgdesc="Xiaomi Redmi Note 9 Pro / Redmi Note 9S"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
make-dynpart-mappings
mkbootimg
postmarketos-base
swclock-offset
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-kernel-curtana:kernel_curtana
$pkgname-kernel-joyeuse:kernel_joyeuse
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_curtana() {
pkgdesc="Xiaomi Redmi Note 9S. To know which model you have, visit https://wiki.postmarketos.org/wiki/Xiaomi-miatoll-variants"
depends="linux-postmarketos-qcom-sm7125"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_joyeuse() {
pkgdesc="Xiaomi Redmi Note 9 Pro (Global). To know which model you have, visit https://wiki.postmarketos.org/wiki/Xiaomi-miatoll-variants"
depends="linux-postmarketos-qcom-sm7125"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
sha512sums="
8127f706f04c9e57902c3287ef088441fa3efd3d922805ef4957897f4b193e6c1b022b933834684b3db3d0d9739769dcb5084a556ef3cda77e80e8443401bccf deviceinfo
"