summaryrefslogtreecommitdiff
path: root/firmware/Makefile.dfu
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-21 16:25:01 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-21 16:25:01 +0000
commitcf4d20a642bf5ecc1f065c35a5479d0d2276f241 (patch)
treeeba2feb64d7adb5ef93665d9cad2c935b82b4b52 /firmware/Makefile.dfu
parent817d9211d5f3c608dc231e1d3232d22294f9c782 (diff)
DFU works (fix various bugs such as forgetting to shift the page number, checking for invalid page numbers, off-by-one error in flash page calculation, etc.)
git-svn-id: https://svn.openpcd.org:2342/trunk@215 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/Makefile.dfu')
-rw-r--r--firmware/Makefile.dfu8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/Makefile.dfu b/firmware/Makefile.dfu
index 10c3616..47edebb 100644
--- a/firmware/Makefile.dfu
+++ b/firmware/Makefile.dfu
@@ -150,26 +150,30 @@ CDEFS = -D$(RUN_MODE) -D__MS_types__ -D__LIBRFID__
ifdef DEBUG
CDEFS += -DDEBUG
+ADEFS += -DDEBUG
endif
-ifdef OLIMEX
+ifeq ($(BOARD),OLIMEX)
CDEFS += -DOLIMEX
+ADEFS += -DOLIMEX
endif
ifeq ($(BOARD),PICC)
CDEFS += -DPICC
+ADEFS += -DPICC
endif
ifeq ($(BOARD),PCD)
SUBMDL = AT91SAM7S128
CDEFS += -DPCD
+ADEFS += -DPCD
endif
# Place -I options here
CINCS = -Iinclude -Isrc
# Place -D or -U options for ASM here
-ADEFS = -D$(RUN_MODE)
+ADEFS += -D$(RUN_MODE)
ifdef VECTOR_LOCATION
CDEFS += -D$(VECTOR_LOCATION)
personal git repositories of Harald Welte. Your mileage may vary