63 lines
1.2 KiB
Text
63 lines
1.2 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
|
pkgname=device-mangopi-mq-pro
|
|
pkgdesc="MangoPi MQ-Pro"
|
|
pkgver=2
|
|
pkgrel=0
|
|
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
|
|
"
|
|
source="deviceinfo"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
grub-mkimage \
|
|
--prefix="/grub" \
|
|
--output="bootriscv64.efi" \
|
|
--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
|
|
install -Dm644 "$srcdir"/bootriscv64.efi \
|
|
"$pkgdir"/boot/efi/boot/bootriscv64.efi
|
|
}
|
|
|
|
sha512sums="
|
|
4d09851f4d9d43662c8a4276c0bbca5e5e68c25f7efee17db04b3262bb0b89b76e3545405aa6642faa4f90246a2f774556658903a3a8418497c69ba952ab2d90 deviceinfo
|
|
"
|