Skip to content

Commit

Permalink
First pass at installing an nrf52 core
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Nov 15, 2023
1 parent 9cca6d6 commit 73a2efa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion etc/makefiles/arduino-cli.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion etc/makefiles/sketch.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73a2efa

Please sign in to comment.