Commit Graph
33 Commits
Author SHA1 Message Date
Aster Boese 6d6d684bfe treewide: move q6voiced.conf to new path
Moves configs to the new path as defined by q6voiced version 0.3.0.

[ci:skip-grep]

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8970>
2026-07-24 19:44:01 +00:00
Aster Boese 60545412b2 treewide: device/community: remove usage of nonfree-firmware subpackages
pkgname-nonfree-firmware packages have been not allowed for years, but nearly
every device package just didn't fix that. With the new grep check, these need
to be fixed no matter what.

The changing of `replaces=` to include the full name of the package and not
the pkgname variable is to work around limitations of the grep ci check, as it
cannot differentiate between a nonfree-firmware subpackage and a string
stating its replacement. A workaround for that is to use the whole package
name, as the grep check checks for the pkgname variable.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8958>
2026-07-19 20:36:39 +00:00
Alistair Francis 7fb880aca6 device-google-sargo: Reload I2C drivers on error
It's common for the I2C touch driver on the Google Pixel 3a to crash
resulting in touch input not working, see [1].

This patch adds a systemd service that can be used to monitor for errors
and reload the drivers on error, the original idea came from [2].

The actual script is not systemd specific, so that the script can be
ported to openrc if required.

1: https://gitlab.com/sdm670-mainline/linux/-/work_items/6
2: https://gitlab.com/sdm670-mainline/linux/-/work_items/6#note_3104050714

Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8409>
2026-05-26 16:47:31 +00:00
Dylan Van Assche fb118d6d8b community/device-google-sargo: only keep fastrpc link udev rule
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7788>
2026-04-06 16:29:06 +00:00
Luca Weiss 67bc6ac0d3 device/*: Drop redundant deviceinfo variable assignments
[Warning!] deviceinfo_append_dtb: Property is set to its default value (false) and can be removed.
[Warning!] deviceinfo_append_dtb_lts: Property is set to its default value (false) and can be removed.
[Warning!] deviceinfo_append_dtb_exynos4: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_append_dtb\(_.*\)\?="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_external_storage: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_external_storage="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_disable_dhcpd: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_disable_dhcpd="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_bootimg_qcdt: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_bootimg_qcdt="false"/d' device/*/*/deviceinfo

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8035>
2026-02-18 22:04:40 +01:00
Clayton Craft 5dea9f8b16 device-google-sargo: add support for u-boot
This allows booting pmOS from u-boot on existing and new installs.

Setting the boot partition to vfat isn't strictly necessary (ext2 seems
to work OK), but IIUC either FAT is in the EFI spec or it's what
everyone else uses. We made a similar patch to the OP6/OP6T previously.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7961>
2026-02-09 03:37:59 +00:00
Achill Gilgenast ecd710af96 */*: move to maintainer= variables
* Also move right above pkgname=
* Move Co-Maintainer lines above maintainer=
* Remove empty lines in the header

pmbootstrap 3.7+ & abuild supports maintainer= variables.

See also https://gitlab.alpinelinux.org/alpine/tsc/-/issues/88

[ci:skip-build]: no pkgver/pkgrel changes
[ci:ignore-count]: intended
[ci:skip-vercheck]: no functional changes
[skip ci]: false positives

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7723>
2026-01-12 17:01:35 +01:00
Clayton Craft b9e6ca1211 device-google-sargo: remove modem-gnss from openrc post-install
This was moved to soc-qcom in 8d356e5056

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7655>
2025-12-27 10:46:05 -08:00
Clayton Craft 8d356e5056 community/soc-qcom: move modem-gnss service from google-sargo
Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7636>
2025-12-25 23:19:41 +00:00
Pablo Correa Gómez 94e59d71e4 device-google-sargo: install hexagonrpcd script under /usr
This is the right path for distro-provided configs

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7303
2025-12-06 13:31:48 -08:00
Luca Weiss 8624b297e6 device/*: Resolve deviceinfo errors highlighted by dint
A large scripted cleanup to fix the errors, each with the sed command
used.

**Renamed variables**

[Error!!!] deviceinfo_gpu_accelerated: gpu_accelerated was renamed to drm: More accurately describes its function; see pmaports#1481 for the reasoning.
sed -i 's/^deviceinfo_gpu_accelerated=/deviceinfo_drm=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_heimdall_partition_system: flash_heimdall_partition_system was renamed to flash_heimdall_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_heimdall_partition_system=/deviceinfo_flash_heimdall_partition_rootfs=/' device/*/*/deviceinfo

[Error!!!] deviceinfo_flash_fastboot_partition_system: flash_fastboot_partition_system was renamed to flash_fastboot_partition_rootfs: Renamed to avoid confusion
sed -i 's/^deviceinfo_flash_fastboot_partition_system=/deviceinfo_flash_fastboot_partition_rootfs=/' device/*/*/deviceinfo

