diff options
author | Brian Cully <bjc@kublai.com> | 2020-06-01 20:44:17 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2020-06-01 22:16:10 -0400 |
commit | c056b242816eaa3c992f6803857274c46f1a831b (patch) | |
tree | e629a1e2ed2100a54567f5d31e49b25a4224eb99 /Makefile | |
parent | 6d85253f59721509a4955f08a7aa93ac196efee4 (diff) | |
parent | 03bee4b8746aa79a0f1dcf5e5c0c2a1742b8162d (diff) | |
download | Model01-Firmware-c056b242816eaa3c992f6803857274c46f1a831b.tar.gz Model01-Firmware-c056b242816eaa3c992f6803857274c46f1a831b.zip |
Update to newest kaleidoscope
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -50,6 +50,23 @@ endif BOARD_HARDWARE_PATH ?= $(SKETCHBOOK_DIR)/hardware -KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/avr/build-tools/makefiles/ +KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/build-tools/makefiles/ + +# If Kaleidoscope's Arduino libraries cannot be found, e.g. because +# they reside outside of SKETCHBOOK_DIR, we fall back to assuming that +# the hardware directory can be determined in relation to the position of +# this Makefile. +ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/rules.mk)","") + # Determine the path of this Makefile + MKFILE_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) + BOARD_HARDWARE_PATH = $(MKFILE_DIR)/../../../.. +endif + +ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/rules.mk)","") +$(info ***************************************************************************) +$(info Unable to autodetect a proper BOARD_HARDWARE_PATH. Please define it manually.) +$(info ***************************************************************************) +$(info ) +endif include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk |