Skip to content

Commit 8bac61f

Browse files
committed
Cross compile RT1060 with arm-none-eabi and document the SDK value the Makefile matches
1 parent 9f803da commit 8bac61f

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

RT1060/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
SDK?=./SDK_2_13_1_MIMXRT1060-EVKB
33
WOLFSSL?=../../wolfssl
44

5+
# make defaults CC to the host cc, which cannot take the cortex-m7 flags below
6+
CROSS_COMPILE?=arm-none-eabi-
7+
CC=$(CROSS_COMPILE)gcc
8+
OBJCOPY=$(CROSS_COMPILE)objcopy
9+
510
# Common settings and files
611
ASMFLAGS=-D__STARTUP_CLEAR_BSS -D__STARTUP_INITIALIZE_NONCACHEDATA -mcpu=cortex-m7 -Wall -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs -std=gnu99
712
CFLAGS+=-I$(SDK)/devices/MIMXRT1062/utilities/debug_console/
@@ -101,10 +106,10 @@ BENCH_OBJS:=$(WOLFSSL)/wolfcrypt/benchmark/benchmark.o main-bench.o
101106
all: wolfcrypt-test.bin wolfcrypt-benchmark.bin
102107

103108
wolfcrypt-test.bin: wolfcrypt-test.elf
104-
arm-none-eabi-objcopy -O binary $^ $@
109+
$(OBJCOPY) -O binary $^ $@
105110

106111
wolfcrypt-benchmark.bin: wolfcrypt-benchmark.elf
107-
arm-none-eabi-objcopy -O binary $^ $@
112+
$(OBJCOPY) -O binary $^ $@
108113

109114
wolfcrypt-test.elf: $(OBJS) $(TEST_OBJS)
110115
$(CC) -o $@ $^ $(LDFLAGS)

RT1060/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Build wolfSSL
5252
- For **MIMXRT1060-EVKB**:
5353

5454
```
55-
$ SDK=SDK_2_13_1_MIMXRT1060-EVKB make
55+
$ SDK=./SDK_2_13_1_MIMXRT1060-EVKB make
5656
```
5757

5858
- For **EVK-MIMXRT106**:
5959

6060

6161
```
62-
$ SDK=SDK_2_8_2_EVK-MIMXRT1060 make
62+
$ SDK=./SDK_2_8_2_EVK-MIMXRT1060 make
6363
```
6464

6565
The resulting binary files will be in `wolfssl-examples/RT1060`:

0 commit comments

Comments
 (0)