summaryrefslogtreecommitdiff
path: root/firmware/Makefile.dfu
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-20 00:50:54 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-20 00:50:54 +0000
commit569d11d8a5f033fb3bb67b4cabe55d386bb25794 (patch)
tree1e43601afde78985200504b9a990ab53449b5688 /firmware/Makefile.dfu
parent3124bf3b4492d9cd608d4b933db88ca34ec425b7 (diff)
- implement some more missing DFU bits
- add debugging support to DFU - introduce a auto-generated compile.h to add reviison number/... to firmware git-svn-id: https://svn.openpcd.org:2342/trunk@201 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/Makefile.dfu')
-rw-r--r--firmware/Makefile.dfu10
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/Makefile.dfu b/firmware/Makefile.dfu
index 5fcb4d3..c8e9781 100644
--- a/firmware/Makefile.dfu
+++ b/firmware/Makefile.dfu
@@ -76,7 +76,7 @@ SRC =
# List C source files here which must be compiled in ARM-Mode.
# use file-extension c for "c-only"-files
-SRCARM = src/start/Cstartup_SAM7.c src/dfu/dfu.c
+SRCARM = src/start/Cstartup_SAM7.c src/dfu/dfu.c src/dfu/dbgu.c
# List C++ source files here.
# use file-extension cpp for C++-files (use extension .cpp)
@@ -99,6 +99,11 @@ ASRC =
# List Assembler source files here which must be assembled in ARM-Mode..
ASRCARM = src/start/Cstartup.S
+ifeq ($(DEBUG),1)
+SRCARM += lib/lib_AT91SAM7.c lib/vsprintf.c lib/ctype.c lib/string.c
+ASRCARM += lib/div64.S
+endif
+
## Output format. (can be ihex or binary)
## (binary i.e. for openocd and SAM-BA, hex i.e. for lpc21isp and uVision)
#FORMAT = ihex
@@ -526,6 +531,9 @@ clean_list :
$(REMOVE) $(CPPSRCARM:.cpp=.d)
$(REMOVE) .dep/*
+.PHONY: include/compile.h
+include/compile.h:
+ scripts/mkcompile_h > $@
# Include the dependency files.
-include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*)
personal git repositories of Harald Welte. Your mileage may vary