xiaomi-elish: new device (Xiaomi Pad 5 Pro) (MR 2871)

[ci:skip-build] Already build fine on CI in MR
This commit is contained in:
jianhua000 2022-01-22 20:44:03 +08:00 committed by Alexey Min
parent beb304144e
commit 66624b5468
No known key found for this signature in database
GPG Key ID: 0B19D2A65870B448
4 changed files with 7237 additions and 0 deletions
device/testing/device-xiaomi-elish
main/linux-postmarketos-qcom-sm8250

View File

@ -0,0 +1,29 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-elish
pkgdesc="Xiaomi Pad 5 Pro"
pkgver=0.1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-sm8250
mesa-dri-gallium
mkbootimg
postmarketos-base
"
makedepends="devicepkg-dev"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
dd5c0d3fe6f7ef4eb13d3b5bb1bc6f3cf308753392e2d4e3eed192f532309f671dd639f3bec63444c9ffb509ec7b9c6969baf2c9d5b97e8e8a4d534b4381b0e7 deviceinfo
"

View File

@ -0,0 +1,40 @@
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="Xiaomi Pad 5 Pro"
deviceinfo_manufacturer="Xiaomi"
deviceinfo_codename="xiaomi-elish"
deviceinfo_year="2021"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="tablet"
deviceinfo_keyboard="false"
deviceinfo_external_storage="false"
deviceinfo_screen_width="1600"
deviceinfo_screen_height="2560"
# Kernel options
deviceinfo_dtb="qcom/sm8250-xiaomi-elish"
deviceinfo_append_dtb="true"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="clk_ignore_unused pd_ignore_unused PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="4096"
deviceinfo_flash_sparse="true"
deviceinfo_flash_pagesize="4096"
# Required for devices using UFS as storage (instead of e.g. eMMC)
deviceinfo_rootfs_image_sector_size="4096"

View File

@ -0,0 +1,66 @@
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/defconfig
_flavor="postmarketos-qcom-sm8250"
pkgname=linux-$_flavor
pkgver=5.16.0
pkgrel=0
pkgdesc="Mainline kernel fork for SM8250"
arch="aarch64"
_carch="arm64"
url="https://github.com/lujianhua/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps pmb:cross-native"
makedepends="
findutils
linux-headers
xz
bash
bc
bison
devicepkg-dev
flex
openssl-dev
perl
"
# Source
_commit="83b825ad552b2758a22d44703e5972c9f71b4ea4"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz
$_config
"
builddir="$srcdir/linux-$_commit"
_outdir="out"
prepare() {
default_prepare
REPLACE_GCCH=0 \
. 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"
install -Dm644 "$builddir/$_outdir/arch/$_carch/boot/Image.gz" \
"$pkgdir/boot/vmlinuz"
make O="$_outdir" \
ARCH="$_carch" \
INSTALL_MOD_STRIP=1 \
INSTALL_MOD_PATH="$pkgdir" \
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" \
modules_install dtbs_install
}
sha512sums="
d2ecee4bbad8facbb5fc8e5d721fa5626c4a63410805c2aab29a4e3a3f5ac630aa292c33bc8683bb84e3dcaeff497a2b01489f716c05ebad7a04680f05546e20 linux-postmarketos-qcom-sm8250-83b825ad552b2758a22d44703e5972c9f71b4ea4.tar.gz
eb8c7b42bc17ab25a81b905a0bd43d60fca9556e3028930e8b611b79bb025c2b4a9c12dbd8524471e368204f6f107bac82dc8e1f6401f12986e5487bd4628513 config-postmarketos-qcom-sm8250.aarch64
"

File diff suppressed because it is too large Load Diff