2021-10-05 12:40:08 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
# Maintainer: Martijn Braam <martijn@brixit.nl>
|
|
|
|
pkgname=device-pine64-pinephonepro
|
|
|
|
pkgdesc="PINE64 PinePhone Pro"
|
2022-01-21 13:13:41 +00:00
|
|
|
pkgver=2.0
|
2022-03-30 14:38:45 +00:00
|
|
|
pkgrel=1
|
2021-10-05 12:40:08 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
2022-01-21 13:13:41 +00:00
|
|
|
# pmb:strict is required for grub
|
|
|
|
options="!check !archcheck pmb:strict"
|
2021-10-05 12:40:08 +00:00
|
|
|
depends="
|
2021-12-12 14:28:31 +00:00
|
|
|
alsa-ucm-conf>=1.2.6.2
|
2021-12-14 14:08:56 +00:00
|
|
|
eg25-manager>=0.4.2
|
2021-10-05 12:40:08 +00:00
|
|
|
iw
|
|
|
|
linux-pine64-pinephonepro
|
|
|
|
mesa-dri-gallium
|
|
|
|
postmarketos-base
|
2021-12-19 11:01:36 +00:00
|
|
|
fwupd
|
|
|
|
fwupd-plugin-modem_manager
|
|
|
|
fwupd-plugin-fastboot
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|
2022-01-21 13:13:41 +00:00
|
|
|
makedepends="
|
|
|
|
devicepkg-dev
|
|
|
|
grub
|
|
|
|
grub-efi
|
|
|
|
"
|
2021-10-05 12:40:08 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2021-12-14 14:08:56 +00:00
|
|
|
install="
|
|
|
|
$pkgname.post-install
|
|
|
|
$pkgname.post-upgrade
|
|
|
|
"
|
2021-10-05 12:40:08 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
2022-01-21 13:13:41 +00:00
|
|
|
grub.cfg
|
|
|
|
grub_early.cfg
|
2021-12-12 14:28:31 +00:00
|
|
|
ucm/HiFi.conf
|
|
|
|
ucm/PinePhonePro.conf
|
|
|
|
ucm/VoiceCall.conf
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
2022-01-21 13:13:41 +00:00
|
|
|
|
|
|
|
grub-mkimage \
|
|
|
|
--config="$srcdir/grub_early.cfg" \
|
|
|
|
--prefix="" \
|
|
|
|
--output="bootaa64.efi" \
|
|
|
|
--format="arm64-efi" \
|
|
|
|
--compression="xz" \
|
|
|
|
\
|
|
|
|
all_video \
|
|
|
|
cat \
|
|
|
|
configfile \
|
|
|
|
disk \
|
|
|
|
echo \
|
|
|
|
efi_gop \
|
|
|
|
fat \
|
|
|
|
gzio \
|
|
|
|
help \
|
|
|
|
iso9660 \
|
|
|
|
linux \
|
|
|
|
ls \
|
|
|
|
normal \
|
|
|
|
part_gpt \
|
|
|
|
part_msdos \
|
|
|
|
search \
|
|
|
|
search_label \
|
|
|
|
test \
|
|
|
|
true
|
2021-10-05 12:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2022-01-21 13:13:41 +00:00
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir"/boot/grub \
|
|
|
|
"$srcdir"/grub.cfg
|
|
|
|
install -Dm644 -t "$pkgdir"/boot/EFI/Boot \
|
|
|
|
"$srcdir"/bootaa64.efi
|
2021-12-12 14:28:31 +00:00
|
|
|
|
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card \
|
|
|
|
"$srcdir"/PinePhonePro.conf \
|
|
|
|
"$srcdir"/HiFi.conf \
|
|
|
|
"$srcdir"/VoiceCall.conf
|
2021-10-05 12:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi, Bluetooth and video-out firmware"
|
|
|
|
depends="
|
|
|
|
firmware-pine64-pinebookpro
|
|
|
|
linux-firmware-rtlwifi
|
|
|
|
linux-firmware-rtl_bt
|
|
|
|
firmware-pine64-rtl8723bt
|
|
|
|
firmware-pine64-ov5640
|
|
|
|
"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-01-21 13:13:41 +00:00
|
|
|
18af46496eba898e7642ffed02d2d8dd4c9652c304eb2730fd042ca9d71da570b9c51446d9055ced1ea47e94a00c2590cdf9115f3a6d7219d457ce2d5eb8fc69 deviceinfo
|
|
|
|
e69752fc7f2b8552ba2e1e6da5b6bec0e284c7f14bc09576c862faeb5154a44522535a919ae5aca33a22fd14557e802595a7c96c59b9362c5ac5b991a8eac5fc grub.cfg
|
|
|
|
0f9357d4eea089628fbceb1e3e96d21a3f4329aeb6743158a6f877f967ef274506404eba949d5f01b7e1adea149f9a3aef992a5e8cd4181f93ab00909b1c5ecd grub_early.cfg
|
2021-12-12 14:28:31 +00:00
|
|
|
ac22c856af81d00aa6a349b68cf9e8645bf38277d9aafd07f1f46f5f932f48d37b9dfdcc8772fff4027f914c9b4c3b4a11c51bd9f2aa1abbc53abd3f54adb818 HiFi.conf
|
|
|
|
c57dae885c9a5f366f18b38a3ce3e21627baaf014724537eced9e8d6ac3ca61ade42b9fcf84db350b1e64742760e8cf4fe10639d41052387927238e85c3c4769 PinePhonePro.conf
|
|
|
|
e978876bda8874e30df75c80554ccbbc0dd202c852ecae0b5c1a0d845402a630962afc2691c6f7d5f478fb0e4be045af4ef62ad0b1ce77f62fe2f155dc0a9cff VoiceCall.conf
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|