lg-c50: new device (MR 3783)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
c0db634e92
commit
33594e6d6d
4 changed files with 113 additions and 0 deletions
46
device/testing/device-lg-c50/APKBUILD
Normal file
46
device/testing/device-lg-c50/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=device-lg-c50
|
||||
pkgdesc="LG Leon LTE"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base mkbootimg linux-postmarketos-qcom-msm8916
|
||||
soc-qcom-msm8916 soc-qcom-msm8916-rproc"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo phoc.ini"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-phosh
|
||||
"
|
||||
_pmb_select="soc-qcom-msm8916-rproc"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
|
||||
depends="firmware-qcom-adreno-a300 msm-firmware-loader
|
||||
firmware-qcom-msm8916-wcnss firmware-lg-c50-wcnss-nv
|
||||
firmware-qcom-msm8916-venus"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname postmarketos-ui-phosh"
|
||||
install -Dm644 "$srcdir"/phoc.ini \
|
||||
"$subpkgdir"/etc/phosh/phoc.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
0ac80788549892c57cf7bd3dbf41e34c29c3b49b3a11560bbbd009dbe64e2147588d634ca80037957f30126fc87ba927088718f85093e4da12c440f58dab9fe8 deviceinfo
|
||||
1a87b0303bb77bbe98a4100934da9a6e9533e5cefe985a73ec29bd50e1588d9a9ac9f5a126b450eecfa83fe6289013825a76fe699fce2bd3afbdc90cd83cf8d9 phoc.ini
|
||||
"
|
33
device/testing/device-lg-c50/deviceinfo
Normal file
33
device/testing/device-lg-c50/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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 Leon LTE"
|
||||
deviceinfo_manufacturer="LG"
|
||||
deviceinfo_codename="lg-c50"
|
||||
deviceinfo_year="2015"
|
||||
deviceinfo_dtb="qcom/msm8916-lg-c50"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_modules_initfs="panel-simple msm"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="480"
|
||||
deviceinfo_screen_height="854"
|
||||
deviceinfo_getty="ttyMSM0;115200"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="earlycon console=ttyMSM0,115200 PMOS_NO_OUTPUT_REDIRECT"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_offset_base="0x80000000"
|
||||
deviceinfo_flash_offset_kernel="0x00080000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x01e00000"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_flash_sparse="true"
|
5
device/testing/device-lg-c50/phoc.ini
Normal file
5
device/testing/device-lg-c50/phoc.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[cursor:seat0]
|
||||
map-to-output = DSI-1
|
||||
|
||||
[output:DSI-1]
|
||||
scale = 1.25
|
29
device/testing/firmware-lg-c50/APKBUILD
Normal file
29
device/testing/firmware-lg-c50/APKBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Minecrell <minecrell@minecrell.net>
|
||||
pkgname=firmware-lg-c50
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Firmware for LG Leon LTE"
|
||||
url="https://github.com/jenneron/firmware_lg_c50"
|
||||
subpackages="$pkgname-wcnss-nv:wcnss_nv"
|
||||
arch="aarch64"
|
||||
license="proprietary"
|
||||
options="!check !strip !archcheck !tracedeps pmb:cross-native"
|
||||
|
||||
_commit="620db1e7d485d4daf858df10859d6f12079af9ca"
|
||||
source="$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz"
|
||||
|
||||
builddir="$srcdir/firmware_lg_c50-$_commit"
|
||||
_fwdir="/lib/firmware/postmarketos"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
}
|
||||
|
||||
wcnss_nv() {
|
||||
pkgdesc="LG Leon LTE WiFi/BT firmware"
|
||||
install -Dm644 "$builddir"/WCNSS_qcom_wlan_nv.bin -t "$subpkgdir/$_fwdir"/wlan/prima
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3adaf256d1593479926b5dbc39360faf852206932ad13d48cb4cc7a6519e5abf9876ee1f979df6ab4652d7b36490b96bd41865044c3911c5794b5d90b3e2d05f firmware-lg-c50-620db1e7d485d4daf858df10859d6f12079af9ca.tar.gz
|
||||
"
|
Loading…
Reference in a new issue