summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/nrf/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile
index ad099e110..fb7eb5c59 100644
--- a/ports/nrf/Makefile
+++ b/ports/nrf/Makefile
@@ -130,6 +130,10 @@ LDFLAGS = $(CFLAGS)
LDFLAGS += -Xlinker -Map=$(@:.elf=.map)
LDFLAGS += -mthumb -mabi=aapcs $(addprefix -T,$(LD_FILES)) -L boards/
+ifneq ($(FS_SIZE),)
+LDFLAGS += -Wl,'--defsym=_fs_size=$(FS_SIZE)'
+endif
+
#Debugging/Optimization
ifeq ($(DEBUG), 1)
#ASMFLAGS += -g -gtabs+