/make/arduino-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/arduino-mk

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2012-11-30 15:13:27 UTC
  • Revision ID: tim@ed.am-20121130151327-scygxxvu0crec501
documented AVRDUDEFLAGS, CPPFLAGS, LINKFLAGS and LINBRARYPATH, cleaned up a
little bit, and fixed a tiny bug (called ecit, not exit, during an error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
        $(shell sed -ne "s/$(BOARD).build.vid=\(.*\)/\1/p" $(BOARDS_FILE))
259
259
BOARD_USB_PID := \
260
260
        $(shell sed -ne "s/$(BOARD).build.pid=\(.*\)/\1/p" $(BOARDS_FILE))
261
 
BOARD_BOOTLOADER_PATH := \
262
 
        $(shell sed -ne "s/$(BOARD).bootloader.path=\(.*\)/\1/p" $(BOARDS_FILE))
263
261
 
264
262
# invalid board?
265
263
ifeq "$(BOARD_BUILD_MCU)" ""
315
313
        @test 0 -eq $(SERIALDEVGUESS) || { \
316
314
                echo "*GUESSING* at serial device:" $(SERIALDEV); \
317
315
                echo; }
318
 
ifeq "$(BOARD_BOOTLOADER_PATH)" "caterina"
319
 
        stty $(STTYFARG) $(SERIALDEV) speed 1200
320
 
        sleep 1
321
 
endif
322
316
        stty $(STTYFARG) $(SERIALDEV) hupcl
323
317
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
324
318