Makefile now checks for rules.mk when autodetecting BOARD_HARDWARE_PATH
Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
This commit is contained in:
parent
063908a90e
commit
0e865cfc34
9
Makefile
9
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
|
# 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/avr/libraries/Kaleidoscope)","")
|
ifeq ("$(wildcard $(BOARD_HARDWARE_PATH)/keyboardio/build-tools/makefiles/rules.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)","")
|
||||||
|
$(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
|
include $(BOARD_HARDWARE_PATH)/$(KALEIDOSCOPE_PLUGIN_MAKEFILE_DIR)/rules.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user