Skip to content

Commit 5eceb4f

Browse files
committed
Gaisler: minor doc fixes
1 parent 981ba4b commit 5eceb4f

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

IDE/Gaisler-BCC/README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3641
The 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.
3944
entropy for the RNG. It is recommended an external entropy source is used when
4045
developing 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
4651
export CC=/opt/sparc-bcc-2.3.1-gcc/bin/sparc-gaisler-elf-gcc
4752
export 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
5156
make
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
5964
export CC=/opt/sparc-gaisler-linux5.10/bin/sparc-gaisler-linux5.10-gcc
6065
export 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
6469
make

0 commit comments

Comments
 (0)