mirror of https://github.com/meshcore-dev/MeshCore
committed by
GitHub
2 changed files with 22 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||
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]) |
|||
Loading…
Reference in new issue