diff --git a/platformio.ini b/platformio.ini index fdae4b94..72f76710 100644 --- a/platformio.ini +++ b/platformio.ini @@ -127,9 +127,12 @@ extends = arduino_base ; CUSTOM (TeTeHacko): exact platform and toolchain (upstream: `nordicnrf52`, ; `^1.140201.0`). Unpinned, every build took the newest: on 30. 11. 2026 the ; public release went to platform 11.1.0, released that same day, while the -; bench and the masts built on 10.12.0. Libraries: platformio.lock -; (tools/pio_lock.py). Renovate moves all of them (.gitea/renovate.json). -platform = platformio/nordicnrf52@10.12.0 +; bench and the masts built on 10.12.0. Latest, but by a commit: Renovate +; moves these two (.github/renovate.json), its PR builds every public image. +; (10.12.0 cannot link RAK_4631: Bosch BSEC's precompiled soft-float archive +; against hard-float code.) Libraries: platformio.lock (tools/pio_lock.py, +; moved by tth-lock-refresh). +platform = platformio/nordicnrf52@11.1.0 platform_packages = framework-arduinoadafruitnrf52 @ ${nrf52_fw.pkg} platformio/toolchain-gccarmnoneeabi@1.140201.0 diff --git a/tools/pio_lock.py b/tools/pio_lock.py index 1aaca26b..50afbfc3 100644 --- a/tools/pio_lock.py +++ b/tools/pio_lock.py @@ -54,6 +54,11 @@ HEADER = """\ """ +# PlatformIO puts the test framework into an env's libdeps (`pio pkg install` +# in CI did, a local one did not); it is never linked into the firmware. +IGNORED = {"throwtheswitch/Unity"} + + def libdeps_dir() -> Path: d = os.environ.get("PLATFORMIO_LIBDEPS_DIR") return Path(d) if d else REPO / ".pio" / "libdeps" @@ -119,6 +124,8 @@ def installed(env: str) -> list[str]: if spec.get("uri"): lines.append(spec["uri"]) elif spec.get("owner"): + if f"{spec['owner']}/{spec['name']}" in IGNORED: + continue lines.append(f"{spec['owner']}/{spec['name']}@{meta['version']}") else: raise SystemExit(f"{pm}: neither a registry owner nor a URI")