From 07a7853b50683dab775913331a51c76da2949651 Mon Sep 17 00:00:00 2001 From: Martijn Braam Date: Wed, 28 Oct 2020 00:57:49 +0100 Subject: [PATCH] device-pine64-pinephone: add autofocus firmware (MR 1656) [ci:skip-build]: already built successfully in CI --- .../community/device-pine64-pinephone/APKBUILD | 6 +++--- .../community/firmware-pine64-ov5640/APKBUILD | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 device/community/firmware-pine64-ov5640/APKBUILD diff --git a/device/community/device-pine64-pinephone/APKBUILD b/device/community/device-pine64-pinephone/APKBUILD index 9902369d4..881fb0ed9 100644 --- a/device/community/device-pine64-pinephone/APKBUILD +++ b/device/community/device-pine64-pinephone/APKBUILD @@ -4,7 +4,7 @@ # Co-Maintainer: Bart Ribbers pkgname=device-pine64-pinephone pkgver=0.10 -pkgrel=1 +pkgrel=2 pkgdesc="PINE64 PinePhone" url="https://postmarketos.org" license="MIT" @@ -76,8 +76,8 @@ package() { } nonfree_firmware() { - pkgdesc="Wifi and Bluetooth firmware" - depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-pine64-rtl8723bt" + pkgdesc="Wifi, Bluetooth and Autofocus firmware" + depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-pine64-rtl8723bt firmware-pine64-ov5640" mkdir "$subpkgdir" } diff --git a/device/community/firmware-pine64-ov5640/APKBUILD b/device/community/firmware-pine64-ov5640/APKBUILD new file mode 100644 index 000000000..33d3c6aa2 --- /dev/null +++ b/device/community/firmware-pine64-ov5640/APKBUILD @@ -0,0 +1,17 @@ +# Maintainer: Martijn Braam +pkgname=firmware-pine64-ov5640 +pkgver=0_git20201028 +pkgrel=0 +_commit="61beaa4eb1ad87ad067cfbe123fbcd0a0cf01246" +pkgdesc="Firmware for the ov5640 autofocus" +url="https://github.com/pmsourcedump/ov5640" +arch="aarch64" +license="proprietary" +options="!check !strip !archcheck" +source="$pkgname-$_commit.bin::https://github.com/pmsourcedump/ov5640/blob/$_commit/ov5640_af.bin?raw=true" + +package() { + install -Dm644 "$srcdir"/$pkgname-$_commit.bin "$pkgdir"/lib/firmware/postmarketos/ov5640_af.bin +} + +sha512sums="4e0c050f483e2e6c4584874a70e90748f8adfb612c8eef38b877d69d8085dbe29f3ae36bb9c299dc5a3986223d82bd51d4eefcaa9709bcfbca5a249098cfb0f0 firmware-pine64-ov5640-61beaa4eb1ad87ad067cfbe123fbcd0a0cf01246.bin"