Commit Graph
2 Commits
Author SHA1 Message Date
Alberto García HierroandBertrand Songis bf1198cf8c Use target compiler for generating lua exported definitions (#7186)
Include the lua subdirectory only after CMAKE_C_COMPILER has been
set to the cross compiler. Otherwise, cmake will use the build machine
compiler to preprocess dataconstants.h, which breaks on some systems
and can cause problems due to different machine dependent types.
2019-12-17 11:57:40 +01:00
Alberto García HierroandBertrand Songis de8ed12570 [build] Fix building with semihosting enabled (#7206)
Remove -DSEMIHOSTING from the bootloader CFLAGS unconditionally.

-DSEMIHOSTING is passed to the bootloader by the parent project when
SEMIHOSTING=ON, however the bootloader wouldn't fit on flash with
semihosting enabled.

If we leave the -DSEMIHOSTING flag, we would get a compilation error
on non-horus radios (since -DDEBUG is removed) and a link time error
on horus (since the bootloader won't fit in its allocated flash
region).
2019-12-17 08:20:41 +01:00