summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usb-dfu-experiment/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usb-dfu-experiment/Makefile b/usb-dfu-experiment/Makefile
index 95dd5b3..297a6df 100644
--- a/usb-dfu-experiment/Makefile
+++ b/usb-dfu-experiment/Makefile
@@ -102,7 +102,7 @@ CFLAGS += $(TARGET_OPTS)
CFLAGS += -Wall -mlong-calls -ffunction-sections
CFLAGS += -g $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -DTRACE_LEVEL=$(TRACE_LEVEL)
ASFLAGS = $(TARGET_OPTS) -Wall -g $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D__ASSEMBLY__
-LDFLAGS = -g $(OPTIMIZATION) -nostartfiles $(TARGET_OPTS) -Wl,--gc-sections
+LDFLAGS = -g $(OPTIMIZATION) -nostdlib -nostartfiles $(TARGET_OPTS) -Wl,--gc-sections
#-------------------------------------------------------------------------------
# Files
@@ -121,6 +121,7 @@ VPATH += $(PERIPH)/dbgu
VPATH += $(PERIPH)/pio
VPATH += $(PERIPH)/irq
VPATH += $(PERIPH)/pmc
+VPATH += $(PERIPH)/rstc
VPATH += $(PERIPH)/cp15
VPATH += $(BOARDS)/$(BOARD)
VPATH += $(BOARDS)/$(BOARD)/$(CHIP)
@@ -169,6 +170,7 @@ C_OBJECTS += trace.o
C_OBJECTS += board_memories.o
C_OBJECTS += board_lowlevel.o
C_OBJECTS += flashd_eefc.o eefc.o
+C_OBJECTS += rstc.o
# Objects for different chips
personal git repositories of Harald Welte. Your mileage may vary