Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions packages/pd-mapper/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: 0BSD
# Omarchy Mobile build of pd-mapper 1.1, derived from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pd-mapper&id=5059d5e050f737b282c696198bfd7de6591d4e0e.
# Upstream source: https://github.com/linux-msm/pd-mapper/tree/v1.1 (5ecd2fe926aca7abfe40724177f63b942cff3947).
# Maintainer: Super Tecno Gym <banana@grrlz.net>

pkgname="pd-mapper"
pkgdesc="Qualcomm service registry and protection domain mapper"
pkgver=1.1
pkgrel=1
arch=(aarch64 x86_64)
url="https://github.com/linux-msm/pd-mapper"
license=("BSD-3-Clause")
depends=(qrtr xz)
makedepends=(qrtr)
_srcname="${pkgname}-${pkgver}"
source=(
"${_srcname}.tar.gz::https://github.com/linux-msm/pd-mapper/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=('7654a7fb8b70b0c7670f98ad9313649abc48eabcef84dad086ed01408fd538a2')

build() {
cd "$_srcname"

make prefix=/usr
}

package() {
cd "$_srcname"

make prefix=/usr DESTDIR="$pkgdir/" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
6 changes: 6 additions & 0 deletions packages/pd-mapper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- SPDX-License-Identifier: MIT -->
# pd-mapper

Publishes Qualcomm service registry and protection-domain mapping data for
clients that request it. Dipper is the first planned consumer; its device
package decides whether to enable the service.
10 changes: 10 additions & 0 deletions packages/pd-mapper/test/all
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
bash -n PKGBUILD
grep -q 'pkgdesc="Qualcomm service registry and protection domain mapper"' PKGBUILD
grep -q '^depends=(qrtr xz)$' PKGBUILD
grep -q 'linux-msm/pd-mapper/tree/v1.1' PKGBUILD
! grep -Eq '^(conflicts|groups)=' PKGBUILD
echo 'ok - pd-mapper description, dependencies and provenance'
32 changes: 32 additions & 0 deletions packages/qrtr/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: 0BSD
# Omarchy Mobile build of qrtr 1.2, derived from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qrtr&id=b81053e1efa0797acc648f6f6286a48529ab95c3.
# Upstream source: https://github.com/linux-msm/qrtr/tree/v1.2 (b51ffaf22707b6000ecfb894c5b750f3bb7843b2).
# Maintainer: Super Tecno Gym <banana@grrlz.net>
# Contributor: Sam Day <me@samcday.com>

pkgname="qrtr"
pkgdesc="Qualcomm QRTR userspace library and tools"
pkgver=1.2
pkgrel=1
arch=(aarch64 x86_64)
url="https://github.com/linux-msm/qrtr"
license=("BSD-3-Clause")
_srcname="${pkgname}-${pkgver}"
source=("${_srcname}.tar.gz::https://github.com/linux-msm/qrtr/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7a82bf80246fe71287b13c66c0466208822e8337fcd4aaf302eee6c5fcb48a52')
makedepends=(meson)

build() {
cd "$_srcname"

mkdir -p build
meson setup build --prefix=/usr -Dqrtr-ns=disabled
meson compile -C build
}

package() {
cd "$_srcname"

meson install -C build --destdir "$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
7 changes: 7 additions & 0 deletions packages/qrtr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- SPDX-License-Identifier: MIT -->
# qrtr

Provides the userspace QRTR library and tools used by Qualcomm remote
processors. The kernel supplies QRTR name service, so this build disables
`qrtr-ns`. Dipper is the first planned consumer; its device package decides
whether to enable any related service.
9 changes: 9 additions & 0 deletions packages/qrtr/test/all
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
bash -n PKGBUILD
grep -q -- '-Dqrtr-ns=disabled' PKGBUILD
grep -q 'linux-msm/qrtr/tree/v1.2' PKGBUILD
! grep -Eq '^(conflicts|groups)=' PKGBUILD
echo 'ok - qrtr build configuration and provenance'
38 changes: 38 additions & 0 deletions packages/rmtfs/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-License-Identifier: 0BSD
# Omarchy Mobile build of rmtfs 1.2, derived from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=rmtfs&id=bc730f5b88a99df11393ed2a9269eb1b5bac992b.
# Upstream source: https://github.com/linux-msm/rmtfs/tree/v1.2 (14cb1ee69f556873dc271832b77163669e1d6459).
# Maintainer: Super Tecno Gym <banana@grrlz.net>
# Contributor: Sam Day <me@samcday.com>

pkgname="rmtfs"
pkgdesc="Qualcomm Remote Filesystem Service Implementation"
pkgver=1.2
pkgrel=1
arch=(aarch64 x86_64)
url="https://github.com/linux-msm/rmtfs"
license=("BSD-3-Clause")
depends=(qrtr libudev.so)
_srcname="${pkgname}-${pkgver}"
source=(
"${_srcname}.tar.gz::https://github.com/linux-msm/rmtfs/archive/refs/tags/v${pkgver}.tar.gz"
"udev.rules"
)

sha256sums=(
'5be459af54b5ff0f1447fc265246e526d27e8250212f5f380458f9ee551bd3a3'
'b329490952eca456fcbfb3c3ca6b82850310f64fd63a6de25d4c56f091d5cea3'
)

build() {
cd "$_srcname"

make prefix=/usr
}

package() {
cd "$_srcname"

make prefix=/usr DESTDIR="$pkgdir/" install
install -Dm644 "$srcdir"/udev.rules "$pkgdir/usr/lib/udev/rules.d/65-$pkgname.rules"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
8 changes: 8 additions & 0 deletions packages/rmtfs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- SPDX-License-Identifier: MIT -->
# rmtfs

Serves modem remote-filesystem requests. Upstream's `rmtfs.service` runs with
`-r`, keeping modem writes in RAM without writing modem partitions.
`rmtfs-dir.service` instead stores that phone's NV files under
`/var/lib/rmtfs`. The Dipper device package must decide which service, if any,
to enable; Linux must never write modem partitions.
11 changes: 11 additions & 0 deletions packages/rmtfs/test/all
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
bash -n PKGBUILD
grep -q 'linux-msm/rmtfs/tree/v1.2' PKGBUILD
grep -q '^depends=(qrtr libudev.so)$' PKGBUILD
grep -q '^# SPDX-License-Identifier: 0BSD$' udev.rules
[[ $(sha256sum udev.rules | cut -d' ' -f1) == b329490952eca456fcbfb3c3ca6b82850310f64fd63a6de25d4c56f091d5cea3 ]]
! grep -Eq '^(conflicts|groups|makedepends)=' PKGBUILD
echo 'ok - rmtfs provenance, dependencies and udev rule license'
2 changes: 2 additions & 0 deletions packages/rmtfs/udev.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SPDX-License-Identifier: 0BSD
SUBSYSTEM=="uio", ATTR{name}=="rmtfs", SYMLINK+="qcom_rmtfs_uio1"
33 changes: 33 additions & 0 deletions packages/tqftpserv/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: 0BSD
# Omarchy Mobile build of tqftpserv 1.2, derived from https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tqftpserv&id=4fdc9857e66733601aa08c84952f5e376cf9633c.
# Upstream source: https://github.com/linux-msm/tqftpserv/tree/v1.2 (b6bb92d40cfffe28621abcf7bfaa6d99beea46cb).
# Maintainer: Super Tecno Gym <banana@grrlz.net>

pkgname="tqftpserv"
pkgdesc="Trivial File Transfer Protocol server over AF_QIPCRTR"
pkgver=1.2
pkgrel=1
arch=(aarch64 x86_64)
url="https://github.com/linux-msm/tqftpserv"
license=("BSD-3-Clause")
depends=(qrtr zstd)
_srcname="${pkgname}-${pkgver}"
source=("${_srcname}.tar.gz::https://github.com/linux-msm/tqftpserv/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a3850c34e48f23b7bc360d70f1e91700de2f8c60af003eda93e14182f8cf6af1')
makedepends=(qrtr meson)

build() {
cd "$_srcname"

mkdir -p build
meson setup build --prefix=/usr
meson compile -C build

}

package() {
cd "$_srcname"

meson install -C build --destdir "$pkgdir"
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
8 changes: 8 additions & 0 deletions packages/tqftpserv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- SPDX-License-Identifier: MIT -->
# tqftpserv

Serves firmware files to Qualcomm processors over TFTP on AF_QIPCRTR. Its
read-only firmware path maps into `/lib/firmware`; writable files stay under
`/var/lib/tqftpserv` for that phone. They are never copied to another phone or
committed. Dipper is the first planned consumer; its device package decides
whether to enable the service.
10 changes: 10 additions & 0 deletions packages/tqftpserv/test/all
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
set -euo pipefail
cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
bash -n PKGBUILD
grep -q '^depends=(qrtr zstd)$' PKGBUILD
[[ $(grep -c '^makedepends=' PKGBUILD) == 1 ]]
grep -q 'linux-msm/tqftpserv/tree/v1.2' PKGBUILD
! grep -Eq '^(conflicts|groups)=' PKGBUILD
echo 'ok - tqftpserv dependencies and provenance'
2 changes: 1 addition & 1 deletion tools/build-packages
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ done

# Default order: dependencies of our own packages first (check() of a later
# package can then install an earlier one from the repository being built).
ORDER=(omamobile-keyring libfprint neard omacam omamobile-apps omamobile-device-cheetah omamobile-device-felix omamobile-device-lynx omamobile-device-raven omamobile-device-panther omamobile-audio
ORDER=(qrtr pd-mapper tqftpserv rmtfs omamobile-keyring libfprint neard omacam omamobile-apps omamobile-device-cheetah omamobile-device-felix omamobile-device-lynx omamobile-device-raven omamobile-device-panther omamobile-audio
omamobile-sensors omamobile-gnss omamobile-fingerprint omamobile-mirror omamobile-omarchy omamobile-owl-widgets omamobile-shell
omamobile-modem omamobile-modem-sit omamobile-mmd omamobile-speaker-tuning omamobile-waydroid
omamobile-firstboot omamobile-boot-update linux-omamobile mesa hyprland libcamera)
Expand Down