xiaomi-onclite: new device (MR 4351)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
37610c57f7
commit
146c6b0f1c
5 changed files with 130 additions and 0 deletions
46
device/testing/device-xiaomi-onclite/APKBUILD
Normal file
46
device/testing/device-xiaomi-onclite/APKBUILD
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
|
||||||
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
|
|
||||||
|
pkgname=device-xiaomi-onclite
|
||||||
|
pkgdesc="Xiaomi Redmi 7"
|
||||||
|
pkgver=1
|
||||||
|
pkgrel=0
|
||||||
|
url="https://postmarketos.org"
|
||||||
|
license="MIT"
|
||||||
|
arch="aarch64"
|
||||||
|
options="!check !archcheck"
|
||||||
|
depends="
|
||||||
|
linux-postmarketos-qcom-msm8953
|
||||||
|
lk2nd-msm8953
|
||||||
|
mkbootimg
|
||||||
|
postmarketos-base
|
||||||
|
soc-qcom-msm8953
|
||||||
|
"
|
||||||
|
makedepends="devicepkg-dev"
|
||||||
|
source="deviceinfo modules-initfs"
|
||||||
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-modem"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
devicepkg_build $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
devicepkg_package $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
nonfree_firmware() {
|
||||||
|
pkgdesc="Modem, WiFi, BT, ADSP, Venus and GPU Firmware, also needed for osk-sdl"
|
||||||
|
depends="msm-firmware-loader firmware-xiaomi-onclite"
|
||||||
|
mkdir "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
modem() {
|
||||||
|
depends="qrtr rmtfs rmtfs-openrc msm-modem-uim-selection"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware"
|
||||||
|
mkdir "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
f034295150acd176b9e9afe1936778d977cc220a9980e2081df3de7aa6705b2b0e86eaacdc84290b204729d5e3b8c23da71c41fc8a972519a8a0aa4e41d3599d deviceinfo
|
||||||
|
c937f5fd7f11cccd7629d306b46a7f3aa3503c8eaaa3280b0f5a97473f6f430ba822110ada34a8eb95e798604916ba7e1170cb2217bbff72b0f738b02aa3f412 modules-initfs
|
||||||
|
"
|
40
device/testing/device-xiaomi-onclite/deviceinfo
Normal file
40
device/testing/device-xiaomi-onclite/deviceinfo
Normal 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 Redmi 7"
|
||||||
|
deviceinfo_manufacturer="Xiaomi"
|
||||||
|
deviceinfo_codename="xiaomi-onclite"
|
||||||
|
deviceinfo_year="2019"
|
||||||
|
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="1520"
|
||||||
|
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/sdm632-xiaomi-onclite"
|
||||||
|
deviceinfo_append_dtb="true"
|
||||||
|
deviceinfo_flash_kernel_on_update="false"
|
||||||
|
|
||||||
|
# osk-sdl
|
||||||
|
deviceinfo_mesa_driver="msm"
|
4
device/testing/device-xiaomi-onclite/modules-initfs
Normal file
4
device/testing/device-xiaomi-onclite/modules-initfs
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
msm
|
||||||
|
panel_xiaomi_onclite_hx8394f
|
||||||
|
panel_xiaomi_onclite_ili9881
|
||||||
|
panel_xiaomi_onclite_otm1901a
|
|
@ -0,0 +1,4 @@
|
||||||
|
/lib/firmware/postmarketos/a506_zap.b02
|
||||||
|
/lib/firmware/postmarketos/a506_zap.mdt
|
||||||
|
/lib/firmware/postmarketos/a530_pfp.fw
|
||||||
|
/lib/firmware/postmarketos/a530_pm4.fw
|
36
device/testing/firmware-xiaomi-onclite/APKBUILD
Normal file
36
device/testing/firmware-xiaomi-onclite/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Maintainer: Barnabas Czeman <trabarni@gmail.com>
|
||||||
|
pkgname=firmware-xiaomi-onclite
|
||||||
|
pkgver=1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Firmware files for Xiaomi Redmi 7"
|
||||||
|
url="https://gitlab.com/barni2000/$pkgname"
|
||||||
|
arch="aarch64"
|
||||||
|
depends="firmware-xiaomi-onclite-initramfs"
|
||||||
|
license="proprietary"
|
||||||
|
options="!strip !check !archcheck !spdx !tracedeps pmb:cross-native"
|
||||||
|
|
||||||
|
_commit="5ab4968ab12acb60a5e165008fdf25345e80c309"
|
||||||
|
|
||||||
|
source="$pkgname-$_commit.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz
|
||||||
|
30-gpu-firmware.files"
|
||||||
|
subpackages="$pkgname-initramfs:firmware_initramfs"
|
||||||
|
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"
|
||||||
|
install -Dm644 a530_pfp.fw -t "$pkgdir/$_fwdir"
|
||||||
|
install -Dm644 a530_pm4.fw -t "$pkgdir/$_fwdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
firmware_initramfs() {
|
||||||
|
install -Dm644 "$srcdir"/30-gpu-firmware.files -t \
|
||||||
|
"$subpkgdir"/usr/share/mkinitfs/files
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
e95cf73b4a2e13c8ea3296670177372f5e3c07f40e73806546f7c28a12a3ba5a3b735994dcaeacb8da59f5e3561ab6b061cedd77757cf58686907d32b1a7162a firmware-xiaomi-onclite-5ab4968ab12acb60a5e165008fdf25345e80c309.tar.gz
|
||||||
|
0e7daa7d3fb216b4949e103a6a58af614b6dd6839acd5e638a2cd6b4caf703fa0d19b2dfb997f69a097e3653c31da22fa1a289fbf911b6ecb1f3b1a901ef33d3 30-gpu-firmware.files
|
||||||
|
"
|
Loading…
Reference in a new issue