set USB_VID and USB_PID only for leonardo boards

This commit is contained in:
Andreas Lohr 2012-10-07 10:28:10 +02:00
parent 184230fcf2
commit adbd6532f9

View file

@ -401,6 +401,7 @@ ifndef F_CPU
F_CPU = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.f_cpu)
endif
ifeq ($(VARIANT),leonardo)
# USB IDs for the Leonardo
ifndef USB_VID
USB_VID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.vid)
@ -409,6 +410,7 @@ endif
ifndef USB_PID
USB_PID = $(shell $(PARSE_BOARD_CMD) $(BOARD_TAG) build.pid)
endif
endif
# normal programming info
ifndef AVRDUDE_ARD_PROGRAMMER