**Obsolete variables**

[Error!!!] deviceinfo_keyboard: This property is obsolete: Programs should automatically detect if the device currently has a keyboard or not (often it can be hotplugged anyway).
sed -i '/^deviceinfo_keyboard=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_framebuffer_landscape: This property is obsolete: Removed by the switch to pbsplash with no apparent replacement
sed -i '/^deviceinfo_framebuffer_landscape=/d' device/*/*/deviceinfo

[Error!!!] deviceinfo_mesa_driver: This property is obsolete: This was used by osk-sdl, which has been replaced by unl0kr.
sed -i '/^deviceinfo_mesa_driver=/d' device/*/*/deviceinfo

**Default values**

[Warning!] deviceinfo_flash_method: Property is set to its default value ("none") and can be removed.
sed -i '/^deviceinfo_flash_method="none"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_drm: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_drm="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_bootimg_dtb_second: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_bootimg_dtb_second="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_bootimg: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_bootimg="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_rootfs: Property is set to its default value ("SYSTEM") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_rootfs="SYSTEM"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_kernel: Property is set to its default value ("KERNEL") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_kernel="KERNEL"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_heimdall_partition_initfs: Property is set to its default value ("RECOVERY") and can be removed.
sed -i '/^deviceinfo_flash_heimdall_partition_initfs="RECOVERY"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_offset_base: Property is set to its default value ("0x10000000") and can be removed.
sed -i '/^deviceinfo_flash_offset_base="0x10000000"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_kernel_on_update: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_flash_kernel_on_update="false"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_rootfs: Property is set to its default value ("userdata") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_rootfs="userdata"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_flash_fastboot_partition_kernel: Property is set to its default value ("boot") and can be removed.
sed -i '/^deviceinfo_flash_fastboot_partition_kernel="boot"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_partition_type: Property is set to its default value ("gpt") and can be removed.
sed -i '/^deviceinfo_partition_type="gpt"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_sd_embed_firmware_step_size: Property is set to its default value (1024) and can be removed.
sed -i '/^deviceinfo_sd_embed_firmware_step_size="1024"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_boot_part_start: Property is set to its default value (2048) and can be removed.
sed -i '/^deviceinfo_boot_part_start="2048"/d' device/*/*/deviceinfo

[Warning!] deviceinfo_generate_legacy_uboot_initfs: Property is set to its default value (false) and can be removed.
sed -i '/^deviceinfo_generate_legacy_uboot_initfs="false"/d' device/*/*/deviceinfo

All were bumped using "pmbootstrap pkgver_bump".

[ci:ignore-count]

[ci:skip-build]: already built successfully in CI

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7403>
2025-12-05 16:57:35 +00:00
Stefan Hansson a324a84519 device: move local install to global install for some devices
This doesn't cover all devices, but I intend to do more of them in the
future.

See https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/4032

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>

[ci:ignore-count]: Intentionally changes a lot of packages.

