modm: lbuild generates bad scons files on WIndows
On windows, lbuild build generates modm/Sconscript with wrong file separators like this:
....
files = [
env.File("src\modm\architecture\driver\atomic\flag.cpp"),
env.File("src\modm\architecture\interface\can.cpp"),
env.File("src\modm\architecture\interface\can_message.cpp"),
env.File("src\modm\board\board.cpp"),
....
For now, I cope with this using sed and replacing all \ with / after lbuild build.
After that modm/Sconscript is usable, but I get the same error when trying to run scons program, but worse - as it is passing file name and it gets garbled - instead of build/release/some_name.elf I get buildeleaseomename.elf. It isn’t fixable via same method.
Although, using openocd -f modm/openocd.cfg -c program_release works after replacing all \\ in openocd.cfg with /
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (16 by maintainers)
I can probably try it tomorrow.