2020-11-09 17:09:05 +00:00
|
|
|
# Contributor: Matthew5pl <matteofo06@gmail.com>
|
|
|
|
# Maintainer: NotLugozzi <thomas.bassi@outlook.it>
|
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-xiaomi-daisy
|
|
|
|
pkgdesc="Xiaomi Mi A2 Lite"
|
2021-06-05 23:44:54 +00:00
|
|
|
pkgver=1
|
2021-06-09 17:56:24 +00:00
|
|
|
pkgrel=1
|
2020-11-09 17:09:05 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2021-06-09 17:56:24 +00:00
|
|
|
depends="postmarketos-base mesa-dri-gallium"
|
2020-11-09 17:09:05 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-06-09 17:56:24 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
2020-11-09 17:09:05 +00:00
|
|
|
fb.modes
|
|
|
|
pointercal
|
2021-06-05 23:44:54 +00:00
|
|
|
30-gpu-firmware.files
|
2020-11-09 17:09:05 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2021-06-05 23:44:54 +00:00
|
|
|
install -Dm0644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
|
|
|
install -Dm0644 "$srcdir"/pointercal "$pkgdir"/etc/pointercal
|
|
|
|
install -Dm0644 "$srcdir"/30-gpu-firmware.files "$pkgdir"/etc/postmarketos-mkinitfs/files/30-gpu-firmware.files
|
2020-11-09 17:09:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wi-Fi, ADSP Firmware"
|
|
|
|
depends="firmware-xiaomi-daisy"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-06-09 17:56:24 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-xiaomi-daisy"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8953 mkbootimg"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-06-05 23:44:54 +00:00
|
|
|
sha512sums="
|
2021-09-18 17:06:03 +00:00
|
|
|
63c641e242fd878ec85deb8ff0c7e2bbc9fc26fdaae4c2e2d91416116a1a4aadb86f012ee08110565001484c04629d9571948399508b95a85ae1cb4fbe2f9ff5 deviceinfo
|
2020-11-09 17:09:05 +00:00
|
|
|
9b888f3a4ef3ed3c0b2e9c6a6e8a6c686909c530c3d95be797b47b4eb9deb55d64190b7a3736e44139630bfff5e295625a855052923369fdd37889060a3220ca fb.modes
|
2021-06-05 23:44:54 +00:00
|
|
|
4fa63c184f00033fbae2e4b140c9655061b3b662e337f7bdf5f8e26f7b57d6c66ad01fc93da05ce7d330f0f05bb0d36cc9b356ebfc7eb4200be4d4cc03afc975 pointercal
|
|
|
|
302c0bec754bb79ef561c1a8d4ff34ba52b904c853bce6a15a79ba7b5b7a3d02c1c75bbe86d59be7b608a6dc744dd3e3c638eaa4539c53d20fa55fa5ea397d74 30-gpu-firmware.files
|
|
|
|
"
|