From 353977130028e2b2ff98dc6a670d9c3ef74e6fde Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 12 Nov 2020 12:28:20 -0800 Subject: [PATCH] clean up the makefile to remove the old board_hardware_path dir --- etc/sketch-arduino-cli.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/sketch-arduino-cli.mk b/etc/sketch-arduino-cli.mk index 1c0c8830..bdda384a 100644 --- a/etc/sketch-arduino-cli.mk +++ b/etc/sketch-arduino-cli.mk @@ -1,4 +1,7 @@ -KALEIDOSCOPE_BUILDER_DIR ?= $(BOARD_HARDWARE_PATH)/keyboardio/avr/libraries/Kaleidoscope/bin/ +mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) +mkfile_dir := $(dir $(mkfile_path)) + +KALEIDOSCOPE_BUILDER_DIR ?= $(abspath $(mkfile_dir)/../bin) .DEFAULT_GOAL := compile @@ -17,5 +20,5 @@ flash: compile %: - @BOARD_HARDWARE_PATH="$(BOARD_HARDWARE_PATH)" $(KALEIDOSCOPE_BUILDER_DIR)/kaleidoscope-builder $@ + $(KALEIDOSCOPE_BUILDER_DIR)/kaleidoscope-builder $@