device-lg-p895: add support for LG Optimus Vu (MR 3645)

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
[ci:skip-build]: already built successfully in CI
This commit is contained in:
Svyatoslav Ryhel 2022-07-10 08:31:22 +03:00 committed by Oliver Smith
parent a7467afe2f
commit 3301dc90d8
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
3 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,59 @@
# Maintainer: Svyatoslav Ryhel <clamor95@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lg-p895
pkgdesc="LG Optimus Vu"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
alsa-ucm-conf
libvdpau-tegra
linux-postmarketos-grate
mkbootimg
postmarketos-base
u-boot-tools
"
makedepends="
devicepkg-dev
"
source="
deviceinfo
pointercal
"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-x11
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
# osk-sdl touchscreen calibration
install -Dm644 "$srcdir"/pointercal \
"$pkgdir"/etc/pointercal
}
nonfree_firmware() {
pkgdesc="LG Optimus X3 WiFi & BT firmware"
depends="firmware-lg-x3"
mkdir "$subpkgdir"
}
x11() {
install_if="$pkgname=$pkgver-r$pkgrel xorg-server"
depends="xf86-video-opentegra"
mkdir "$subpkgdir"
}
sha512sums="
5cbb9296ed380059941b0182d0b66bb3db1864cd6fc65373deb95300ae2fd4eaf3c99b7323729911fb35a9de45d7a491a88c0ff500c39b6fe8c3097ec79b389a deviceinfo
de3c2db575a7c67adfd4f26700642e8fa0b912cb074dcc92778f620574e2f5e6dadcd4b05d13a2968668f943cc01557924c31b40f6fce3ce9002a3dcd55f423f pointercal
"

View File

@ -0,0 +1,24 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell scripts.
deviceinfo_format_version="0"
deviceinfo_name="LG Optimus Vu"
deviceinfo_manufacturer="LG"
deviceinfo_codename="lg-p895"
deviceinfo_year="2012"
deviceinfo_dtb="tegra30-lge-p895"
deviceinfo_append_dtb="false"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
deviceinfo_screen_width="768"
deviceinfo_screen_height="1024"
# Bootloader related
deviceinfo_flash_method="none"
deviceinfo_boot_filesystem="fat32"
deviceinfo_generate_legacy_uboot_initfs="true"

View File

@ -0,0 +1 @@
32814 92 -708736 -84 33302 -1001200 65536 768 1024 0