From b57d83247eca33bb5c601567276a631f39c2d175 Mon Sep 17 00:00:00 2001 From: Mariusz Chryc Date: Tue, 15 Oct 2019 20:53:53 +0200 Subject: [PATCH] xiaomi-kenzu: fix charging-sdl, osk-sdl (!688) [ci:skip-build]: already built successfully in CI --- device/device-xiaomi-kenzo/APKBUILD | 13 ++++++++++--- device/device-xiaomi-kenzo/directfbrc | 1 + device/device-xiaomi-kenzo/fb.modes | 7 +++++++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 device/device-xiaomi-kenzo/directfbrc create mode 100644 device/device-xiaomi-kenzo/fb.modes diff --git a/device/device-xiaomi-kenzo/APKBUILD b/device/device-xiaomi-kenzo/APKBUILD index 5276811bf..28d5ae80e 100644 --- a/device/device-xiaomi-kenzo/APKBUILD +++ b/device/device-xiaomi-kenzo/APKBUILD @@ -2,7 +2,7 @@ pkgname="device-xiaomi-kenzo" pkgdesc="Xiaomi Redmi Note 3" pkgver=0.1 -pkgrel=2 +pkgrel=3 url="https://postmarketos.org" license="MIT" arch="aarch64" @@ -10,7 +10,9 @@ options="!check !archcheck" depends="postmarketos-base linux-xiaomi-kenzo mkbootimg mesa-dri-swrast mdss-fb-init-hack" makedepends="devicepkg-dev" subpackages="$pkgname-nonfree-firmware:nonfree_firmware" -source="deviceinfo" +source="deviceinfo + fb.modes + directfbrc" build() { devicepkg_build $startdir $pkgname @@ -18,6 +20,9 @@ build() { package() { devicepkg_package $startdir $pkgname + + install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes + install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc } nonfree_firmware() { @@ -26,4 +31,6 @@ nonfree_firmware() { mkdir "$subpkgdir" } -sha512sums="6307cdc07e910b8a8c991b4a0552c558a30f86fb2c930778d51ef6a80a144e67c32b782696059cad3415ed81e32c04c41e3ee6833046599474c36e56f4dfb528 deviceinfo" +sha512sums="6307cdc07e910b8a8c991b4a0552c558a30f86fb2c930778d51ef6a80a144e67c32b782696059cad3415ed81e32c04c41e3ee6833046599474c36e56f4dfb528 deviceinfo +646cedb1c4675ef04530f8cab305a48767ddc894d1d08541aae3a4c124268ca9ef88aa4fa6ad507d8618f4355144a206a32f5a75ade8e60ab1fc9a338d5209f8 fb.modes +19b0a9ae89ad4ad1adfcc2a1b5a1abfe71f560c2857e392f904c393f0b3bb4d29d7c2fbf8e080227d50e7e13f53fd5a5f3b0902c89582ec3e2742430ade19f07 directfbrc" diff --git a/device/device-xiaomi-kenzo/directfbrc b/device/device-xiaomi-kenzo/directfbrc new file mode 100644 index 000000000..aeaa8fe9e --- /dev/null +++ b/device/device-xiaomi-kenzo/directfbrc @@ -0,0 +1 @@ +pixelformat=RGB16 diff --git a/device/device-xiaomi-kenzo/fb.modes b/device/device-xiaomi-kenzo/fb.modes new file mode 100644 index 000000000..838a2d811 --- /dev/null +++ b/device/device-xiaomi-kenzo/fb.modes @@ -0,0 +1,7 @@ +mode "1080x1920-0" + # D: 1.033 MHz, H: 0.745 kHz, V: 0.384 Hz + geometry 1080 1920 1080 1920 16 + timings 967982 200 98 8 10 8 2 + accel false + rgba 8/0,8/8,8/16,8/24 +endmode