pmaports/device/testing/device-tablet-x64uefi/APKBUILD
Oliver Smith 113f829715
tablet-x64uefi: use grub instead of gummiboot (MR 2195)
Gummiboot was dropped from Alpine. Switch to grub, which is what we use
for tablet-x86uefi too.

In contrary to tablet-x86uefi, run the grub-mkimage command directly
inside the device package:
* This avoids creating another confusing grub-x86 like package (looks
  like the x86 version of alpine's grub package, as it's the case with
  grub-efi-x86, but actually it is just the result of grub-mkimage).
* In contrary to grub-efi-x86, the resulting efi file is not shared
  across several devices.
* It's consistent with uboot mkimage commands, which we also run in
  device packages.

Related: 398b7aef0b
2021-05-24 23:30:47 +02:00

63 lines
1.5 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-tablet-x64uefi
pkgdesc="Various tablets with atom CPU"
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
# pmb:strict: avoid grub-related install error during build with pmbootstrap
options="!check !archcheck pmb:strict"
depends="postmarketos-base linux-lts mesa-dri-swrast"
makedepends="devicepkg-dev grub grub-efi"
source="
deviceinfo
grub.cfg
grub_early.cfg
"
build() {
devicepkg_build $startdir $pkgname
grub-mkimage \
--config="$srcdir/grub_early.cfg" \
--prefix="" \
--output="bootx64.efi" \
--format="x86_64-efi" \
--compression="xz" \
\
all_video \
cat \
configfile \
disk \
echo \
efi_gop \
fat \
gzio \
help \
iso9660 \
linux \
ls \
normal \
part_gpt \
part_msdos \
search \
search_label \
test \
true
}
package() {
devicepkg_package $startdir $pkgname
install -Dm644 "$srcdir"/grub.cfg \
"$pkgdir"/boot/grub/grub.cfg
install -Dm644 "$srcdir"/bootx64.efi \
"$pkgdir"/boot/EFI/Boot/bootx64.efi
}
sha512sums="
49bde5bcf1120a3a93131eb5285c0a4589260d53902ca76ce7205878e187d7c26c4b275c7f2b6f09f11e019042601e6d3cefd938392f0a4386f839923ed37356 deviceinfo
f98771a0e34326557626522ed3a4cbdb7e30b4dd4d288f4a391c4c68055bd5eab39a6bea9f72f63d6b76933ac11689ce1da2c96a83e1048e4b00e5003e1c25aa grub.cfg
0f9357d4eea089628fbceb1e3e96d21a3f4329aeb6743158a6f877f967ef274506404eba949d5f01b7e1adea149f9a3aef992a5e8cd4181f93ab00909b1c5ecd grub_early.cfg
"