From e000e2e949384cb096c7fd0adfbd25fa399e93e5 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 16 Nov 2020 20:42:03 -0800 Subject: [PATCH] try to get bin and etc dirs in a place where tests see em --- etc/makefiles/kaleidoscope-env.mk | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 etc/makefiles/kaleidoscope-env.mk diff --git a/etc/makefiles/kaleidoscope-env.mk b/etc/makefiles/kaleidoscope-env.mk new file mode 100644 index 00000000..be002715 --- /dev/null +++ b/etc/makefiles/kaleidoscope-env.mk @@ -0,0 +1,20 @@ +mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) +mkfile_dir := $(dir $(mkfile_path)) + +export KALEIDOSCOPE_DIR ?= $(abspath $(mkfile_dir)/../..) +export KALEIDOSCOPE_BIN_DIR ?= $(KALEIDOSCOPE_DIR)/bin +export KALEIDOSCOPE_ETC_DIR ?= $(KALEIDOSCOPE_DIR)/etc + +export ARDUINO_CONTENT ?= $(KALEIDOSCOPE_DIR)/.arduino +export ARDUINO_DIRECTORIES_DATA ?= $(ARDUINO_CONTENT)/data +export ARDUINO_DIRECTORIES_DOWNLOADS ?= $(ARDUINO_CONTENT)/downloads +export ARDUINO_DIRECTORIES_USER ?= $(ARDUINO_CONTENT)/user +export ARDUINO_CLI_CONFIG ?= $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml +export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS ?= https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json + +ifneq ($(VERBOSE),) +export ARDUINO_VERBOSE ?= --verbose +else +export ARDUINO_VERBOSE ?= +endif +