Signed-off-by: Stefan Hansson <newbyte@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7384>
2025-11-26 12:13:25 +00:00
Jens Reidel f867644592 */*: make all users of soc-qcom depend on soc-qcom-pd-mapper
This is a rather conservative change to preserve previous behaviour on
current users of soc-qcom.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>

[ci:ignore-count]
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6905
2025-08-16 13:38:04 +02:00
Richard Acayan 24d161508f device-google-sargo: install modem-gnss in subpackage for real
Fixes: ba2403462a ("google-sargo: move openrc gnss service to openrc subpackage")
Closes: https://builds.sr.ht/~postmarketos/job/1543528#task-img
2025-08-03 22:05:34 -04:00
Richard Acayan ba2403462a google-sargo: move openrc gnss service to openrc subpackage
On a new installation, the OpenRC subpackage can be installed before the
main package. The modem-gnss service is already needed when the
subpackage is installed. Move the service file to the subpackage so new
installations don't error out.

    ( 66/750) Installing device-google-sargo-openrc (13-r0)
    device-google-sargo-openrc-13-r0.post-install: Executing script...
    device-google-sargo-openrc-13-r0.post-install:  * service hexagonrpcd-adsp-sensorspd added to runlevel sysinit
    device-google-sargo-openrc-13-r0.post-install:  * rc-update: service `modem-gnss' does not exist
    ERROR: device-google-sargo-openrc-13-r0.post-install: exited with error 1
    ...
    (199/750) Installing device-google-sargo (13-r0)
    ...
    1 error; 1335 MiB in 766 packages

Link: https://builds.sr.ht/~postmarketos/job/1542762#task-img

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6866
2025-08-01 23:43:37 -04:00
Alistair Francis 42dd2e07d2 device-google-sargo: Enable GNSS automatically
Following the steps described here:
https://gitlab.com/sdm670-mainline/linux/-/issues/4#note_2448131089
we can enable GNSS automatically at boot.

Resolves: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/2788
Signed-off-by: Alistair Francis <alistair@alistair23.me>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6588
2025-07-28 10:39:12 +02:00
Bart Ribbers 1b091bd281 google-sargo: install config for plasma-camera
The google-sargo is not quick enough to handle the default plasma-camera
settings. The resolution is a setting too high so this sets it back to
720p which works well enough.
The codec is set to default but I'm adding it to make sure it's
something we know works when the upstream default changes.

The app still says the codec can't keep up but we can't get much better
out of it currently.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6791
2025-07-26 18:17:53 -04:00
Luca Weiss 6a2c3f0818 treewide: remove downstream feedbackd vibra rules
All of them are now included upstream with feedbackd, so we can remove
them here.

https://gitlab.freedesktop.org/agx/feedbackd/-/merge_requests/182

[ci:ignore-count]

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6695
2025-06-28 11:16:55 +02:00
Clayton Craft 469374de6d device/*: explicitly depend on openrc if install scripts call rc-update
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6476
2025-05-06 10:48:44 +02:00
Richard Acayan fc122c6fe1 device-google-sargo: remove kernel modules for display (MR 6241)
These kernel modules are now built-in.

[ci:skip-build]: already built successfully in CI
2025-02-28 20:40:09 -08:00
Clayton Craft 9fd9e45cfd device-google-sargo: depend on soc-qcom (MR 6189) 2025-02-19 08:13:23 -08:00
Pablo Correa Gómez 701ca385d3 device-google-sargo: depend on unl0kr-fbforcerefresh (MR 6185)
Instead of packaging config file manually
2025-02-17 08:48:41 +01:00
Robert Mader 105d4b3911 device-google-sargo: install hexagonrpcd conf to new location (MR 6217)
This was missed in
https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6188

[ci:skip-build]: already built successfully in CI
2025-02-14 12:26:29 +01:00
Robert MaderandClayton Craft 338d7d66f8 device-google-sargo: Fix hexagonrpcd on systemd (MR 6147)
By sharing the config file and making the systemd unit files match the
openRC ones as close as possible.

Co-authored-by: Clayton Craft <clayton@craftyguy.net>
2025-02-07 11:34:59 -08:00
Richard Acayan 33ff836196 google-sargo: install q6voiced for any init system (MR 6107)
The q6voiced environment file was moved back into the nonfree-firmware
subpackages in !6015, but google-sargo was forgotten. Add it for the
Pixel 3a.
2025-02-04 07:23:53 -08:00
Clayton Craft c7ddc65a67 device-google-sargo: remove nonfree_firmware subpkg (MR 6107)
We decided last year to always install the pkgs this subpkg pulled in,
and removing it simplifies the apkbuild.
2025-02-04 07:23:53 -08:00
Luca Weiss 4fff56942d device/*: remove unnecessary mtk_mkimage="false" values (MR 5995)
Like quite a few other values being set to false, this one has a default
of false so can be safely removed.
2025-01-07 10:58:40 +01:00
Richard Acayan 7ebdc89a44 google-sargo: replace hexagonrpcd config in firmware openrc subpackage (MR 5783)
Fixes: b7a426aedd ("google-sargo: move openrc scripts to subpackage (MR 5688)")

[ci:skip-build]: already built successfully in CI
2024-11-11 17:55:14 -08:00
Oliver Smith cda9735b36 device-google-sargo: move replaces to -openrc (MR 5771)
[ci:skip-build]: already built successfully in CI
2024-11-11 16:26:58 -08:00
Aster Boese b7a426aedd google-sargo: move openrc scripts to subpackage (MR 5688) 2024-11-04 10:52:34 -08:00
Clayton Craft c24f7d2033 device-google-sargo: don't depend on default-camera (MR 5644)
Use the UI-recommended camera app
2024-09-28 13:48:46 +02:00
Robert Mader e3dbfc1682 google-sargo: add snapshot as default camera app (MR 5511) 2024-08-21 19:13:55 +02:00
Robert Mader 434e012950 device/google-sargo: Move from testing to community (MR 5492)
And add Richard as codeowner.

Also move linux-postmarketos-qcom-sdm670 and alsa-ucm-conf-qcom-sdm670
which otherwise are used by google-bonito, which remains in testing.
For that, enable the kernel config check and update the config
accordingly.

[ci:skip-vercheck]
2024-08-20 20:31:57 +09:00