From 01362305cdc0a54b803f0f80c5b9d4e99ee5a5d4 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Wed, 6 Nov 2024 17:17:45 +0100 Subject: [PATCH] Set proper target and cpu for LNX builds --- Makefile.defines | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.defines b/Makefile.defines index b600857b5..f909e5708 100644 --- a/Makefile.defines +++ b/Makefile.defines @@ -96,13 +96,13 @@ endif ifeq ($(TARGET_NAME),TARGET_NANOX) CFLAGS += -frwpi LDFLAGS += -momit-leaf-frame-pointer -CFLAGS += --target=armv6m-none-eabi -mthumb -LDFLAGS += --target=armv6m-none-eabi -mthumb -LDFLAGS += -mtune=cortex-m0plus -mlittle-endian -mcpu=cortex-m0plus +CFLAGS += --target=armv7m-none-eabi -mcpu=cortex-m3 -mthumb +LDFLAGS += --target=armv7m-none-eabi -mcpu=cortex-m3 -mthumb +LDFLAGS += -mlittle-endian LDFLAGS += -nostdlib -nodefaultlibs #-nostartfiles LDFLAGS += -mno-movt LDFLAGS += -L$(BOLOS_SDK)/arch/st33/lib/ -AFLAGS += -mcpu=cortex-m0plus -mthumb +AFLAGS += -mcpu=cortex-m3 -mthumb endif ifeq ($(TARGET_NAME),$(filter $(TARGET_NAME),TARGET_STAX TARGET_FLEX TARGET_NANOS2))