aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fleissner <florian.fleissner@inpartik.de>2019-02-28 12:45:55 +0100
committerFlorian Fleissner <florian.fleissner@inpartik.de>2019-02-28 12:47:46 +0100
commit0e865cfc3411f900e04c2061d822f79d575db929 (patch)
treeded846f29cd09a0393b29ae5835777a7dd128dea /Makefile
parent063908a90e8a4d371d0e4907f580c1edbc6a1495 (diff)
downloadModel01-Firmware-0e865cfc3411f900e04c2061d822f79d575db929.tar.gz
Model01-Firmware-0e865cfc3411f900e04c2061d822f79d575db929.zip
Makefile now checks for rules.mk when autodetecting BOARD_HARDWARE_PATH
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9ae32d0..7682689 100644
--- a/Makefile
+++ b/Makefile
@@ -56,10 +56,17 @@ KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR ?= keyboardio/build-tools/makefiles/
# 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/avr/libraries/Kaleidoscope)","")
+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