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-06-15 15:39:35 +00:00
|
|
|
pkgver=3.0
|
2022-07-07 12:58:49 +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
|
|
|
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="
|
2022-06-15 15:39:35 +00:00
|
|
|
90-modem-eg25.rules
|
2021-10-05 12:40:08 +00:00
|
|
|
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
|
2022-06-15 15:39:35 +00:00
|
|
|
ucm/PINE64-PinePhonePro-.conf
|
2021-12-12 14:28:31 +00:00
|
|
|
ucm/VoiceCall.conf
|
2022-05-17 00:47:25 +00:00
|
|
|
ppkb.sh
|
2022-06-15 15:39:35 +00:00
|
|
|
setup-modem.sh
|
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
|
|
|
|
2022-06-15 15:39:35 +00:00
|
|
|
# Grub / bootloader
|
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
|
|
|
|
2022-06-15 15:39:35 +00:00
|
|
|
# Alsa usecase manager config
|
2021-12-12 14:28:31 +00:00
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/simple-card \
|
2022-06-15 15:39:35 +00:00
|
|
|
"$srcdir"/PINE64-PinePhonePro-.conf \
|
2021-12-12 14:28:31 +00:00
|
|
|
"$srcdir"/HiFi.conf \
|
|
|
|
"$srcdir"/VoiceCall.conf
|
2022-05-17 00:47:25 +00:00
|
|
|
|
2022-06-15 15:39:35 +00:00
|
|
|
# Modem
|
|
|
|
install -Dm755 "$srcdir"/setup-modem.sh \
|
|
|
|
"$pkgdir"/usr/bin/pinephone_setup-modem
|
|
|
|
install -Dm644 "$srcdir"/90-modem-eg25.rules -t \
|
|
|
|
"$pkgdir"/usr/lib/udev/rules.d/
|
|
|
|
|
2022-05-17 00:47:25 +00:00
|
|
|
# Keyboard config
|
|
|
|
install -Dm755 "$srcdir"/ppkb.sh "$pkgdir"/etc/profile.d/ppkb.sh
|
2021-10-05 12:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi, Bluetooth and video-out firmware"
|
|
|
|
depends="
|
|
|
|
firmware-pine64-pinebookpro
|
2022-07-07 12:58:49 +00:00
|
|
|
linux-firmware-brcm
|
2022-06-15 22:28:33 +00:00
|
|
|
linux-firmware-rockchip
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2022-06-15 15:39:35 +00:00
|
|
|
fdfa807c0de33aee3deb09ee25c37a58fa970ce71483e52f21793717cb89adeb74f251ff1a2c2086361e3e58877f8b2e5643f24186b1a537acf9c16e3419313c 90-modem-eg25.rules
|
2022-05-27 15:48:37 +00:00
|
|
|
195ea87f346e09b781d7925bcb7752a25d27f4396e1512ae15582526c062261516f918703c633730f56becb9f5c94020cc46ef6dc9d960b4a29208f03e3b70b8 deviceinfo
|
2022-01-21 13:13:41 +00:00
|
|
|
e69752fc7f2b8552ba2e1e6da5b6bec0e284c7f14bc09576c862faeb5154a44522535a919ae5aca33a22fd14557e802595a7c96c59b9362c5ac5b991a8eac5fc grub.cfg
|
|
|
|
0f9357d4eea089628fbceb1e3e96d21a3f4329aeb6743158a6f877f967ef274506404eba949d5f01b7e1adea149f9a3aef992a5e8cd4181f93ab00909b1c5ecd grub_early.cfg
|
2022-06-15 15:39:35 +00:00
|
|
|
1684514a6b814a83473e9da8855fd776cf3f31a2be1f8834c370f710428b4ee305559e275be52894d167ccd1e32f8f1c8586f8a072f19e44b46caec9f504d453 HiFi.conf
|
|
|
|
71786596492f3ec176806a2f85b974cb13ca1482cd695a2ebc480c29a86d2ff47b0386776b8d7f8ed56c1f8c48886e15f583c4bb9811240ef8b486527b4bbd89 PINE64-PinePhonePro-.conf
|
|
|
|
deb360baf914e1c917403d5e26291b9e9d27426876232ab753e4ebfe367423206f1fc01b85d195aa69fb4b51bcaed023423d0fcc0d73fa1bedd5fbe7b17f0fb5 VoiceCall.conf
|
2022-05-17 00:47:25 +00:00
|
|
|
43f67e94491791685cdbb4874bb3034b1d297bdf3d23e7405c45ba8c58de72b4fb6a9943b79f46ef7b8f4dbc4d9db254ebec8eb3453d720a5a8fad277c6a9d88 ppkb.sh
|
2022-06-15 15:39:35 +00:00
|
|
|
420ee1d7522d4d56c2909580fd6ba7580483ca5455b13eb6d22e700063ce0c1a5c6d2f5b161dfce0d777636fe9a712aa82f38a0585f2feabea3785b02bae7515 setup-modem.sh
|
2021-10-05 12:40:08 +00:00
|
|
|
"
|