From c329a6dfe01249eb1755226aa917a680153439a0 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 24 Sep 2021 13:31:38 -0700 Subject: [PATCH] wip support for gd32 keyboards --- Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 53c63dc1..fb0a3632 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ endif DEFAULT_GOAL: smoke-sketches -setup: $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt $(ARDUINO_CLI_PATH) $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml install-arduino-core-avr +setup: $(ARDUINO_CLI_PATH) $(ARDUINO_DIRECTORIES_DATA)/arduino-cli.yaml install-arduino-core-avr install-arduino-core-kaleidoscope $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/boards.txt $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt @: @@ -27,9 +27,18 @@ $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/virtual/boards.txt: $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/boards.txt: - git clone -c core.symlinks=true --recurse-submodules=":(exclude)avr/libraries/Kaleidoscope" --recurse-submodules=build-tools --recurse-submodules=toolchain --recurse-submodules=avr/libraries/ git://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio - rm -d $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/libraries/Kaleidoscope + git clone -c core.symlinks=true \ + --recurse-submodules=":(exclude)avr/libraries/Kaleidoscope" \ + --recurse-submodules=":(exclude)gd32/libraries/Kaleidoscope" \ + --recurse-submodules=avr/libraries/ \ + --recurse-submodules=gd32/ \ + --recurse-submodules=gd32/libraries/ \ + git://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio \ + $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio + -rm -d $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/libraries/Kaleidoscope + -rm -d $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/gd32/libraries/Kaleidoscope ln -s $(KALEIDOSCOPE_DIR) $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/avr/libraries/Kaleidoscope + ln -s $(KALEIDOSCOPE_DIR) $(ARDUINO_DIRECTORIES_USER)/hardware/keyboardio/gd32/libraries/Kaleidoscope simulator-tests: $(MAKE) -C tests all