All nRF52 images: platform 10.12.0, toolchain and every library pinned
Changelog: All nRF52 images build on a pinned platform (nordicnrf52 10.12.0, as the masts and the bench) and exact library versions from platformio.lock, so a build no longer depends on the day it ran Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
77f4af1bbb
commit
03d17d8863
6 files changed
+794
-55
No files matched your search
@@ -36,10 +36,26 @@
|
|||||||
#
|
#
|
||||||
# dry_run: the same build anywhere (the private repo too), no release -- the
|
# dry_run: the same build anywhere (the private repo too), no release -- the
|
||||||
# result goes up as a workflow artifact. Delta bases always come from the
|
# result goes up as a workflow artifact. Delta bases always come from the
|
||||||
# public repo's releases.
|
# public repo's releases. A pull request that changes a dependency pin
|
||||||
|
# (platformio.ini, platformio.lock -- Renovate's) runs as a dry run too, and is
|
||||||
|
# what Renovate waits for before it merges.
|
||||||
|
#
|
||||||
|
# Libraries come from platformio.lock (tools/pio_lock.py): installed before
|
||||||
|
# each env's first build, and the build fails when anything else resolved.
|
||||||
|
# Platform and toolchain are pinned in platformio.ini. With every input
|
||||||
|
# pinned, ~/.platformio and .pio/libdeps are cached under a key of the pin
|
||||||
|
# files: the same pins, the same packages.
|
||||||
name: pub-release
|
name: pub-release
|
||||||
|
|
||||||
"on":
|
"on":
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
paths:
|
||||||
|
- "platformio.ini"
|
||||||
|
- "platformio.lock"
|
||||||
|
- "variants/**/platformio.ini"
|
||||||
|
- ".github/workflows/pub-release.yml"
|
||||||
|
- ".github/fw-flags.sh"
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
@@ -99,8 +115,12 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
if: github.repository == 'tth-pub/meshcore-tth' || github.event.inputs.dry_run == 'true'
|
if: >-
|
||||||
|
github.repository == 'tth-pub/meshcore-tth' || github.event.inputs.dry_run == 'true'
|
||||||
|
|| github.event_name == 'pull_request'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DRY: ${{ github.event.inputs.dry_run == 'true' || github.event_name == 'pull_request' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -112,7 +132,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
||||||
REPLACE: ${{ github.event.inputs.replace }}
|
REPLACE: ${{ github.event.inputs.replace }}
|
||||||
DRY: ${{ github.event.inputs.dry_run }}
|
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
git fetch -q --tags
|
git fetch -q --tags
|
||||||
@@ -160,6 +179,16 @@ jobs:
|
|||||||
echo "title=$title"
|
echo "title=$title"
|
||||||
} >>"$GITHUB_OUTPUT"
|
} >>"$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
# every input is pinned (see the header): the key is the pin files
|
||||||
|
- name: PlatformIO packages and locked libraries
|
||||||
|
uses: actions/cache@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.platformio/platforms
|
||||||
|
~/.platformio/packages
|
||||||
|
.pio/libdeps
|
||||||
|
key: pub-pio-${{ hashFiles('platformio.ini', 'variants/**/platformio.ini', 'platformio.lock') }}
|
||||||
|
|
||||||
- name: Setup Build Environment
|
- name: Setup Build Environment
|
||||||
uses: ./.github/actions/setup-build-environment
|
uses: ./.github/actions/setup-build-environment
|
||||||
|
|
||||||
@@ -169,7 +198,6 @@ jobs:
|
|||||||
TAG: ${{ steps.src.outputs.tag }}
|
TAG: ${{ steps.src.outputs.tag }}
|
||||||
OTA_SIGNING_KEY: ${{ secrets.OTA_SIGNING_KEY }}
|
OTA_SIGNING_KEY: ${{ secrets.OTA_SIGNING_KEY }}
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
||||||
DRY: ${{ github.event.inputs.dry_run }}
|
|
||||||
BASES_REPO: ${{ github.event.inputs.bases_repo }}
|
BASES_REPO: ${{ github.event.inputs.bases_repo }}
|
||||||
ONLY: ${{ github.event.inputs.only }}
|
ONLY: ${{ github.event.inputs.only }}
|
||||||
run: |
|
run: |
|
||||||
@@ -289,21 +317,29 @@ jobs:
|
|||||||
if name[4:] in want and name.startswith("env:") and key not in seen:
|
if name[4:] in want and name.startswith("env:") and key not in seen:
|
||||||
seen.add(key)
|
seen.add(key)
|
||||||
print(name[4:])' "$envs")
|
print(name[4:])' "$envs")
|
||||||
install() { pio pkg install -e "${1#install-}"; }
|
# deps <env>: the locked libraries first, then whatever lib_deps still
|
||||||
|
# miss (platform, toolchain, git/file pins), then the lock check --
|
||||||
|
# once per env: the flock keeps its other flag sets waiting
|
||||||
|
locks="$RUNNER_TEMP/locks"
|
||||||
|
mkdir -p "$locks"
|
||||||
|
deps() {
|
||||||
|
flock "$locks/$1" sh -c "python3 tools/pio_lock.py install -e '$1' && pio pkg install -e '$1' -s &&
|
||||||
|
python3 tools/pio_lock.py check -e '$1'"
|
||||||
|
}
|
||||||
|
install() { deps "${1#install-}"; }
|
||||||
t0=$SECONDS
|
t0=$SECONDS
|
||||||
for env in "${first[@]}"; do par install "install-$env"; done
|
for env in "${first[@]}"; do par install "install-$env"; done
|
||||||
report "install" "${first[@]/#/install-}"
|
report "install" "${first[@]/#/install-}"
|
||||||
echo "installed ${#first[@]} platforms in $((SECONDS - t0)) s"
|
echo "installed ${#first[@]} platforms in $((SECONDS - t0)) s"
|
||||||
# 2) compile, each artifact into its own build dir (one env comes in
|
# 2) compile, each artifact into its own build dir (one env comes in
|
||||||
# up to four flag sets). An env's libraries come with its first
|
# up to four flag sets). An env's libraries come with its first
|
||||||
# build, into its own .pio/libdeps/<env>, while other envs compile:
|
# build (deps), into its own .pio/libdeps/<env>, while other envs
|
||||||
# the lock keeps its other flag sets from installing them at once.
|
# compile; the check fails the build when anything is not exactly
|
||||||
locks="$RUNNER_TEMP/locks"
|
# platformio.lock.
|
||||||
mkdir -p "$locks"
|
|
||||||
compile() {
|
compile() {
|
||||||
local env flags suffix variant
|
local env flags suffix variant
|
||||||
IFS='|' read -r env flags suffix variant <<<"${spec[$1]}"
|
IFS='|' read -r env flags suffix variant <<<"${spec[$1]}"
|
||||||
flock "$locks/$env" pio pkg install -e "$env" || return 1
|
deps "$env" || return 1
|
||||||
export FW_OTA_VARIANT=$variant PLATFORMIO_BUILD_DIR="$bdir/$1" PLATFORMIO_BUILD_FLAGS="$PUB_FLAGS $flags"
|
export FW_OTA_VARIANT=$variant PLATFORMIO_BUILD_DIR="$bdir/$1" PLATFORMIO_BUILD_FLAGS="$PUB_FLAGS $flags"
|
||||||
pio run -j "$PIO_JOBS" -e "$env" || return 1
|
pio run -j "$PIO_JOBS" -e "$env" || return 1
|
||||||
[ -f "$bdir/$1/$env/firmware.zip" ] || pio run -j "$PIO_JOBS" -t mergebin -e "$env" # ESP32
|
[ -f "$bdir/$1/$env/firmware.zip" ] || pio run -j "$PIO_JOBS" -t mergebin -e "$env" # ESP32
|
||||||
@@ -351,14 +387,14 @@ jobs:
|
|||||||
echo "version=${version:-tth-$sha}" >>"$GITHUB_OUTPUT"
|
echo "version=${version:-tth-$sha}" >>"$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Dry run artifact
|
- name: Dry run artifact
|
||||||
if: github.event.inputs.dry_run == 'true'
|
if: env.DRY == 'true'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pub-release-dry-run
|
name: pub-release-dry-run
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.event.inputs.dry_run != 'true'
|
if: env.DRY != 'true'
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
||||||
SHA: ${{ steps.src.outputs.sha }}
|
SHA: ${{ steps.src.outputs.sha }}
|
||||||
|
|||||||
+7
-2
@@ -124,10 +124,15 @@ pkg = https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301665b40959682
|
|||||||
|
|
||||||
[nrf52_base]
|
[nrf52_base]
|
||||||
extends = arduino_base
|
extends = arduino_base
|
||||||
platform = nordicnrf52
|
; 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
|
||||||
platform_packages =
|
platform_packages =
|
||||||
framework-arduinoadafruitnrf52 @ ${nrf52_fw.pkg}
|
framework-arduinoadafruitnrf52 @ ${nrf52_fw.pkg}
|
||||||
platformio/toolchain-gccarmnoneeabi@^1.140201.0
|
platformio/toolchain-gccarmnoneeabi@1.140201.0
|
||||||
; Stamping verze pro KAŽDÝ nRF52 env, ne po jednom: 19. 8. 2026 se ukázalo, že
|
; Stamping verze pro KAŽDÝ nRF52 env, ne po jednom: 19. 8. 2026 se ukázalo, že
|
||||||
; z 585 envů v repu stampovaly DVA, takže `ver` na lavičních deskách hlásil
|
; z 585 envů v repu stampovaly DVA, takže `ver` na lavičních deskách hlásil
|
||||||
; literál z upstream headeru a z uzlu nešlo poznat, který build na něm je.
|
; literál z upstream headeru a z uzlu nešlo poznat, který build na něm je.
|
||||||
|
|||||||
+450
@@ -0,0 +1,450 @@
|
|||||||
|
; Library lock for PlatformIO (tools/pio_lock.py; PlatformIO has no lockfile).
|
||||||
|
; Per env, every library in .pio/libdeps/<env>, transitive ones included:
|
||||||
|
; `owner/name@version` from the registry, `<remote>#<commit>` of a git library
|
||||||
|
; (pinned in platformio.ini, only checked here) or a file: URI.
|
||||||
|
; CI installs these before building and fails when a build resolved anything
|
||||||
|
; else. Renovate bumps the registry lines; tools/pio_lock.py freeze rewrites
|
||||||
|
; an env from what it resolved.
|
||||||
|
|
||||||
|
[Heltec_t114_companion_radio_ble]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Heltec_t114_repeater]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Heltec_v3_companion_radio_ble]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Heltec_v3_repeater]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bakercp/CRC32@2.0.1
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
esp32async/AsyncTCP@3.6.1
|
||||||
|
esp32async/ESPAsyncWebServer@3.10.3
|
||||||
|
file://arch/esp32/AsyncElegantOTA
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[RAK_4631_companion_radio_ble]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
boschsensortec/BSEC Software Library@1.8.1492
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
sparkfun/SparkFun u-blox GNSS Arduino Library@2.2.29
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[RAK_4631_repeater]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
boschsensortec/BSEC Software Library@1.8.1492
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
sparkfun/SparkFun u-blox GNSS Arduino Library@2.2.29
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[RAK_4631_room_server]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
boschsensortec/BSEC Software Library@1.8.1492
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
sparkfun/SparkFun u-blox GNSS Arduino Library@2.2.29
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[SenseCap_Solar_companion_radio_ble]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[SenseCap_Solar_repeater]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@1.12.6
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.3
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.6
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.5
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.17
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/jgromes/RadioLib.git#6d8934836678d8894e3d556550475b37dce3e2b6
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Xiao_nrf52_companion_radio_ble]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Xiao_nrf52_repeater]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Xiao_nrf52_room_server]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[Xiao_nrf52_sensor]
|
||||||
|
adafruit/Adafruit AHTX0@2.0.6
|
||||||
|
adafruit/Adafruit BME280 Library@2.3.0
|
||||||
|
adafruit/Adafruit BME680 Library@2.0.6
|
||||||
|
adafruit/Adafruit BMP085 Library@1.2.4
|
||||||
|
adafruit/Adafruit BMP280 Library@2.6.8
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/Adafruit GFX Library@2.0.0
|
||||||
|
adafruit/Adafruit INA219@1.2.3
|
||||||
|
adafruit/Adafruit INA260 Library@1.5.4
|
||||||
|
adafruit/Adafruit INA3221 Library@1.0.1
|
||||||
|
adafruit/Adafruit MLX90614 Library@2.1.7
|
||||||
|
adafruit/Adafruit NeoPixel@1.15.6
|
||||||
|
adafruit/Adafruit SH110X@2.1.15
|
||||||
|
adafruit/Adafruit SHTC3 Library@1.0.2
|
||||||
|
adafruit/Adafruit SSD1306@2.5.18
|
||||||
|
adafruit/Adafruit Unified Sensor@1.1.15
|
||||||
|
adafruit/Adafruit_VL53L0X@1.2.5
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
arduino-libraries/Arduino_LPS22HB@1.0.3
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
robtillaart/INA226@0.6.6
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
sensirion/Sensirion Core@0.7.3
|
||||||
|
sensirion/Sensirion I2C SHT4x@1.1.2
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[t1000e_companion_radio_ble]
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
densaugeo/base64@1.4.0
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
end2endzone/NonBlockingRTTTL@1.4.0
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
|
|
||||||
|
[t1000e_repeater]
|
||||||
|
adafruit/Adafruit BusIO@1.17.4
|
||||||
|
adafruit/RTClib@2.1.4
|
||||||
|
bblanchon/ArduinoJson@7.4.3
|
||||||
|
electroniccats/CayenneLPP@1.6.1
|
||||||
|
https://github.com/oltaco/CustomLFS#b3928ea2d0f46c2533e901c43f471a081c503a3c
|
||||||
|
jgromes/RadioLib@7.8.1
|
||||||
|
melopero/Melopero RV3028@1.2.0
|
||||||
|
rweather/Crypto@0.4.0
|
||||||
|
stevemarple/MicroNMEA@2.0.6
|
||||||
@@ -44,6 +44,7 @@ a different board.
|
|||||||
| `ble_flash_node.sh` | BLE OTA of a node out of reach of a cable, with the checks around it (silence, services, version) |
|
| `ble_flash_node.sh` | BLE OTA of a node out of reach of a cable, with the checks around it (silence, services, version) |
|
||||||
| `ble_dfu.py` | legacy Nordic DFU over BLE for the Adafruit nRF52 bootloader (buttonless, both phases) |
|
| `ble_dfu.py` | legacy Nordic DFU over BLE for the Adafruit nRF52 bootloader (buttonless, both phases) |
|
||||||
| `build_version.py` | PlatformIO pre-script: real version and build time for `ver` |
|
| `build_version.py` | PlatformIO pre-script: real version and build time for `ver` |
|
||||||
|
| `pio_lock.py` | library lock for PlatformIO (`platformio.lock`): `install` the locked versions before a build, `check` that nothing else resolved, `freeze` a resolution, `moved` against git |
|
||||||
| `bl_sign_pkg.py` | DFU zip for a board with the signed (`SIGNED_FW`) Adafruit bootloader: `adafruit-nrfutil dfu genpkg --key-file` with its two Python 3 bugs on that path fixed |
|
| `bl_sign_pkg.py` | DFU zip for a board with the signed (`SIGNED_FW`) Adafruit bootloader: `adafruit-nrfutil dfu genpkg --key-file` with its two Python 3 bugs on that path fixed |
|
||||||
| `bl_verify_pkg.py` | checks a DFU zip the way the signed bootloader will (device type, ECDSA P-256 over the init packet, image length and hash) |
|
| `bl_verify_pkg.py` | checks a DFU zip the way the signed bootloader will (device type, ECDSA P-256 over the init packet, image length and hash) |
|
||||||
| `bl_allowed_key` | the public key the signed bootloader carries (`SIGNED_FW_QX`/`QY`) |
|
| `bl_allowed_key` | the public key the signed bootloader carries (`SIGNED_FW_QX`/`QY`) |
|
||||||
|
|||||||
@@ -0,0 +1,252 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
"""Library lock file for PlatformIO, which has none (platformio.lock).
|
||||||
|
|
||||||
|
Upstream's lib_deps are ranges (`^2.1.3`) and every library pulls in its own
|
||||||
|
dependencies, so a build takes whatever is newest that day: the same commit
|
||||||
|
built twice can differ. platformio.lock records, per env, the exact version of
|
||||||
|
every library in .pio/libdeps/<env> (direct and transitive). The platform and
|
||||||
|
the toolchain are pinned in platformio.ini itself.
|
||||||
|
|
||||||
|
pio_lock.py install -e ENV [-e ENV ...]
|
||||||
|
install the locked registry versions into .pio/libdeps/<env> (no
|
||||||
|
dependencies, nothing saved to platformio.ini). Run it before `pio
|
||||||
|
run`: PlatformIO keeps an installed library that satisfies lib_deps.
|
||||||
|
git and file libraries are pinned in platformio.ini and only checked.
|
||||||
|
pio_lock.py check -e ENV [-e ENV ...]
|
||||||
|
exit 1 when .pio/libdeps/<env> is not exactly the lock: a library
|
||||||
|
missing, extra, or of another version (run it after the build).
|
||||||
|
pio_lock.py freeze -e ENV [-e ENV ...]
|
||||||
|
write what .pio/libdeps/<env> holds into the lock (replaces those
|
||||||
|
envs' sections). After `pio pkg install -e ENV` in a clean libdeps
|
||||||
|
dir this locks today's resolution.
|
||||||
|
pio_lock.py envs
|
||||||
|
the envs the lock has a section for, one per line.
|
||||||
|
pio_lock.py moved [--base REV]
|
||||||
|
what changed against the lock in git REV (default HEAD), one
|
||||||
|
`name old -> new` line per registry library (any env).
|
||||||
|
|
||||||
|
Lock format: `[env]` sections; one library per line, `owner/name@version`
|
||||||
|
from the registry, `<remote>#<commit>` of a git library, or a file: URI.
|
||||||
|
--lock FILE (default: platformio.lock next to platformio.ini);
|
||||||
|
PLATFORMIO_LIBDEPS_DIR is honoured as by PlatformIO.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
REPO = Path(__file__).resolve().parent.parent
|
||||||
|
HEADER = """\
|
||||||
|
; Library lock for PlatformIO (tools/pio_lock.py; PlatformIO has no lockfile).
|
||||||
|
; Per env, every library in .pio/libdeps/<env>, transitive ones included:
|
||||||
|
; `owner/name@version` from the registry, `<remote>#<commit>` of a git library
|
||||||
|
; (pinned in platformio.ini, only checked here) or a file: URI.
|
||||||
|
; CI installs these before building and fails when a build resolved anything
|
||||||
|
; else. Renovate bumps the registry lines; tools/pio_lock.py freeze rewrites
|
||||||
|
; an env from what it resolved.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def libdeps_dir() -> Path:
|
||||||
|
d = os.environ.get("PLATFORMIO_LIBDEPS_DIR")
|
||||||
|
return Path(d) if d else REPO / ".pio" / "libdeps"
|
||||||
|
|
||||||
|
|
||||||
|
def read_lock(path: Path) -> dict[str, list[str]]:
|
||||||
|
envs: dict[str, list[str]] = {}
|
||||||
|
cur: list[str] | None = None
|
||||||
|
if not path.exists():
|
||||||
|
return envs
|
||||||
|
for raw in path.read_text().splitlines():
|
||||||
|
line = raw.strip()
|
||||||
|
if not line or line.startswith((";", "#")):
|
||||||
|
continue
|
||||||
|
if line.startswith("[") and line.endswith("]"):
|
||||||
|
cur = envs.setdefault(line[1:-1], [])
|
||||||
|
elif cur is None:
|
||||||
|
raise SystemExit(f"{path}: library line before any [env]: {line}")
|
||||||
|
else:
|
||||||
|
cur.append(line)
|
||||||
|
return envs
|
||||||
|
|
||||||
|
|
||||||
|
def write_lock(path: Path, envs: dict[str, list[str]]) -> None:
|
||||||
|
out = [HEADER]
|
||||||
|
for env in sorted(envs):
|
||||||
|
out.append(f"[{env}]")
|
||||||
|
out.extend(sorted(envs[env], key=str.lower))
|
||||||
|
out.append("")
|
||||||
|
path.write_text("\n".join(out))
|
||||||
|
|
||||||
|
|
||||||
|
def git_uri(lib: Path) -> str:
|
||||||
|
"""`<remote>#<commit>` of a library PlatformIO cloned (it leaves no .piopm)."""
|
||||||
|
|
||||||
|
def git(*args: str) -> str:
|
||||||
|
return subprocess.run(
|
||||||
|
["git", "-C", str(lib), *args], check=True, capture_output=True, text=True
|
||||||
|
).stdout.strip()
|
||||||
|
|
||||||
|
return f"{git('remote', 'get-url', 'origin')}#{git('rev-parse', 'HEAD')}"
|
||||||
|
|
||||||
|
|
||||||
|
def installed(env: str) -> list[str]:
|
||||||
|
"""Lock lines for what .pio/libdeps/<env> holds."""
|
||||||
|
d = libdeps_dir() / env
|
||||||
|
if not d.is_dir():
|
||||||
|
raise SystemExit(
|
||||||
|
f"{d}: no such libdeps dir (run `pio pkg install -e {env}` first)"
|
||||||
|
)
|
||||||
|
lines = []
|
||||||
|
for lib in sorted(p for p in d.iterdir() if p.is_dir()):
|
||||||
|
pm = lib / ".piopm"
|
||||||
|
if not pm.exists():
|
||||||
|
if (lib / ".git").exists():
|
||||||
|
lines.append(git_uri(lib))
|
||||||
|
continue
|
||||||
|
raise SystemExit(f"{lib}: neither .piopm nor .git")
|
||||||
|
meta = json.loads(pm.read_text())
|
||||||
|
if meta.get("type") != "library":
|
||||||
|
continue
|
||||||
|
spec = meta.get("spec") or {}
|
||||||
|
if spec.get("uri"):
|
||||||
|
lines.append(spec["uri"])
|
||||||
|
elif spec.get("owner"):
|
||||||
|
lines.append(f"{spec['owner']}/{spec['name']}@{meta['version']}")
|
||||||
|
else:
|
||||||
|
raise SystemExit(f"{pm}: neither a registry owner nor a URI")
|
||||||
|
return lines
|
||||||
|
|
||||||
|
|
||||||
|
def pio() -> str:
|
||||||
|
exe = shutil.which("pio") or str(Path.home() / ".platformio/penv/bin/pio")
|
||||||
|
if not Path(exe).exists():
|
||||||
|
raise SystemExit("pio not found (PATH, ~/.platformio/penv/bin)")
|
||||||
|
return exe
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_install(lock: dict[str, list[str]], envs: list[str]) -> int:
|
||||||
|
for env in envs:
|
||||||
|
if env not in lock:
|
||||||
|
print(f"{env}: not in the lock", file=sys.stderr)
|
||||||
|
return 1
|
||||||
|
# URI libraries (git, file) are pinned in platformio.ini itself and
|
||||||
|
# come from there; the lock only checks them
|
||||||
|
reg = [line for line in lock[env] if "://" not in line]
|
||||||
|
args = [
|
||||||
|
pio(),
|
||||||
|
"pkg",
|
||||||
|
"install",
|
||||||
|
"-d",
|
||||||
|
str(REPO),
|
||||||
|
"-e",
|
||||||
|
env,
|
||||||
|
"--no-save",
|
||||||
|
"--skip-dependencies",
|
||||||
|
"-s",
|
||||||
|
]
|
||||||
|
for line in reg:
|
||||||
|
args += ["-l", line]
|
||||||
|
print(f"{env}: installing {len(reg)} locked libraries", flush=True)
|
||||||
|
subprocess.run(args, check=True)
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_check(lock: dict[str, list[str]], envs: list[str]) -> int:
|
||||||
|
bad = 0
|
||||||
|
for env in envs:
|
||||||
|
want, have = set(lock.get(env, [])), set(installed(env))
|
||||||
|
if env not in lock:
|
||||||
|
print(f"{env}: not in the lock", file=sys.stderr)
|
||||||
|
bad = 1
|
||||||
|
continue
|
||||||
|
if want == have:
|
||||||
|
print(f"{env}: {len(have)} libraries as locked")
|
||||||
|
continue
|
||||||
|
bad = 1
|
||||||
|
for line in sorted(want - have):
|
||||||
|
print(f"{env}: locked but not installed: {line}", file=sys.stderr)
|
||||||
|
for line in sorted(have - want):
|
||||||
|
print(f"{env}: installed but not locked: {line}", file=sys.stderr)
|
||||||
|
if bad:
|
||||||
|
print(
|
||||||
|
"fix: tools/pio_lock.py freeze -e <env> after a clean `pio pkg install -e <env>`",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
|
return bad
|
||||||
|
|
||||||
|
|
||||||
|
def moved(base: dict[str, list[str]], lock: dict[str, list[str]]) -> list[str]:
|
||||||
|
def versions(envs: dict[str, list[str]]) -> dict[str, set[str]]:
|
||||||
|
out: dict[str, set[str]] = {}
|
||||||
|
for lines in envs.values():
|
||||||
|
for line in lines:
|
||||||
|
if "://" not in line:
|
||||||
|
name, _, ver = line.rpartition("@")
|
||||||
|
out.setdefault(name, set()).add(ver)
|
||||||
|
return out
|
||||||
|
|
||||||
|
old, new = versions(base), versions(lock)
|
||||||
|
res = []
|
||||||
|
for name in sorted(set(old) | set(new), key=str.lower):
|
||||||
|
o, n = sorted(old.get(name, set())), sorted(new.get(name, set()))
|
||||||
|
if o != n:
|
||||||
|
res.append(
|
||||||
|
f"{name.split('/', 1)[-1]} {', '.join(o) or '-'} -> {', '.join(n) or '-'}"
|
||||||
|
)
|
||||||
|
return res
|
||||||
|
|
||||||
|
|
||||||
|
def main() -> None:
|
||||||
|
ap = argparse.ArgumentParser(
|
||||||
|
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
|
||||||
|
)
|
||||||
|
ap.add_argument("command", choices=["install", "check", "freeze", "envs", "moved"])
|
||||||
|
ap.add_argument(
|
||||||
|
"-e", "--env", action="append", default=[], help="PlatformIO env (repeat)"
|
||||||
|
)
|
||||||
|
ap.add_argument("--lock", type=Path, default=REPO / "platformio.lock")
|
||||||
|
ap.add_argument(
|
||||||
|
"--base", default="HEAD", help="moved: git revision to compare with"
|
||||||
|
)
|
||||||
|
a = ap.parse_args()
|
||||||
|
lock = read_lock(a.lock)
|
||||||
|
if a.command == "envs":
|
||||||
|
print("\n".join(sorted(lock)))
|
||||||
|
return
|
||||||
|
if a.command == "moved":
|
||||||
|
rel = a.lock.resolve().relative_to(REPO)
|
||||||
|
old = subprocess.run(
|
||||||
|
["git", "-C", str(REPO), "show", f"{a.base}:{rel}"],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
check=False,
|
||||||
|
).stdout
|
||||||
|
tmp = Path(os.environ.get("TMPDIR", "/tmp")) / f"pio-lock-base-{os.getpid()}"
|
||||||
|
tmp.write_text(old)
|
||||||
|
try:
|
||||||
|
print("\n".join(moved(read_lock(tmp), lock)))
|
||||||
|
finally:
|
||||||
|
tmp.unlink()
|
||||||
|
return
|
||||||
|
if not a.env:
|
||||||
|
ap.error("at least one -e ENV")
|
||||||
|
if a.command == "install":
|
||||||
|
sys.exit(cmd_install(lock, a.env))
|
||||||
|
if a.command == "check":
|
||||||
|
sys.exit(cmd_check(lock, a.env))
|
||||||
|
for env in a.env:
|
||||||
|
lock[env] = installed(env)
|
||||||
|
print(f"{env}: {len(lock[env])} libraries locked")
|
||||||
|
write_lock(a.lock, lock)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -137,50 +137,45 @@ build_src_filter = ${SenseCap_Solar.build_src_filter}
|
|||||||
+<../examples/kiss_modem/>
|
+<../examples/kiss_modem/>
|
||||||
|
|
||||||
; CUSTOM (TeTeHacko): EXACT dependency set of the SenseCap Solar repeater --
|
; CUSTOM (TeTeHacko): EXACT dependency set of the SenseCap Solar repeater --
|
||||||
; PlatformIO has no lockfile, and upstream inherits ranges (`^2.1.5`) and an
|
; The masts' dependency set, in upstream's inheritance order (arduino_base,
|
||||||
; unpinned `platform = nordicnrf52`, so every build resolves whatever is newest
|
; nrf52_base, sensor_base) -- ORDER MATTERS, it is the link order -- with the
|
||||||
; that day: on 23. 10. 2026 one commit built 271 kB differently from the image
|
; transitive libraries listed too. 23. 10. 2026 one commit built 271 kB
|
||||||
; that had run in the field for a week (platform 11.0.0 instead of 10.12.0,
|
; differently from the image in the field because everything floated; since
|
||||||
; Adafruit GFX / INA260 / MLX90614 a patch or minor newer). These are the
|
; 30. 11. 2026 the exact versions are platformio.lock's job (tools/pio_lock.py,
|
||||||
; versions proven in the field; the public release builds them too.
|
; checked by every CI build) and the daily lock refresh moves them, so the
|
||||||
;
|
; versions here are ranges from the ones proven in the field. RadioLib and
|
||||||
; RadioLib, CustomLFS and the framework are git pins upstream and copied as is.
|
; CustomLFS stay git pins.
|
||||||
; ORDER MATTERS: it is the link order -- same as upstream's inheritance
|
|
||||||
; (arduino_base, nrf52_base, sensor_base), or the layout of the image changes.
|
|
||||||
; Moving to a newer upstream: if its platformio.ini changed lib_deps or the
|
|
||||||
; platform, refresh this list from a clean `pio run` (`.pio/libdeps/<env>`) and
|
|
||||||
; check the result on the bench before releasing it.
|
|
||||||
[sensecap_pinned]
|
[sensecap_pinned]
|
||||||
platform = nordicnrf52@10.12.0
|
platform = ${nrf52_base.platform}
|
||||||
lib_deps =
|
lib_deps =
|
||||||
SPI
|
SPI
|
||||||
Wire
|
Wire
|
||||||
https://github.com/jgromes/RadioLib.git#6d8934836678d8894e3d556550475b37dce3e2b6
|
https://github.com/jgromes/RadioLib.git#6d8934836678d8894e3d556550475b37dce3e2b6
|
||||||
rweather/Crypto @ 0.4.0
|
rweather/Crypto @ ^0.4.0
|
||||||
adafruit/RTClib @ 2.1.4
|
adafruit/RTClib @ ^2.1.4
|
||||||
melopero/Melopero RV3028 @ 1.2.0
|
melopero/Melopero RV3028 @ ^1.2.0
|
||||||
electroniccats/CayenneLPP @ 1.6.1
|
electroniccats/CayenneLPP @ ^1.6.1
|
||||||
https://github.com/oltaco/CustomLFS#0.2.3
|
https://github.com/oltaco/CustomLFS#0.2.3
|
||||||
adafruit/Adafruit INA3221 Library @ 1.0.1
|
adafruit/Adafruit INA3221 Library @ ^1.0.1
|
||||||
adafruit/Adafruit INA219 @ 1.2.3
|
adafruit/Adafruit INA219 @ ^1.2.3
|
||||||
robtillaart/INA226 @ 0.6.6
|
robtillaart/INA226 @ ^0.6.6
|
||||||
adafruit/Adafruit INA260 Library @ 1.5.3
|
adafruit/Adafruit INA260 Library @ ^1.5.3
|
||||||
adafruit/Adafruit AHTX0 @ 2.0.6
|
adafruit/Adafruit AHTX0 @ ^2.0.6
|
||||||
adafruit/Adafruit BME280 Library @ 2.3.0
|
adafruit/Adafruit BME280 Library @ ^2.3.0
|
||||||
adafruit/Adafruit BMP280 Library @ 2.6.8
|
adafruit/Adafruit BMP280 Library @ ^2.6.8
|
||||||
adafruit/Adafruit SHTC3 Library @ 1.0.2
|
adafruit/Adafruit SHTC3 Library @ ^1.0.2
|
||||||
sensirion/Sensirion I2C SHT4x @ 1.1.2
|
sensirion/Sensirion I2C SHT4x @ ^1.1.2
|
||||||
arduino-libraries/Arduino_LPS22HB @ 1.0.3
|
arduino-libraries/Arduino_LPS22HB @ ^1.0.3
|
||||||
adafruit/Adafruit MLX90614 Library @ 2.1.6
|
adafruit/Adafruit MLX90614 Library @ ^2.1.6
|
||||||
adafruit/Adafruit_VL53L0X @ 1.2.5
|
adafruit/Adafruit_VL53L0X @ ^1.2.5
|
||||||
stevemarple/MicroNMEA @ 2.0.6
|
stevemarple/MicroNMEA @ ^2.0.6
|
||||||
adafruit/Adafruit BME680 Library @ 2.0.6
|
adafruit/Adafruit BME680 Library @ ^2.0.6
|
||||||
adafruit/Adafruit BMP085 Library @ 1.2.4
|
adafruit/Adafruit BMP085 Library @ ^1.2.4
|
||||||
; transitive (pulled in by the sensor libraries), pinned so they cannot float
|
; transitive (pulled in by the sensor libraries), listed for the link order
|
||||||
adafruit/Adafruit BusIO @ 1.17.4
|
adafruit/Adafruit BusIO @ ^1.17.4
|
||||||
adafruit/Adafruit Unified Sensor @ 1.1.15
|
adafruit/Adafruit Unified Sensor @ ^1.1.15
|
||||||
adafruit/Adafruit GFX Library @ 1.12.6
|
adafruit/Adafruit GFX Library @ ^1.12.6
|
||||||
adafruit/Adafruit SSD1306 @ 2.5.17
|
adafruit/Adafruit SSD1306 @ ^2.5.17
|
||||||
adafruit/Adafruit SH110X @ 2.1.15
|
adafruit/Adafruit SH110X @ ^2.1.15
|
||||||
adafruit/Adafruit NeoPixel @ 1.15.5
|
adafruit/Adafruit NeoPixel @ ^1.15.5
|
||||||
sensirion/Sensirion Core @ 0.7.3
|
sensirion/Sensirion Core @ ^0.7.3
|
||||||
Reference in new issue
Block a user