Revision 2c89d7e2 modules/STM32F4Discovery/Makefile

View differences:

modules/STM32F4Discovery/Makefile
294 294
# End of user defines                                                          #
295 295
################################################################################
296 296

  
297
################################################################################
298
# Start of targets section                                                     #
299
#                                                                              #
297 300

  
301
# all and its dependencies
302
BUILDDIR = ./build
298 303
RULESPATH = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC
299 304
include $(RULESPATH)/rules.mk
300 305

  
306
# flash
301 307
include $(AMIROOS)/bootloader/bootloader.mk
302 308

  
303
flash: build/$(PROJECT).elf
309
flash: $(BUILDDIR)/$(PROJECT).elf
304 310
	openocd -f interface/stlink-v2-1.cfg -c "set WORKAREASIZE 0x2000" -f target/stm32f4x.cfg -c "program build/$(PROJECT).elf verify reset exit"
305 311

  
312
#                                                                              #
313
# End of targets section                                                       #
314
################################################################################
315

  

Also available in: Unified diff