lg-mmh4x: new device (LG K40) (MR 3231)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Ben Westover 2022-06-13 02:20:01 -04:00 committed by Oliver Smith
parent 1476dba6f2
commit a9f2075aae
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 5517 additions and 0 deletions

View file

@ -0,0 +1,30 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lg-mmh4x
pkgdesc="LG K40"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-lg-mmh4x
msm-fb-refresher
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
8fb0b9485b731efca11fbb91d443e69b25c73087bf842e972ea979100a819937c64570fbb4cdfbb3f0bd75fe2c096b33974005b0c78a95affff308d01ac26d88 deviceinfo
"

View file

@ -0,0 +1,31 @@
# 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 K40"
deviceinfo_manufacturer="LG"
deviceinfo_codename="lg-mmh4x"
deviceinfo_year="2019"
deviceinfo_arch="armv7"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1440"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,32N2 androidboot.hardware=mmh4x androidboot.usbconfigfs=true androidboot.product.lge.op_verity=1 buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_offset_base="0x40000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x11b00000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x07880000"

View file

@ -0,0 +1,56 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm/configs/mmh4x_defconfig
pkgname=linux-lg-mmh4x
pkgver=4.9.190
pkgrel=0
pkgdesc="LG K40 kernel fork"
arch="armv7"
_carch="arm"
_flavor="lg-mmh4x"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
flex
openssl-dev
perl
"
# Source
_repository="lmx420as-kernel"
_commit="b4ee716c6598d1335ec8ebdf86465c1122b59685"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://gitlab.com/lg-mmh4x/$_repository/-/archive/$_commit/$_repository-$_commit.tar.gz
$_config
gcc10-extern_YYLOC_global_declaration.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
f3e70892136b0a8dc777c50949abdc4168d4804fbcf30b8f88bf59e7a5ec09e1dca8a63414741d928a50f1122b4cab95d48aa7f2503a22f726c38ed2ac487676 linux-lg-mmh4x-b4ee716c6598d1335ec8ebdf86465c1122b59685.tar.gz
869653a8c005c36e51fe314f69eafb6aa9304564942bad88af379988f028af20a961685654f39d612c268c1dea16a3557d80ebbbc9c9864bb2ef8142ff243866 config-lg-mmh4x.armv7
eaf2e61fcb508cdd239b8fed209d2a09ecac77287f6b46d003918fdf1c6fa2ee63f7390f3ff7c49029b8ed6cbcdd81c7e9a4b1ece9f5060b6fc84e322bd47f41 gcc10-extern_YYLOC_global_declaration.patch
"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1 @@
../../.shared-patches/linux/linux4.2-gcc10-extern_YYLOC_global_declaration.patch