leeco-x3: new device (MR 2768)

[ci:skip-build] Already built fine on CI in MR
This commit is contained in:
Monu Kumar 2021-12-18 11:03:57 +05:30 committed by Alexey Min
parent d7bd728c05
commit 7b69b79a51
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
5 changed files with 3369 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-leeco-x3
pkgdesc="LeEco Le 1s"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base linux-leeco-x3 mkbootimg mesa-dri-gallium"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
8d69c04a3ab09a32403b7c069ac616753864a25dec886c48946decdb4798fec1ce05868090a6bce0a265c9aadc66d54ef0b3582f0cac53ba4f73e774179132d2 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="LeEco Le 1s"
deviceinfo_manufacturer="LeEco"
deviceinfo_codename="leeco-x3"
deviceinfo_year="2016"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 androidboot.selinux=permissive"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_flash_sparse="true"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x03f88000"
deviceinfo_flash_offset_second="0x00e88000"
deviceinfo_flash_offset_tags="0x0df88000"
deviceinfo_flash_pagesize="2048"

View file

@ -0,0 +1,46 @@
# Kernel config based on: arch/arm64/configs/
pkgname=linux-leeco-x3
pkgver=3.10.107
pkgrel=0
pkgdesc="LeEco Le 1s kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="leeco-x3"
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="LeEco-Le1S-Kernel"
_commit="e03ab790982ed578e565ea43e07079108e13eeea"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/WisniaPL/$_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"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="
8e14a156543afcfeda239984bf65baba69a0e79ddc43b2984ea430a328fef0cc8304c189bdc510204cf2bb0ae6cbd3d90afe10526df4dfb9f11197327ed1e551 linux-leeco-x3-e03ab790982ed578e565ea43e07079108e13eeea.tar.gz
11326c4fcc45ef15aefb03aab38a2f222ceb8fbc9c0d60f1ec0e64b828990479042a76dc7d16322d2804e3e5ed6c9772cacf959cf77d43b412b8825c2d6fcbb7 config-leeco-x3.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