microsoft-surface-rt: new device (MR 2355)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
a6f07026cb
commit
676e8195ad
74
device/testing/device-microsoft-surface-rt/APKBUILD
Normal file
74
device/testing/device-microsoft-surface-rt/APKBUILD
Normal file
|
@ -0,0 +1,74 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-microsoft-surface-rt
|
||||
pkgdesc="Microsoft Surface RT"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
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
|
||||
mesa-dri-swrast
|
||||
libvdpau-tegra
|
||||
alsa-ucm-conf
|
||||
"
|
||||
makedepends="devicepkg-dev grub grub-efi"
|
||||
subpackages="$pkgname-x11 $pkgname-phosh"
|
||||
source="
|
||||
deviceinfo
|
||||
grub.cfg
|
||||
pointercal
|
||||
rootston.ini
|
||||
"
|
||||
|
||||
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
|
||||
|
||||
install -Dm644 "$srcdir"/pointercal \
|
||||
"$pkgdir"/etc/pointercal
|
||||
|
||||
install -Dm644 "$srcdir"/grub.cfg \
|
||||
"$pkgdir"/boot/grub/grub.cfg
|
||||
install -Dm644 "$srcdir"/bootarm.efi \
|
||||
"$pkgdir"/boot/EFI/Boot/bootarm.efi
|
||||
}
|
||||
|
||||
x11() {
|
||||
install_if="$pkgname xorg-server"
|
||||
depends="xf86-video-opentegra"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname postmarketos-ui-phosh"
|
||||
install -Dm644 "$srcdir"/rootston.ini \
|
||||
"$subpkgdir"/etc/phosh/rootston.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
37077b3b050285f73a5325e82e669f33813f57eac83aea37cf3b148812a5040b4a86cc10e52b351d4dbf9161ad2481fb856b0150142b4c68af71c88a1f1b43b6 deviceinfo
|
||||
33be5b15e4a7b9318f58cec2c4837b3b2fae939aab8d967cfb5e326676fc144dad2a43991fbbb3c8b5f7741897300d6b92befa2e53e84e5ff7ab8e8b2590bbc5 grub.cfg
|
||||
34f6eb789d4688985a262c519017e0712a90ca5acf89e6b3f39e33792a7982155261c6b4f0dbf41595b512da9dc7c9002adb69a550e80be349a374d086799916 pointercal
|
||||
618284cdaccd09e60cb9a99afa337fcad7b3bd33f6422b9eae34175bc4516138d486cbb9f5735cafb325bc16cf362de16aeae7c77d334668c749afcfa557359b rootston.ini
|
||||
"
|
26
device/testing/device-microsoft-surface-rt/deviceinfo
Normal file
26
device/testing/device-microsoft-surface-rt/deviceinfo
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Microsoft Surface RT"
|
||||
deviceinfo_manufacturer="Microsoft"
|
||||
deviceinfo_codename="microsoft-surface-rt"
|
||||
deviceinfo_year="2012"
|
||||
deviceinfo_dtb="tegra30-microsoft-surface-rt-efi"
|
||||
deviceinfo_modules_initfs="hid-generic"
|
||||
deviceinfo_arch="armv7"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="tablet"
|
||||
deviceinfo_keyboard="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1366"
|
||||
deviceinfo_screen_height="768"
|
||||
deviceinfo_dev_internal_storage="/dev/mmcblk0"
|
||||
deviceinfo_dev_internal_storage_repartition="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
||||
deviceinfo_generate_bootimg="false"
|
||||
deviceinfo_boot_filesystem="fat32"
|
7
device/testing/device-microsoft-surface-rt/grub.cfg
Normal file
7
device/testing/device-microsoft-surface-rt/grub.cfg
Normal file
|
@ -0,0 +1,7 @@
|
|||
timeout=0
|
||||
|
||||
menuentry "postmarketOS" {
|
||||
linux /vmlinuz-postmarketos-grate cpuidle.off=1 console=ttyS0,115200 PMOS_NO_OUTPUT_REDIRECT
|
||||
initrd /initramfs-postmarketos-grate
|
||||
devicetree /tegra30-microsoft-surface-rt-efi.dtb
|
||||
}
|
1
device/testing/device-microsoft-surface-rt/pointercal
Normal file
1
device/testing/device-microsoft-surface-rt/pointercal
Normal file
|
@ -0,0 +1 @@
|
|||
21826 -62 183864 95 12485 -842880 65536 1366 768 0
|
5
device/testing/device-microsoft-surface-rt/rootston.ini
Normal file
5
device/testing/device-microsoft-surface-rt/rootston.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[cursor:seat0]
|
||||
map-to-output:LVDS-1
|
||||
|
||||
[output:LVDS-1]
|
||||
scale = 1
|
Loading…
Reference in New Issue
Block a user