16 Dec
2021
16 Dec
'21
12:25 p.m.
On Thursday, December 16, 2021 9:37:27 AM CET Ryan McClue wrote:
Hello, I'm trying to cross compile with arm-none-eabi-gcc on an Ubuntu x64 build machine.
My CMake toolchain file contains the following flags:
mcpu=cortex-m4 -mthumb -mfloat-abi=soft -fdata-sections -ffunction-sections \ --specs=rdimon.specs -lgcc -lc -lm -lrdimon
This doesn't look like how a toolchain file should look like! Those are just CFLAGS. https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html Example: https://gitlab.com/cmocka/cmocka/-/blob/master/cmake/Toolchain-Debian-mips.c... Best regards Andreas -- Andreas Schneider asn@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D