summaryrefslogtreecommitdiff
path: root/usb-dfu-experiment/Makefile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-08 15:35:21 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-08 15:35:21 +0100
commit4b0a2a1aa2876199d00765a81c75bd8abd697e7d (patch)
tree70e16b7437e188939ecca4330be04b7029a89aea /usb-dfu-experiment/Makefile
parent9439e717ccf5adc2b24552f4025f4294f44f19c1 (diff)
DFU: use -nostdlib and include rstc.o
Diffstat (limited to 'usb-dfu-experiment/Makefile')
-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