|
|
@ -56,20 +56,20 @@ KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/build-tools/makefiles/
|
|
|
|
# they reside outside of SKETCHBOOK_DIR, we fall back to assuming that
|
|
|
|
# they reside outside of SKETCHBOOK_DIR, we fall back to assuming that
|
|
|
|
# the hardware directory can be determined in relation to the position of
|
|
|
|
# the hardware directory can be determined in relation to the position of
|
|
|
|
# this Makefile.
|
|
|
|
# this Makefile.
|
|
|
|
ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/rules.mk)","")
|
|
|
|
ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/sketch-arduino-cli.mk)","")
|
|
|
|
# Determine the path of this Makefile
|
|
|
|
# Determine the path of this Makefile
|
|
|
|
MKFILE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
MKFILE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
BOARD_HARDWARE_PATH = $(MKFILE_DIR)/../../../..
|
|
|
|
BOARD_HARDWARE_PATH = $(MKFILE_DIR)/../../../..
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/rules.mk)","")
|
|
|
|
ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/sketch-arduino-cli.mk)","")
|
|
|
|
$(info ***************************************************************************)
|
|
|
|
$(info ***************************************************************************)
|
|
|
|
$(info Unable to autodetect a proper BOARD_HARDWARE_PATH. Please define it manually.)
|
|
|
|
$(info Unable to autodetect a proper BOARD_HARDWARE_PATH. Please define it manually.)
|
|
|
|
$(info ***************************************************************************)
|
|
|
|
$(info ***************************************************************************)
|
|
|
|
$(info )
|
|
|
|
$(info )
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk
|
|
|
|
include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/sketch-arduino-cli.mk
|
|
|
|
|
|
|
|
|
|
|
|
# Set up an argument for passing to the simulator tests in docker
|
|
|
|
# Set up an argument for passing to the simulator tests in docker
|
|
|
|
# but if the var isn't set, don't even pass the definition
|
|
|
|
# but if the var isn't set, don't even pass the definition
|
|
|
|