lenovo-tb-x704f: new device (MR 3326)

Wiki: https://wiki.postmarketos.org/wiki/Lenovo_TAB4_10_Plus_(lenovo-tb-x704f)

[ci:skip-build] Already built successfuly on CI in MR
This commit is contained in:
Albin Martinsson 2022-07-30 21:40:57 +02:00 committed by Dylan Van Assche
parent 570d55b47e
commit 2aa7b9d72e
No known key found for this signature in database
GPG key ID: 8642571587897EA1
5 changed files with 4790 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lenovo-tb-x704f
pkgdesc="Lenovo TAB4 10 Plus"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-lenovo-tb-x704f
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
dc0c8dd524f075a1ab5c7d87a0e0a3ed083ee1d8fbd5364e0d254371d33f5fb6482f5eea141c59d35188dc2d7e51ac8fb60d7d4b48298e1a93862b2deca6c11d deviceinfo
"

View file

@ -0,0 +1,32 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Lenovo TAB4 10 Plus"
deviceinfo_manufacturer="Lenovo"
deviceinfo_codename="lenovo-tb-x704f"
deviceinfo_year="2017"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1920"
deviceinfo_screen_height="1200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=null androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci loop.max_part=7 firmware_class.path=/vendor/firmware_mnt/image androidboot.selinux=permissive buildvariant=eng"
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="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_sparse="true"

View file

@ -0,0 +1,57 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/lineageos_tbx704_defconfig
pkgname=linux-lenovo-tb-x704f
pkgver=3.18.140
pkgrel=0
pkgdesc="Lenovo TAB4 10 Plus kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="lenovo-tb-x704f"
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="android_kernel_lenovo_msm8953"
_commit="331772c6dd08d087cfa2e50ad69185f11bc5f47d"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/lenovo-devs/$_repository/archive/$_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" \
EXTRA_CFLAGS="-mstrict-align"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" \
"$_flavor" "$_outdir"
}
sha512sums="
e02f23ab9b85c6f9ff68f155afb36311effc5a24bfdc7aa5126f968b2b29af4c6fb71a5fb1570eb99507aa665e1486a26ba2cd6d9cdb768cb423294ae467f745 linux-lenovo-tb-x704f-331772c6dd08d087cfa2e50ad69185f11bc5f47d.tar.gz
940969d266e21f8ecd407c34095cb4adad7401130ab022bacc6cf88b5f5d5bc02cb9fa9e4d15707c2de0ce9674947b1405b698a77c44bb6040480772bd614af3 config-lenovo-tb-x704f.aarch64
2b48f1bf0e3f70703d2cdafc47d5e615cc7c56c70bec56b2e3297d3fa4a7a1321d649a8679614553dde8fe52ff1051dae38d5990e3744c9ca986d92187dcdbeb gcc10-extern_YYLOC_global_declaration.patch
"

File diff suppressed because it is too large Load diff

View file

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