added support for "make program" (at91flash)

git-svn-id: https://svn.openpcd.org:2342/trunk@42 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
This commit is contained in:
(no author) 2006-07-25 07:45:57 +00:00
parent 647b4f1ae2
commit 0c1766f431
1 changed files with 8 additions and 0 deletions

View File

@ -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.