Some checks failed
Build and deploy Docs site to GitHub Pages / github-pages (push) Has been cancelled
Run Unit Tests / test (push) Has been cancelled
PR Build Check / build (Heltec_v3_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (Heltec_v3_repeater) (push) Has been cancelled
PR Build Check / build (Heltec_v3_room_server) (push) Has been cancelled
PR Build Check / build (LilyGo_Tlora_C6_repeater_) (push) Has been cancelled
PR Build Check / build (PicoW_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_companion_radio_ble) (push) Has been cancelled
PR Build Check / build (RAK_4631_repeater) (push) Has been cancelled
PR Build Check / build (RAK_4631_room_server) (push) Has been cancelled
PR Build Check / build (Tbeam_SX1276_repeater) (push) Has been cancelled
PR Build Check / build (wio-e5-mini_repeater) (push) Has been cancelled
PR Build Check / build (wio_wm1110_repeater) (push) Has been cancelled
15 lines
567 B
Python
15 lines
567 B
Python
Import('env')
|
|
import os
|
|
|
|
# Bosch has a goof in their PlatformIO packaging making linking fail.
|
|
# The BSEC library's extra_script.py selects cortex-m4/libalgobsec.a (soft-float ABI).
|
|
# nRF52840 compiles with -mfloat-abi=hard, requiring the fpv4-sp-d16-hard blob.
|
|
# Workaround to prepend the hard-float path so the linker finds it before the
|
|
# soft-float one.
|
|
bsec_hard = os.path.join(
|
|
env.subst('$PROJECT_DIR'),
|
|
'.pio', 'libdeps', env.subst('$PIOENV'),
|
|
'BSEC Software Library', 'src',
|
|
'cortex-m4', 'fpv4-sp-d16-hard'
|
|
)
|
|
env.Prepend(LIBPATH=[bsec_hard]) |