Hi rskkya,
You have:
./configure LIBS="-lc -lm -lgcc -lrdimon" CPPFLAGS="-I/usr/include/" --disable-examples --enable-aesgcm --enable-camellia --enable-sha512 --enable-keygen --enable-certgen --enable-dsa --enable-ecc --host=arm-none-eabi CC= arm-none-eabi-gcc AR=arm-none-eabi-ar RANLIB=arm-none-eabi-ranlib --build= x86-linux-64 march=armv7 mcpu=cortex-m3
could you try also setting the assembly language compiler:
AS=arm-none-eabi-gcc
could you try also setting the Linker/loader:
LD=arm-none-eabi-ld
could you try adding the following to CFLAGS:
-specs=rdimon.specs
-O0 (that is a capital "OH" and a zero for optimization level 0)
-DFREERTOS
If you intend to do any debugging you can add the "-g" flag for debug symbols to CFLAGS as well.
so you should end up with something like this:
./configure LIBS="-lc -lm -lgcc -lrdimon" CPPFLAGS="-I/usr/include/" --disable-examples --enable-aesgcm --enable-camellia --enable-sha512 --enable-keygen --enable-certgen --enable-dsa --enable-ecc --host=arm-none-eabi CC= arm-none-eabi-gcc AR=arm-none-eabi-ar RANLIB=arm-none-eabi-ranlib AS=arm-none-eabi-gcc LD=arm-none-eabi-ld --build= x86-linux-64 march=armv7 mcpu=cortex-m3 CFLAGS="${CFLAGS} -DFREERTOS -O0 -specs=rdimon.specs"
If you still have issues after trying these changes let us know.
NOTE: If you define FREERTOS wolfSSL will look for various header files including FreeRTOS.h FreeRTOSConfig.h etc. You can add multiple include paths to get these headers for example above you had:
CPPFLAGS="-I/usr/include/"
Just extend that to be:
CPPFLAGS="-I/usr/include/ -I/path/to/FreeRTOS.h -I/path/to/FreeRTOSConfig.h -I/any/other/header/paths/etc"
Regards,
- Kaleb