lenovo-tb128fu: new device (MR 4162)

[ci:skip-build] already built successfully in CI
This commit is contained in:
TQMatvey 2023-06-07 14:04:35 +07:00 committed by Clayton Craft
parent 5b4c1d14ff
commit ec804dcb33
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
4 changed files with 9125 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-lenovo-tb128fu
pkgdesc="Lenovo Xiaoxin Pad 2022"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-sm6225
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
dc34d7cf0a533e22a4c4d1b61f26535ba4c0bfe8b240a0d395759f9e4638491687d65120320ab85db01aac78405eb5df8264df8db52df1e1f6891009be8b27ff deviceinfo
"

View file

@ -0,0 +1,38 @@
# 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 Xiaoxin Pad 2022"
deviceinfo_manufacturer="Lenovo"
deviceinfo_codename="lenovo-tb128fu"
deviceinfo_year="2022"
deviceinfo_dtb="qcom/sm6225-lenovo-tb128fu"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="2000"
deviceinfo_screen_height="1200"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="clk_ignore_unused console=tty0 PMOS_NOSPLASH"
deviceinfo_flash_fastboot_partition_vbmeta="vbmeta"
deviceinfo_flash_fastboot_partition_system="super"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_rootfs_image_sector_size="4096"
deviceinfo_flash_pagesize="4096"
deviceinfo_header_version="2"
deviceinfo_append_dtb="false"
deviceinfo_flash_offset_dtb="0x01f00000"
deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000100"

View file

@ -0,0 +1,66 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Maintainer: TQMatvey <maybeetube@gmail.com>
pkgname=linux-postmarketos-qcom-sm6225
pkgver=6.1
pkgrel=0
pkgdesc="Mainline Kernel fork for SM6225 devices"
arch="aarch64"
_carch="arm64"
_flavor="postmarketos-qcom-sm6225"
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="linux-sm6225"
_commit="849f3f471b6268280dc8418e0bddda435ae5d4a5"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://gitlab.com/TQMatvey/$_repository/-/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/$_repository-$_commit"
prepare() {
default_prepare
cp "$srcdir/config-$_flavor.$arch" .config
}
build() {
unset LDFLAGS
# V=1: workaround for pma#1990
make ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor" V=1
}
package() {
install -Dm644 "$builddir/arch/$_carch/boot/Image.gz" \
"$pkgdir/boot/vmlinuz"
make modules_install dtbs_install \
ARCH="$_carch" \
INSTALL_PATH="$pkgdir"/boot/ \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_MOD_STRIP=1 \
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
install -D "$builddir"/include/config/kernel.release \
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
}
sha512sums="
df2584f29d4e2c753eed2f843da9c2134211c6359d0bd58d0d5f3ab3baf6cdebf57e37997da5a92a2401669329fcb30dd3c8c2c65c7be1eb86fe67abc9c2da91 linux-postmarketos-qcom-sm6225-849f3f471b6268280dc8418e0bddda435ae5d4a5.tar.gz
ce5856fd55973fea0678dbe646e5688c142cee9c84ae4a5c76ab003a6f368de640577a5c13261393b8a4b72aa84a492a1e84683b5cc02ae0b6ad6396ae110765 config-postmarketos-qcom-sm6225.aarch64
"