aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-06-25 15:34:44 +0200
committerGuilhem Moulin <guilhem@fripost.org>2019-06-26 01:04:41 +0200
commit67cc18c9ed357d4ba290d62e2f2836601a19ca2b (patch)
treea951bdb27be326deb01189aab1d4a5753fdc27b9 /Makefile
parentd36536e3743f5868f39908762bdab728802232b3 (diff)
Add ArduinoCore-avr as a submodule.
Unfortunately, as of 2019-06-25 the version found in Debian sid is too old (cf. #780706, #925578, #927329), so for now we add ArduinoCore-avr as a submodule. This avoids manually downloading the entire IDE from https://www.arduino.cc .
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 86ad49e..dfdfca9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
AVR_TOOLS_DIR = /usr
-ARDUINO_DIR = /usr/local/arduino
+ARDUINO_DIR = ./lib
ARDMK_DIR = /usr/share/arduino
ARDMK_VENDOR = arduino
@@ -8,7 +8,7 @@ BOARD_TAG = model01
ALTERNATE_CORE = keyboardio
ARDUINO_SKETCHBOOK = ./lib
-ARDUINO_VERSION = $(shell tr "." "0" <$(ARDUINO_DIR)/lib/version.txt)
+ARDUINO_VERSION = $(shell git --no-pager -C $(ARDUINO_DIR)/hardware/$(ARDMK_VENDOR)/$(ARCHITECTURE) tag --points-at HEAD | tr "." "0")
SOURCEDIR = ./src
OBJDIR = ./build