39971739fa
This device is x86_64 and has a 32-bit UEFI, so I need to install 32-bit grub (AFAIK it's the only bootloader capable of loading a 64-bit kernel from 32-bit). The grub-efi-x86 package has been generated with pmbootstrap.
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname="device-surftab-wintron7.0"
|
|
pkgdesc="TrekStor SurfTab wintron 7.0"
|
|
pkgver=0.3
|
|
pkgrel=1
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="x86_64"
|
|
options="!check !archcheck"
|
|
depends="grub-x86 postmarketos-base linux-vanilla mesa-dri-intel"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
|
source="
|
|
deviceinfo
|
|
grub.cfg
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
mkdir -p "$pkgdir/boot/grub/"
|
|
install -D -m644 "$srcdir/grub.cfg" \
|
|
"$pkgdir/boot/grub/grub.cfg"
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Touchscreen firmware"
|
|
depends="firmware-surftab-wintron7.0"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="1dc0d206905aad9de0efc7284bdb8b27f739d0657d848a616c7df89a7bd982c579a492590e1413a88c772d81d5222847c683bbb8ecdcfb410e31bd9e568bc5fb deviceinfo
|
|
8b77755eb59c07f84cb00439f09e0f4bbc2fdf6da8e41160bb1967463c0e098d012a18465891a5d0fc64a37712ba3840a110aa7a371da90c23b4fcd7ac63c004 grub.cfg"
|