summaryrefslogtreecommitdiff
path: root/openpcd
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-25 07:45:57 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-25 07:45:57 +0000
commit0c1766f4312613d83fb4fd6efbc8b9558b17eefa (patch)
treec3dbffb60a55e1a31400a5e84fbfc366ea8ed2d8 /openpcd
parent647b4f1ae286cba3475a34fc9926fe0bb9b57d2a (diff)
added support for "make program" (at91flash)
git-svn-id: https://svn.openpcd.org:2342/trunk@42 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpcd')
-rw-r--r--openpcd/firmware/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/openpcd/firmware/Makefile b/openpcd/firmware/Makefile
index 76f3184..fda7663 100644
--- a/openpcd/firmware/Makefile
+++ b/openpcd/firmware/Makefile
@@ -35,6 +35,7 @@
# - 19. Mai. 2006 - USE_THUMB_MODE switch, ROM_RUN->RUN_FROM_ROM RAM_RUN->RUN_FROM_RAM
+FLASH_TOOL = AT91FLASH
#FLASH_TOOL = UVISION
#FLASH_TOOL = OPENOCD
@@ -366,6 +367,12 @@ gccversion :
# Program the device.
+# Program the device by using our relais card robot over USB
+ifeq ($(FLASH_TOOL),AT91FLASH)
+program: $(TARGET).$(IMGEXT)
+ ls -l $(TARGET).$(IMGEXT)
+ at91flash $(TARGET).$(IMGEXT)
+else
ifeq ($(FLASH_TOOL),UVISION)
# Program the device with Keil's uVision (needs configured uVision-Workspace).
program: $(TARGET).$(IMGEXT)
@@ -387,6 +394,7 @@ program: $(TARGET).$(IMGEXT)
$(LPC21ISP) $(LPC21ISP_OPTIONS) $(LPC21ISP_DEBUG) $(LPC21ISP_FLASHFILE) $(LPC21ISP_PORT) $(LPC21ISP_BAUD) $(LPC21ISP_XTAL)
endif
endif
+endif
# Create final output file (.hex) from ELF output file.
personal git repositories of Harald Welte. Your mileage may vary