From 2f638a0ae103bdc3890af84602461dd55d03d04a Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 11 Jul 2018 16:05:02 -0700 Subject: [PATCH] GCC-ARM README Update Added directions for building wolfSSL using the gcc-arm-none-eabi tools. --- IDE/GCC-ARM/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/IDE/GCC-ARM/README.md b/IDE/GCC-ARM/README.md index ae75e1780..3ca5ec924 100644 --- a/IDE/GCC-ARM/README.md +++ b/IDE/GCC-ARM/README.md @@ -43,6 +43,28 @@ make clean && make 70368 464 36 70868 114d4 ./Build/WolfSSLClient.elf ``` +### Building with configure + +The configure script in the main project directory can perform a cross-compile +build with the the gcc-arm-none-eabi tools. Assuming the tools are installed in +your executable path: + +``` +$ ./configure CFLAGS="-march=armv8-a \ + --specs=nosys.specs -DHAVE_PK_CALLBACKS \ + -DWOLFSSL_USER_IO -DNO_WRITEV" \ + --host=arm-non-eabi --disable-filesystem \ + --enable-fastmath --disable-shared \ + CC=arm-none-eabi-gcc AR=arm-none-eabi-ar \ + STRIP=arm-none-eabi-strip RANLIB=arm-none-eabi-ranlib \ + --prefix=/path/to/build/wolfssl-arm +$ make +$ make install +``` + +If you are building for a 32-bit architecture, add `-DTIME_T_NOT_LONG` to the +list of CFLAGS. + ## Performace Tuning Options These settings are located in `Header/user_settings.h`.