Skip to content

Commit 46d4789

Browse files
Set proper target and cpu for LNX builds
1 parent 96fbd22 commit 46d4789

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile.defines

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ endif
9696
ifeq ($(TARGET_NAME),TARGET_NANOX)
9797
CFLAGS += -frwpi
9898
LDFLAGS += -momit-leaf-frame-pointer
99-
CFLAGS += --target=armv6m-none-eabi -mthumb
100-
LDFLAGS += --target=armv6m-none-eabi -mthumb
101-
LDFLAGS += -mtune=cortex-m0plus -mlittle-endian -mcpu=cortex-m0plus
99+
CFLAGS += --target=armv7m-none-eabi -mcpu=cortex-m3 -mthumb
100+
LDFLAGS += --target=armv7m-none-eabi -mcpu=cortex-m3 -mthumb
101+
LDFLAGS += -mlittle-endian
102102
LDFLAGS += -nostdlib -nodefaultlibs #-nostartfiles
103103
LDFLAGS += -mno-movt
104104
LDFLAGS += -L$(BOLOS_SDK)/arch/st33/lib/
105-
AFLAGS += -mcpu=cortex-m0plus -mthumb
105+
AFLAGS += -mcpu=cortex-m3 -mthumb
106106
endif
107107

108108
ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_STAX TARGET_FLEX TARGET_NANOS2))

0 commit comments

Comments
 (0)