Skip to content

Commit 3f419df

Browse files
committed
Add extension info and always build with symbols
1 parent 79888ac commit 3f419df

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

ports/renode/Makefile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,7 @@ INC += \
3636
-isystem ./../../lib/cmsis/inc \
3737
-I$(BUILD)
3838

39-
OPTIMIZATION_FLAGS ?= -O3
40-
# option to override default optimization level, set in boards/$(BOARD)/mpconfigboard.mk
41-
CFLAGS += $(OPTIMIZATION_FLAGS)
42-
43-
# flags specific to wifi / cyw43
44-
#Debugging/Optimization
45-
ifeq ($(DEBUG), 1)
46-
CFLAGS += -ggdb3 -O3
47-
# No LTO because we may place some functions in RAM instead of flash.
48-
else
49-
CFLAGS += -DNDEBUG
50-
51-
# No LTO because we may place some functions in RAM instead of flash.
52-
53-
ifdef CFLAGS_BOARD
54-
CFLAGS += $(CFLAGS_BOARD)
55-
endif
56-
endif
39+
CFLAGS += -ggdb3 -Os
5740

5841
DISABLE_WARNINGS = -Wno-cast-align
5942
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
@@ -65,7 +48,7 @@ CFLAGS += \
6548
-mcpu=cortex-m0plus \
6649
-msoft-float \
6750
-mfloat-abi=soft \
68-
--specs=nano.specs
51+
--specs=nano.specs
6952

7053
# Use toolchain libm if we're not using our own.
7154
ifndef INTERNAL_LIBM

ports/renode/mpconfigport.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
LONGINT_IMPL = MPZ
22
INTERNAL_LIBM = 1
33

4+
# We build .elf files to run in the simulator. Generally, this will be a file
5+
# type supported by the chip family's bootloader.
6+
CIRCUITPY_BUILD_EXTENSIONS = elf
7+
48
# The port manages flash itself instead of using SPI flash via busio.SPI.
59
INTERNAL_FLASH_FILESYSTEM = 1
610

0 commit comments

Comments
 (0)