From 73a2efa6c0d699819b7f336b3d8a5b3675f9a246 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 14 Nov 2023 22:26:19 -0800 Subject: [PATCH] First pass at installing an nrf52 core --- Makefile | 2 +- etc/makefiles/arduino-cli.mk | 8 +++++++- etc/makefiles/sketch.mk | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 97beacb66f..d18779ddb6 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ endif .DEFAULT_GOAL := smoke-sketches .PHONY: setup -setup: $(ARDUINO_CLI_PATH) $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml install-arduino-core-avr install-arduino-core-kaleidoscope checkout-platform prepare-virtual +setup: $(ARDUINO_CLI_PATH) $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml install-arduino-core-avr install-arduino-core-kaleidoscope checkout-platform prepare-virtual install-arduino-core-nrf52 @: .PHONY: checkout-platform diff --git a/etc/makefiles/arduino-cli.mk b/etc/makefiles/arduino-cli.mk index 06bd8bde74..a17be23254 100644 --- a/etc/makefiles/arduino-cli.mk +++ b/etc/makefiles/arduino-cli.mk @@ -111,7 +111,7 @@ ifneq ($(KALEIDOSCOPE_CCACHE),) ccache_wrapper_property := --build-property compiler.wrapper.cmd=ccache endif -.PHONY: configure-arduino-cli install-arduino-core-kaleidoscope install-arduino-core-avr +.PHONY: configure-arduino-cli install-arduino-core-kaleidoscope install-arduino-core-avr install-arduino-core-nrf52 .PHONY: stupid-workaround-for-make-inclusion-semantics stupid-workaround-for-make-inclusion-semantics: @@ -142,6 +142,12 @@ install-arduino-core-avr: arduino-update-cores $(QUIET) $(ARDUINO_CLI) core install "arduino:avr" +install-arduino-core-nrf52: arduino-update-cores + $(QUIET) ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json \ + $(ARDUINO_CLI) core update-index + $(QUIET) ARDUINO_BOARD_MANAGER_ADDITIONAL_URLS=https://adafruit.github.io/arduino-board-index/package_adafruit_index.json \ + $(ARDUINO_CLI) core install "adafruit:nrf52" + install-arduino-core-deps: $(QUIET) $(ARDUINO_CLI) core install "keyboardio:avr-tools-only" $(QUIET) $(ARDUINO_CLI) core install "keyboardio:gd32-tools-only" diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index f6aa1e5c44..caa2af6c12 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -107,7 +107,7 @@ endif # @: # dummy recipe for the sketch file -.PHONY: compile configure-arduino-cli install-arduino-core-kaleidoscope install-arduino-core-avr +.PHONY: compile .PHONY: disassemble decompile size-map flash clean all test all: compile