Enable link map file generation.
This commit is contained in:
parent
a075741c90
commit
287d9620fc
|
@ -31,7 +31,7 @@ else
|
||||||
CFLAGS += -Os -DNDEBUG
|
CFLAGS += -Os -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS = --nostdlib -T stm32f405.ld
|
LDFLAGS = --nostdlib -T stm32f405.ld -Map=$(@:.elf=.map) --cref
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|
||||||
# uncomment this if you want libgcc
|
# uncomment this if you want libgcc
|
||||||
|
|
|
@ -12,7 +12,7 @@ include ../py/py.mk
|
||||||
|
|
||||||
# compiler settings
|
# compiler settings
|
||||||
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD)
|
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD)
|
||||||
LDFLAGS = $(LDFLAGS_MOD) -lm
|
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref
|
||||||
|
|
||||||
ifeq ($(MICROPY_MOD_TIME),1)
|
ifeq ($(MICROPY_MOD_TIME),1)
|
||||||
CFLAGS_MOD += -DMICROPY_MOD_TIME=1
|
CFLAGS_MOD += -DMICROPY_MOD_TIME=1
|
||||||
|
|
Loading…
Reference in New Issue