aboutsummaryrefslogtreecommitdiff
path: root/puzzle/neo/makefile
diff options
context:
space:
mode:
authorElwin <elwinhammer@gmail.com>2024-06-23 11:31:15 +0200
committerElwin <elwinhammer@gmail.com>2024-06-23 11:34:16 +0200
commit9664deb3e817b616dd1e8f73a89c0703a0771464 (patch)
tree2eec7a1b473958db42057e60597ca0f2e6474c2c /puzzle/neo/makefile
parenta9eb2013e6b7297cfce4116179f4ab2d58d1c8d6 (diff)
Neotrellis Freertos support
Diffstat (limited to 'puzzle/neo/makefile')
-rw-r--r--puzzle/neo/makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/puzzle/neo/makefile b/puzzle/neo/makefile
new file mode 100644
index 0000000..509d8e3
--- /dev/null
+++ b/puzzle/neo/makefile
@@ -0,0 +1,20 @@
+TARGET = $(BUILD_DIR)/main.elf
+
+include ../../lazy.mk
+
+export SERIAL_PORT ?= /dev/ttyACM0
+flash: upload-main;
+upload-main: $(TARGET)
+
+test: test_a test_b;
+
+test_a:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_A -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM0 -C . flash
+
+test_b:
+ $(MAKE) -C . clean
+ $(MAKE) -E CMFLAGS+=-D\ CMAKE_CXX_FLAGS=-DTEST_B -C .
+ $(MAKE) -E SERIAL_PORT=/dev/ttyACM1 -C . flash
+