zte-p450f10: new device (ZTE Blade V9) (MR 2550)

https://wiki.postmarketos.org/wiki/ZTE_Blade_V9_(zte-p450f10)

[ci:skip-build] Already built on CI in MR
This commit is contained in:
SL-TX 2021-09-20 17:38:06 +03:00 committed by Alexey Minnekhanov
parent b2dd78880b
commit 1a24447e0c
No known key found for this signature in database
GPG key ID: 6FE3B029D9D9FAFF
6 changed files with 4873 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-zte-p450f10
pkgdesc="ZTE Blade V9"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-zte-p450f10
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
0c7a99f463add8c2f1251e36cfbbfd243f0af7ca21aca0918aa7b729db6b46e5eb86c9be6829fdae170cc68664487162ec347441d7cd0b6922d3a9f1af5f6dff 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="ZTE Blade V9"
deviceinfo_manufacturer="ZTE"
deviceinfo_codename="zte-p450f10"
deviceinfo_year="2018"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="1080"
deviceinfo_screen_height="2160"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 ramoops.mem_address=0xb0000000 ramoops.mem_size=0x200000 ramoops.console_size=0x100000 ramoops.ftrace_size=0x40000 ramoops.pmsg_size=0x40000 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="0x80000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"

View file

@ -0,0 +1,66 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/config-from-device_defconfig
pkgname=linux-zte-p450f10
pkgver=3.18.71
pkgrel=0
pkgdesc="ZTE Blade V9 kernel fork"
arch="aarch64"
_carch="arm64"
_flavor="zte-p450f10"
url="https://kernel.org"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
bash
bc
bison
devicepkg-dev
flex
gcc6
openssl-dev
perl
"
# Compiler: GCC 6 (doesn't boot when compiled with newer versions)
if [ "${CC:0:5}" != "gcc6-" ]; then
CC="gcc6-$CC"
HOSTCC="gcc6-gcc"
CROSS_COMPILE="gcc6-$CROSS_COMPILE"
fi
# Source
_repository="android_kernel_zte_p450f10"
_commit="2a68a7e2e0d9b2e55a5456f8e053f8f7c318189c"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://gitlab.com/sl-tx/$_repository/-/archive/$_commit/$_repository-$commit.tar.gz
$_config
gcc8-fix-put-user.patch
gcc10-extern_YYLOC_global_declaration.patch
"
builddir="$srcdir/$_repository-$_commit"
_outdir="out"
prepare() {
default_prepare
. downstreamkernel_prepare
}
build() {
unset LDFLAGS
chmod +x $builddir/arch/arm64/kernel/vdso/gen_vdso_offsets.sh
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
}
package() {
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
}
sha512sums="
aeb39c5ccc4b3baac1ba6b9f4840f9b4c6bf0c21b3392431c6f22883d40f2783f9e0e381a6e3efbdc215ebdd0d0dacc9e0ee4726c68152979f287ba14f385a3b linux-zte-p450f10-2a68a7e2e0d9b2e55a5456f8e053f8f7c318189c.tar.gz
d78c83ae061cb3b89d3d80c749e625e662a4e30956c5aed38ba581a579a30b9c449b8f4a5242147b3c1aaacb29b6f39b8b55b00215e2dd6c49314b007c32b796 config-zte-p450f10.aarch64
197d40a214ada87fcb2dfc0ae4911704b9a93354b75179cd6b4aadbb627a37ec262cf516921c84a8b1806809b70a7b440cdc8310a4a55fca5d2c0baa988e3967 gcc8-fix-put-user.patch
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

View file

@ -0,0 +1 @@
../../.shared-patches/linux/gcc8-fix-put-user.patch