xiaomi-rosy: new device (MR 5128)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Barnabás Czémán 2024-05-13 20:15:12 +02:00 committed by Stefan Hansson
parent c5b6c5397a
commit 6b55f838d6
No known key found for this signature in database
GPG key ID: 8A700086A9FE41FD
4 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,35 @@
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-xiaomi-rosy
pkgdesc="Xiaomi Redmi 5"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-msm8953
lk2nd-msm8953
mkbootimg
msm-firmware-loader
postmarketos-base
soc-qcom-msm8953
soc-qcom-msm8953-modem
"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
sha512sums="
fb9e4c2c28c1c01f60eb4ff4f724917efb098b93feb06123dfcad5f48212c8499fe1dbdf4101fac564d83f039087abddcdb19db20bbe14f707a602bf075d7841 deviceinfo
ddc4e788c7cf62a1f0d6228f3bb59b89cba8f30c06d99c945477b0c1931721aefa3dc77e9f90ae3f0ad78979b9c7b228984e0bfd961b3e5eac62961830682939 modules-initfs
"

View file

@ -0,0 +1,37 @@
# 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 5"
deviceinfo_manufacturer="Xiaomi"
deviceinfo_codename="xiaomi-rosy"
deviceinfo_year="2017"
deviceinfo_arch="aarch64"
# Device related
deviceinfo_gpu_accelerated="true"
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="720"
deviceinfo_screen_height="1440"
deviceinfo_swap_size_recommended="512"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="console=null"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_dtb_second="false"
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"
deviceinfo_flash_pagesize="2048"
deviceinfo_flash_sparse="true"
# Kernel options
deviceinfo_dtb="qcom/sdm450-xiaomi-rosy"
deviceinfo_append_dtb="true"
deviceinfo_flash_kernel_on_update="false"

View file

@ -0,0 +1,5 @@
edt_ft5x06
msm
panel-xiaomi-rosy-ft8613-ebbg
panel-xiaomi-rosy-ft8613-csot
panel-xiaomi-rosy-ft8006m-boe

View file

@ -0,0 +1,25 @@
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
pkgname=firmware-xiaomi-rosy
pkgver=1
pkgrel=0
pkgdesc="Firmware files for Xiaomi Redmi 5"
url="https://gitlab.com/barni2000/$pkgname"
arch="aarch64"
license="proprietary"
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
_commit="69c6d964bc0034bd93292286ac101c23fc804d72"
source="$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"
_fwdir="/lib/firmware/postmarketos"
package() {
install -Dm644 a506_zap.b02 -t "$pkgdir/$_fwdir"
install -Dm644 a506_zap.mdt -t "$pkgdir/$_fwdir"
}
sha512sums="
e1f0cd1383ba95cef08236dc470e4be05852387152be7772488f423f5a2e9ec1f7b27203ebf1e3bcb98b3998387b510546ebdcb81b0137a180912c67b850cc07 firmware-xiaomi-rosy-69c6d964bc0034bd93292286ac101c23fc804d72.tar.gz
"