ci: opravit nRF52 buildy na GH (lokální symlink leakl do trackovaného configu)
nRF52 CI buildy (RAK_4631*, wio_wm1110) padaly na
`PackageException: Can not create a symbolic link for
/home/user/projects/meshcore-nrf52-fw` — lokální build hack
(`framework-...@ symlink:///home/user/...`) byl commitnutý v
platformio.ini a na runneru ta cesta neexistuje. Pre-existing, ne
antispam změna; buildovalo jen lokálně.
- [nrf52_fw] pkg proměnná: committed default = fetchable git pin
(plný SHA d541301…, tip meshcore-dev fork masteru s BLE patchem).
Plný SHA schválně — shallow fetch krátkého SHA byl důvod symlinku.
- Symlink override přesunut do gitignorovaného platformio.local.ini
([nrf52_fw] pkg = symlink://…), takže lokální build jede dál a hack
už neleakne do CI.
- TxtDataHelpers.cpp: `ltoa` (nedeklarované na STM32/newlib-nano,
rozbíjelo wio-e5 build) → přenositelné `sprintf("%lu")`. int_part je
nezáporná magnituda, znaménko se řeší zvlášť výš.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
141a1c8069
commit
29dedf250d
2 files changed
+18
-12
No files matched your search
+13
-6
@@ -95,16 +95,23 @@ platform = https://github.com/pioarduino/platform-espressif32/releases/download/
|
|||||||
|
|
||||||
; ----------------- NRF52 ---------------------
|
; ----------------- NRF52 ---------------------
|
||||||
|
|
||||||
|
; nRF52 Adafruit framework package. Committed DEFAULT is a fetchable git pin
|
||||||
|
; (works on CI and on any clone). d541301 is the tip of meshcore-dev's fork
|
||||||
|
; master and carries the BLE-stack patch against rapid connect/disconnect
|
||||||
|
; lockup (MeshCore PRs #1177, #1295). The full 40-char SHA is used on purpose:
|
||||||
|
; PlatformIO's shallow fetch choked on the SHORT SHA, which is the whole reason
|
||||||
|
; the local build used a full clone + symlink. That symlink hack now lives ONLY
|
||||||
|
; in the gitignored platformio.local.ini (it redefines [nrf52_fw].pkg), so it
|
||||||
|
; never leaks into the tracked tree and breaks CI again -- it did: a committed
|
||||||
|
; `symlink:///home/user/...` gave PackageException on every nRF52 runner build.
|
||||||
|
[nrf52_fw]
|
||||||
|
pkg = https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301665b40959682252911e57b11df3ee651a
|
||||||
|
|
||||||
[nrf52_base]
|
[nrf52_base]
|
||||||
extends = arduino_base
|
extends = arduino_base
|
||||||
platform = nordicnrf52
|
platform = nordicnrf52
|
||||||
platform_packages =
|
platform_packages =
|
||||||
; use internal fork that includes patch to ble stack to prevent firmware lockup during rapid connect/disconnect
|
framework-arduinoadafruitnrf52 @ ${nrf52_fw.pkg}
|
||||||
; https://github.com/meshcore-dev/MeshCore/pull/1177
|
|
||||||
; https://github.com/meshcore-dev/MeshCore/pull/1295
|
|
||||||
; LOKÁLNÍ build hack (TeTeHacko): shallow git fetch krátkého SHA neumí, tak plný klon + symlink.
|
|
||||||
; upstream: framework-arduinoadafruitnrf52 @ https://github.com/meshcore-dev/Adafruit_nRF52_Arduino#d541301
|
|
||||||
framework-arduinoadafruitnrf52 @ symlink:///home/user/projects/meshcore-nrf52-fw
|
|
||||||
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
|
||||||
|
|||||||
@@ -100,12 +100,11 @@ static void _ftoa(float f, char *p, int *status)
|
|||||||
*p++ = '-';
|
*p++ = '-';
|
||||||
if (int_part == 0)
|
if (int_part == 0)
|
||||||
*p++ = '0';
|
*p++ = '0';
|
||||||
else
|
else
|
||||||
{
|
// ltoa() is not declared on every toolchain (STM32/newlib-nano lacks it,
|
||||||
ltoa(int_part, p, 10);
|
// breaking the wio-e5 build); sprintf %lu is portable. int_part is the
|
||||||
while (*p)
|
// non-negative magnitude here -- the sign was already emitted above.
|
||||||
p++;
|
p += sprintf(p, "%lu", (unsigned long)int_part);
|
||||||
}
|
|
||||||
*p++ = '.';
|
*p++ = '.';
|
||||||
if (frac_part == 0)
|
if (frac_part == 0)
|
||||||
*p++ = '0';
|
*p++ = '0';
|
||||||
|
|||||||
Reference in new issue
Block a user