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-06-18 19:53:59 +00:00
|
|
|
pkgrel=3
|
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="
|
2024-06-18 19:53:59 +00:00
|
|
|
0c3c3d96645fc169e69450ad8b2b05f042696fc2d8cff41101d343be15f2c1b2c1e010275338af3715be8f00e0963960d78ac8ad0e047c3afa83560429cf77bd deviceinfo
|
2022-12-26 04:42:30 +00:00
|
|
|
"
|