device-xiaomi-lancelot: initial mainline port for redmi 9 (lancelot) [linux-postmarketos-mediatek-mt6768]
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7292
This commit is contained in:
parent
832843238b
commit
7b5d78d4b4
3 changed files with 65 additions and 4 deletions
31
device/testing/device-xiaomi-lancelot/APKBUILD
Normal file
31
device/testing/device-xiaomi-lancelot/APKBUILD
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Abdullah AL Shohag <HackerShohag@outlook.com>
|
||||
pkgname=device-xiaomi-lancelot
|
||||
pkgdesc="Xiaomi Redmi 9"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-mediatek-mt6768
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5359e660135fcb46e3e8a2286efe26cae164daa8e9a2ad20479f694d872c1d4520a04cb524f98c7d0824fed2d3d43badc319554b5637965dd5452804570cb9e5 deviceinfo
|
||||
"
|
||||
34
device/testing/device-xiaomi-lancelot/deviceinfo
Normal file
34
device/testing/device-xiaomi-lancelot/deviceinfo
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# 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 Redmi 9"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-lancelot"
|
||||
deviceinfo_year="2020"
|
||||
deviceinfo_dtb="mediatek/mt6769t-xiaomi-lancelot-tianma-ti"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
|
||||
# Custom (got from the docs)
|
||||
deviceinfo_drm="true"
|
||||
deviceinfo_flash_fastboot_partition_dtbo="dtbo"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 buildvariant=user"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_header_version="2"
|
||||
deviceinfo_append_dtb="false"
|
||||
deviceinfo_flash_offset_dtb="0x0bc08000"
|
||||
deviceinfo_flash_offset_base="0x40078000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x07c08000"
|
||||
deviceinfo_flash_offset_second="0xbff88000"
|
||||
deviceinfo_flash_offset_tags="0x0bc08000"
|
||||
|
|
@ -45,10 +45,6 @@ build() {
|
|||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor"\
|
||||
V=1
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
modules_install INSTALL_MOD_PATH=modules
|
||||
mkdir -p "$srcdir/lib"
|
||||
cp -r modules/lib/* "$srcdir/lib"
|
||||
}
|
||||
|
||||
package() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue