From 620fbdb6ce955d4588b502e91b08e614e53cc4fb Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 1 Jan 2021 20:53:06 -0800 Subject: [PATCH] For the moment, install the adafruit boards, since that's where we get the compiler and tools we want for the samd --- Makefile | 2 +- etc/makefiles/arduino-cli.mk | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 92571d1f..62e0d570 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ DEFAULT_GOAL: smoke-sketches PLUGIN_TEST_SUPPORT_DIR ?= $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/build-tools/ PLUGIN_TEST_BIN_DIR ?= $(PLUGIN_TEST_SUPPORT_DIR)/../toolchain/$(shell gcc --print-multiarch)/bin -setup: $(ARDUINO_CLI_PATH) configure-arduino-cli install-arduino-core-avr install-arduino-core-samd $(ARDUINO_DIRECTORIES_USER)/hardware/kaleidoscope/samd/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt +setup: $(ARDUINO_CLI_PATH) configure-arduino-cli install-arduino-core-avr install-adafruit-core-samd $(ARDUINO_DIRECTORIES_USER)/hardware/kaleidoscope/samd/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt @: diff --git a/etc/makefiles/arduino-cli.mk b/etc/makefiles/arduino-cli.mk index 56016ea1..5c3c3172 100644 --- a/etc/makefiles/arduino-cli.mk +++ b/etc/makefiles/arduino-cli.mk @@ -35,7 +35,7 @@ ARDUINO_CONTENT ?= $(KALEIDOSCOPE_DIR)/.arduino export ARDUINO_DIRECTORIES_DATA ?= $(ARDUINO_CONTENT)/data export ARDUINO_DIRECTORIES_DOWNLOADS ?= $(ARDUINO_CONTENT)/downloads 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 +export ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS ?= https://raw.githubusercontent.com/keyboardio/boardsmanager/master/package_keyboardio_index.json https://adafruit.github.io/arduino-board-index/package_adafruit_index.json # If it looks like Kaleidoscope is inside a "traditional" Arduino hardware directory # in the user's homedir, let's use that. @@ -156,8 +156,8 @@ install-arduino-core-kaleidoscope-samd: install-arduino-core-avr: $(QUIET) $(ARDUINO_CLI) core install "arduino:avr" -install-arduino-core-samd: - $(QUIET) $(ARDUINO_CLI) core install "arduino:samd" +install-adafruit-core-samd: + $(QUIET) $(ARDUINO_CLI) core install "adafruit:samd" arduino-cli-run: $(ARDUINO_CLI) $(ARGS)