2022-12-26 04:42:30 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2023-01-13 10:23:05 +00:00
|
|
|
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
2022-12-26 04:42:30 +00:00
|
|
|
pkgname=device-mangopi-mq-pro
|
|
|
|
pkgdesc="MangoPi MQ-Pro"
|
2023-01-13 10:23:05 +00:00
|
|
|
pkgver=2
|
2024-01-21 22:56:08 +00:00
|
|
|
pkgrel=2
|
2022-12-26 04:42:30 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="riscv64"
|
|
|
|
# pmb:strict: avoid grub-related install error during build with pmbootstrap
|
|
|
|
options="!check !archcheck pmb:strict"
|
|
|
|
depends="
|
|
|
|
linux-postmarketos-allwinner-d1
|
|
|
|
postmarketos-base
|
|
|
|
u-boot-mangopi-mq-pro
|
|
|
|
"
|
|
|
|
makedepends="
|
|
|
|
devicepkg-dev
|
|
|
|
grub
|
|
|
|
grub-efi
|
|
|
|
"
|
2023-01-13 10:23:05 +00:00
|
|
|
source="deviceinfo"
|
2022-12-26 04:42:30 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
|
|
|
grub-mkimage \
|
2023-01-13 10:23:05 +00:00
|
|
|
--prefix="/grub" \
|
2023-01-13 10:12:34 +00:00
|
|
|
--output="bootriscv64.efi" \
|
2022-12-26 04:42:30 +00:00
|
|
|
--format="riscv64-efi" \
|
|
|
|
--compression="xz" \
|
|
|
|
\
|
|
|
|
all_video \
|
|
|
|
cat \
|
|
|
|
configfile \
|
|
|
|
disk \
|
|
|
|
echo \
|
|
|
|
efi_gop \
|
|
|
|
fat \
|
|
|
|
ext2 \
|
|
|
|
gzio \
|
|
|
|
help \
|
|
|
|
iso9660 \
|
|
|
|
linux \
|
|
|
|
ls \
|
|
|
|
normal \
|
|
|
|
part_gpt \
|
|
|
|
part_msdos \
|
|
|
|
search \
|
|
|
|
search_label \
|
|
|
|
test \
|
|
|
|
true
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-01-13 10:12:34 +00:00
|
|
|
install -Dm644 "$srcdir"/bootriscv64.efi \
|
|
|
|
"$pkgdir"/boot/efi/boot/bootriscv64.efi
|
2022-12-26 04:42:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-01-13 10:23:05 +00:00
|
|
|
4d09851f4d9d43662c8a4276c0bbca5e5e68c25f7efee17db04b3262bb0b89b76e3545405aa6642faa4f90246a2f774556658903a3a8418497c69ba952ab2d90 deviceinfo
|
2022-12-26 04:42:30 +00:00
|
|
|
"
|