From 49547c950e2771bedf461c2f2dd54cd88bc0a1c8 Mon Sep 17 00:00:00 2001 From: nthia Date: Thu, 25 Jul 2024 11:32:36 -0700 Subject: [PATCH 1/2] fix to include gcc system paths and instructions for building --- README.md | 22 ++++++++++++++++++++++ TimeMachine/Makefile | 3 +++ 2 files changed, 25 insertions(+) diff --git a/README.md b/README.md index e2e11e3..d3cde83 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,27 @@ # OAM Time Machine for Eurorack +## Install and Build + +Make sure to clone this repo recursively: + +``` +git clone --recurse-submodules https://github.com/oamodular/time-machine +``` + +You will also need some arm eabi packages, which you can get on a debian-ish system with: + +``` +sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib +``` + +Now finally to build: + +``` +(cd DaisyExamples/libDaisy && make) \ +&& (cd DaisyExamples/DaisySP && make) \ +&& (cd TimeMachine && make) +``` + ## Expanders Time Machine has methods for addings expaders. Via I2C pins or by sending/receiving Eurorack level signals to our 8-pin expander dealie. To be clear, these are **not currently used** by the firmware. diff --git a/TimeMachine/Makefile b/TimeMachine/Makefile index d2fa8f7..857ae69 100644 --- a/TimeMachine/Makefile +++ b/TimeMachine/Makefile @@ -8,6 +8,9 @@ CPP_SOURCES = TimeMachine.cpp time_machine_hardware.cpp LIBDAISY_DIR = ../DaisyExamples/libDaisy/ DAISYSP_DIR = ../DaisyExamples/DaisySP/ +USE_DAISYSP_LGPL=1 +C_INCLUDES += ${echo | gcc -xc++ -E -v - 2>&1 | grep '^\s*/' | awk '{ print $1 }'} + # Core location, and generic Makefile. SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core include $(SYSTEM_FILES_DIR)/Makefile From e634886152fa3b4d6d1994708a81b1d98a7bd33e Mon Sep 17 00:00:00 2001 From: nthia Date: Thu, 25 Jul 2024 11:37:02 -0700 Subject: [PATCH 2/2] C_INCLUDES line not needed any more, seemingly --- TimeMachine/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/TimeMachine/Makefile b/TimeMachine/Makefile index 857ae69..324125f 100644 --- a/TimeMachine/Makefile +++ b/TimeMachine/Makefile @@ -9,7 +9,6 @@ LIBDAISY_DIR = ../DaisyExamples/libDaisy/ DAISYSP_DIR = ../DaisyExamples/DaisySP/ USE_DAISYSP_LGPL=1 -C_INCLUDES += ${echo | gcc -xc++ -E -v - 2>&1 | grep '^\s*/' | awk '{ print $1 }'} # Core location, and generic Makefile. SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core