@@ -31,6 +31,11 @@ the root of the source code. Then edit this to add the following:
3131``` c
3232#define WOLFSSL_GAISLER_BCC
3333#define WOLFSSL_GENSEED_FORTEST
34+ #define NO_ASN_TIME
35+ ```
36+ and comment out the following line:
37+ ```
38+ // #define NO_MAIN_DRIVER
3439```
3540
3641The first ` #define ` is only required to compile the wolfCrypt benchmark.
@@ -39,26 +44,26 @@ The first `#define` is only required to compile the wolfCrypt benchmark.
3944entropy for the RNG. It is recommended an external entropy source is used when
4045developing for production.
4146
42- You can then compile with the following. Change ` leon5 ` to the LEON CPU version
43- used:
47+ You can then compile with the following. Change the ` mcpu ` and ` qbsp ` according
48+ to the LEON CPU version and board used:
4449
4550``` sh
4651export CC=/opt/sparc-bcc-2.3.1-gcc/bin/sparc-gaisler-elf-gcc
4752export CXX=/opt/sparc-bcc-2.3.1-gcc/bin/sparc-gaisler-elf-g++
48- export CFLAGS=" -mcpu=leon5 "
53+ export CFLAGS=" -qbsp=gr740 - mcpu=leon3 "
4954
5055./configure --host=sparc --enable-usersettings --disable-examples --enable-static
5156make
5257```
5358
5459### Linux
5560
56- To compile for Linux on the LEON use the following commands:
61+ To compile for Linux on the LEON use the following commands, make sure to use the right ` mcpu ` option :
5762
5863``` sh
5964export CC=/opt/sparc-gaisler-linux5.10/bin/sparc-gaisler-linux5.10-gcc
6065export CXX=/opt/sparc-gaisler-linux5.10/bin/sparc-gaisler-linux5.10-g++
61- export CFLAGS=" -mcpu=leon5 "
66+ export CFLAGS=" -mcpu=leon3 "
6267
6368./configure --host=sparc-linux
6469make
0 commit comments