aboutsummaryrefslogtreecommitdiff
path: root/puzzle/vault/makefile
diff options
context:
space:
mode:
authorElwin <elwinhammer@gmail.com>2024-06-22 17:40:40 +0200
committerElwin <elwinhammer@gmail.com>2024-06-22 17:40:40 +0200
commit9c255363bb578ada6bb53d15e5ca12fa8b39986b (patch)
tree2d6ee87a02d1e0088c1eef86a22564786929b162 /puzzle/vault/makefile
parentf121de7c7e3ca8f0dc526973a5ee2586485aad22 (diff)
Freertos support
Diffstat (limited to 'puzzle/vault/makefile')
-rw-r--r--puzzle/vault/makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/puzzle/vault/makefile b/puzzle/vault/makefile
new file mode 100644
index 0000000..509d8e3
--- /dev/null
+++ b/puzzle/vault/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
+