2021-07-03 19:21:31 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2022-11-02 17:29:48 +00:00
|
|
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
2021-07-03 19:21:31 +00:00
|
|
|
pkgname=device-microsoft-surface-rt
|
|
|
|
pkgdesc="Microsoft Surface RT"
|
2024-03-15 20:59:31 +00:00
|
|
|
pkgver=7
|
|
|
|
pkgrel=0
|
2021-07-03 19:21:31 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
# pmb:strict: avoid grub-related install error during build with pmbootstrap
|
|
|
|
options="!check !archcheck pmb:strict"
|
|
|
|
depends="postmarketos-base
|
|
|
|
linux-postmarketos-grate
|
|
|
|
alsa-ucm-conf
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev grub grub-efi"
|
2021-08-12 10:46:22 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-x11
|
|
|
|
"
|
2021-07-03 19:21:31 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2023-08-02 17:06:01 +00:00
|
|
|
modules-initfs
|
2021-07-03 19:21:31 +00:00
|
|
|
grub.cfg
|
2021-07-27 20:05:07 +00:00
|
|
|
initfs-hook.sh
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
|
|
|
|
grub-mkimage \
|
|
|
|
--prefix="/grub" \
|
|
|
|
--output="bootarm.efi" \
|
|
|
|
--format="arm-efi" \
|
|
|
|
--compression="xz" \
|
|
|
|
\
|
|
|
|
disk \
|
|
|
|
fat \
|
|
|
|
gzio \
|
|
|
|
iso9660 \
|
|
|
|
linux \
|
|
|
|
normal \
|
|
|
|
part_gpt \
|
|
|
|
part_msdos
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
2021-07-27 20:05:07 +00:00
|
|
|
install -D "$srcdir"/grub.cfg \
|
2021-07-03 19:21:31 +00:00
|
|
|
"$pkgdir"/boot/grub/grub.cfg
|
2021-07-27 20:05:07 +00:00
|
|
|
install -D "$srcdir"/bootarm.efi \
|
2021-07-03 19:21:31 +00:00
|
|
|
"$pkgdir"/boot/EFI/Boot/bootarm.efi
|
|
|
|
}
|
|
|
|
|
2021-08-12 10:46:22 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="WiFi firmware"
|
|
|
|
depends="linux-firmware-mrvl"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-07-03 19:21:31 +00:00
|
|
|
x11() {
|
|
|
|
install_if="$pkgname xorg-server"
|
2024-01-02 18:15:46 +00:00
|
|
|
depends="xf86-video-opentegra libvdpau-tegra"
|
2021-07-03 19:21:31 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
8ab7c1720255720fc81a7895ba4e5f5a03789132323e82047229e6f133f0270a29e766c0496ab620d41e3090e1ef6e77c346bd5a111ade3d59c3a630380409e6 deviceinfo
|
|
|
|
67ff4306270b7e6e292ddb48ac5fcb1472840d8eaa412f9cd989442fb20139ee3c844fd1ca5c5b923c7980403d945999a77fc6617127059e56e22bdc8dca2bf8 modules-initfs
|
2021-08-17 07:03:20 +00:00
|
|
|
40b507176edce2d141ff707aecad6f8d9636b828084e84d0015886d5e371127285bc80398fc13c1b88a7740c5b4694d2011286138249c95d27db0d9df3ca102f grub.cfg
|
2021-07-27 20:05:07 +00:00
|
|
|
0c7640df35d29a5c2e168d1e54b73a90d903e51b16d67ad08c3ccb41972209086844357f82cf6a2b6de977ebfb7e1099da01db71dc0733e90662ba315f0cd1d0 initfs-hook.sh
|
2021-07-03 19:21:31 +00:00
|
|
|
"
|