From 58f06f8b919407e474945833b17df76489998889 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Thu, 8 Oct 2020 11:08:02 +0200 Subject: [PATCH] fairphone-fp2: set deviceinfo_mesa_driver to get fast osk-sdl (MR 1625) we also have to install the gpu firmware into the initramfs --- .../30-gpu-firmware.files | 2 ++ device/testing/device-fairphone-fp2/APKBUILD | 23 +++++++++++++------ .../testing/device-fairphone-fp2/deviceinfo | 1 + 3 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 device/testing/device-fairphone-fp2/30-gpu-firmware.files diff --git a/device/testing/device-fairphone-fp2/30-gpu-firmware.files b/device/testing/device-fairphone-fp2/30-gpu-firmware.files new file mode 100644 index 000000000..7c2f06dcd --- /dev/null +++ b/device/testing/device-fairphone-fp2/30-gpu-firmware.files @@ -0,0 +1,2 @@ +/lib/firmware/qcom/a330_pfp.fw +/lib/firmware/qcom/a330_pm4.fw diff --git a/device/testing/device-fairphone-fp2/APKBUILD b/device/testing/device-fairphone-fp2/APKBUILD index ddc0b7292..aa20b29fa 100644 --- a/device/testing/device-fairphone-fp2/APKBUILD +++ b/device/testing/device-fairphone-fp2/APKBUILD @@ -1,18 +1,23 @@ # Reference: pkgname=device-fairphone-fp2 pkgdesc="Fairphone 2" -pkgver=2 -pkgrel=15 +pkgver=3 +pkgrel=0 url="https://postmarketos.org" license="MIT" arch="armv7" options="!check !archcheck" -depends="postmarketos-base mkbootimg" +depends=" + mesa-dri-gallium + mkbootimg + postmarketos-base + " makedepends="devicepkg-dev" source="deviceinfo FP2.conf hifi rootston.ini + 30-gpu-firmware.files " subpackages=" $pkgname-kernel-downstream:kernel_downstream @@ -34,13 +39,13 @@ package() { kernel_downstream() { pkgdesc="Downstream kernel" - depends="linux-fairphone-fp2 mesa-dri-swrast ofono" + depends="linux-fairphone-fp2" devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } kernel_mainline() { pkgdesc="Close to mainline kernel" - depends="linux-postmarketos-qcom-msm8974 mesa-dri-freedreno" + depends="linux-postmarketos-qcom-msm8974 mesa-egl" devicepkg_subpackage_kernel $startdir $pkgname $subpkgname } @@ -62,6 +67,9 @@ mainline_firmware() { depends="msm-modem-rpmsg firmware-adreno" install_if="$pkgname-kernel-mainline $pkgname-nonfree-firmware" mkdir "$subpkgdir" + + install -Dm644 "$srcdir/30-gpu-firmware.files" \ + "$subpkgdir/etc/postmarketos-mkinitfs/files/30-gpu-firmware.files" } alsa() { @@ -78,7 +86,8 @@ phosh() { "$subpkgdir"/etc/phosh/rootston.ini } -sha512sums="f594853f973525c59c689d1f46d9be9005e05e170339daaca6d06f07a4a60d0de3db47785aebb35bdb2b129fae6bdd6c32f92e986e9fd09db07aba4534156ef2 deviceinfo +sha512sums="f41b13840337d006ca925c7aff244f8e5202427aa30f7b5db5473650205932e52b96f99480369696bd9daf376f8f8cc65c1f17b5eaab6e95ae0cea9f2a924e17 deviceinfo 55360b1ba4ddadea341c9edb13c32ba5f19aabf75ab28602f30cfb79b9df8834f115ef979c70569f23ec1293b1fcd408baf320d87803293ce7106bdc73a26c9f FP2.conf b834461c6866bb0c473dd089dd5da641dd42a00f610aad6503117aa50fe6e200db9ad0a264bb609f12350d59faee1f772907bacd75439f702ea7d52f6f85e2b1 hifi -aad7cce10db5ec156585893c82932bd42f2c86e4d68208b5f3816ac7f5f80eb6ddf15157666e81de97d30b20897f88e1027545a87fe5c96c37b5e75e3e125ee4 rootston.ini" +aad7cce10db5ec156585893c82932bd42f2c86e4d68208b5f3816ac7f5f80eb6ddf15157666e81de97d30b20897f88e1027545a87fe5c96c37b5e75e3e125ee4 rootston.ini +bbe6d6f530a9fa1934dd065dd4f6da48450e2115e4656b219d7f3aebc8b6a2775c02a2e5ffb5790950bb8183fca4677fbeaf9d8a267089c9f0d08461fc8ed45d 30-gpu-firmware.files" diff --git a/device/testing/device-fairphone-fp2/deviceinfo b/device/testing/device-fairphone-fp2/deviceinfo index ff417da0f..246f11b22 100644 --- a/device/testing/device-fairphone-fp2/deviceinfo +++ b/device/testing/device-fairphone-fp2/deviceinfo @@ -19,6 +19,7 @@ deviceinfo_screen_width="1080" deviceinfo_screen_height="1920" deviceinfo_getty_downstream="ttyHSL0;115200" deviceinfo_getty_mainline="ttyMSM0;115200" +deviceinfo_mesa_driver_mainline="msm" # Bootloader related deviceinfo_flash_method="fastboot"