Skip to content

Commit

Permalink
Set proper target and cpu for LNX builds
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger committed Nov 12, 2024
1 parent 96fbd22 commit 46d4789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile.defines
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 46d4789

Please sign in to comment.