pmaports/device/device-pine64-pinephone/APKBUILD
Martijn Braam 61ed09aca6
device/device-pine64-pinephone: add ucm for voicecalls (!938)
This updates the UCM2 files for the 5.5 kernel and adds a voicecall
profile that enables the audio between the modem and the speaker/mic
2020-02-19 10:10:50 +05:30

64 lines
2.7 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
# Contributor: Martijn Braam <martijn@brixit.nl>
pkgname="device-pine64-pinephone"
pkgdesc="PINE64 PinePhone"
pkgver=0.1
pkgrel=22
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
depends="postmarketos-base u-boot-pine64 uboot-tools mesa-git-dri-gallium linux-postmarketos-allwinner ofono ofono-openrc"
makedepends="devicepkg-dev"
install="$pkgname.post-install"
source="
deviceinfo
uboot-script.cmd
weston.ini
hwtest.ini
ucm/sun50i-a64-audio.conf
ucm/HiFi
ucm/VoiceCall
eg25.initd
"
build() {
devicepkg_build $startdir $pkgname
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n postmarketos -d "$srcdir"/uboot-script.cmd "$srcdir"/boot.scr
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/boot.scr \
"$pkgdir"/boot/boot.scr
install -D -m644 "$srcdir"/hwtest.ini \
"$pkgdir"/usr/share/hwtest.ini
# Alsa usecase manager config
install -D -m644 "$srcdir"/sun50i-a64-audio.conf \
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audio/sun50i-a64-audio.conf
install -D -m644 "$srcdir"/HiFi \
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audio/HiFi
install -D -m644 "$srcdir"/VoiceCall \
"$pkgdir"/usr/share/alsa/ucm2/sun50i-a64-audio/VoiceCall
install -Dm755 "$srcdir"/eg25.initd "$pkgdir"/etc/init.d/eg25
}
nonfree_firmware() {
pkgdesc="Wifi and Bluetooth firmware"
depends="linux-firmware-rtlwifi linux-firmware-rtl_bt firmware-rtl8723bt"
mkdir "$subpkgdir"
}
sha512sums="bfb39f14c5a0b928d08cbcb5d19e63e141b052ebb72186c7c26f54d89c2ebf069674bc110215df0cacdd663610594eef5ffb3022eae5bd0e08aea34ab4e2f319 deviceinfo
35a5ce7c18747e4363c6b310a1c33143f333a9dd2031d619dee10773d499329487a5ed76749e182d56829d03511266a54890cfa706ba21565e9ba8ffdb88f872 uboot-script.cmd
c4c57d1627dd451213e1ef20d89de9266cd4edcc2d33a69aa9a1f13e16d9f9742036b69dc149fd910d7213f7525c41eb79576d4457bc85cc96eba0d986382d27 weston.ini
3dd6d612c381cb0002049d1974d8fb5aa5a53a1eb4d6bcbf62eb2ad52cfdc45f0f6ad24a699716d3513b0371aa1316f25dc72afc10d7176cc3b99d0965c3f030 hwtest.ini
08a019cad26a8cb298e26ab5b9360b90b981d15f8562d434a00762e4ba14e16ae11cf5e516385aa5b428b0e8b310caee1e8ef7a40bafd66ffe8dde3026c6e17e sun50i-a64-audio.conf
e5cb41ef6c00bc6cc5e3821a0001f62bbda9555cbdb829a35a80a56cda402bcf551a8beca9be602af71901ae999552dd24fb87bf5476541f7d25b876ab1b8f93 HiFi
3d75dadbc8e9b12ff86bd321351e40de5c0ec93c4954dd482510c57df90e82c6dcc75fff8cc6702bebaf5d429ad8fe26c4bdd678038038209c117ec0488b0ba4 VoiceCall
5a1a9c774253e8211cc54f4b3961c4bdc35427726d037b0ecad099915e856590e8267a4a47943ab753772d57261eef89924b407b305b1099a9c4ecd7b5f00b35 eg25.initd"