fixes for ramps compilation using installed arduino ide
This commit is contained in:
parent
7d20ec706e
commit
9c34c4f05b
1 changed files with 5 additions and 0 deletions
|
@ -190,8 +190,13 @@ TARGET = $(notdir $(CURDIR))
|
||||||
VPATH = .
|
VPATH = .
|
||||||
VPATH += $(BUILD_DIR)
|
VPATH += $(BUILD_DIR)
|
||||||
VPATH += $(HARDWARE_SRC)
|
VPATH += $(HARDWARE_SRC)
|
||||||
|
ifeq ($(HARDWARE_VARIANT), arduino)
|
||||||
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/LiquidCrystal
|
||||||
|
VPATH += $(ARDUINO_INSTALL_DIR)/libraries/SPI
|
||||||
|
else
|
||||||
VPATH += $(HARDWARE_DIR)/libraries/LiquidCrystal
|
VPATH += $(HARDWARE_DIR)/libraries/LiquidCrystal
|
||||||
VPATH += $(HARDWARE_DIR)/libraries/SPI
|
VPATH += $(HARDWARE_DIR)/libraries/SPI
|
||||||
|
endif
|
||||||
ifeq ($(HARDWARE_VARIANT), arduino)
|
ifeq ($(HARDWARE_VARIANT), arduino)
|
||||||
HARDWARE_SUB_VARIANT ?= mega
|
HARDWARE_SUB_VARIANT ?= mega
|
||||||
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
VPATH += $(ARDUINO_INSTALL_DIR)/hardware/arduino/variants/$(HARDWARE_SUB_VARIANT)
|
||||||
|
|
Reference in a new issue