aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-10 14:49:36 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-10 14:49:36 +0200
commit573643a1d3220830de47c810cb1a6be629ce7abd (patch)
tree162a6923f388fef4ab62ddb7ed4a2c82f274fa97 /main
parentae8dfd2028bfbac5f37bbf4f5d7c2d8bff618b02 (diff)
WIP protobuf hello world
Diffstat (limited to 'main')
-rw-r--r--main/.gitignore2
l---------main/lib1
m---------main/lib/FreeRTOS-Kernel0
m---------main/lib/pico-sdk0
-rw-r--r--main/makefile19
5 files changed, 4 insertions, 18 deletions
diff --git a/main/.gitignore b/main/.gitignore
index 7c3ba25..0e56cf2 100644
--- a/main/.gitignore
+++ b/main/.gitignore
@@ -1,3 +1 @@
config.h
-build
-.cache
diff --git a/main/lib b/main/lib
new file mode 120000
index 0000000..dc598c5
--- /dev/null
+++ b/main/lib
@@ -0,0 +1 @@
+../lib \ No newline at end of file
diff --git a/main/lib/FreeRTOS-Kernel b/main/lib/FreeRTOS-Kernel
deleted file mode 160000
-Subproject dbf70559b27d39c1fdb68dfb9a32140b6a6777a
diff --git a/main/lib/pico-sdk b/main/lib/pico-sdk
deleted file mode 160000
-Subproject 6a7db34ff63345a7badec79ebea3aaef1712f37
diff --git a/main/makefile b/main/makefile
index 1986cd3..9df4f09 100644
--- a/main/makefile
+++ b/main/makefile
@@ -1,22 +1,9 @@
-# this file is for lazy people (loek)
+TARGET = $(BUILD_DIR)/main.uf2
-.PHONY: FORCE
+include ../lazy.mk
-all: FORCE build/main.uf2
-
-build/build.ninja: CMakeLists.txt
- mkdir -p build
- cmake -B build -G Ninja --fresh --log-level WARNING
-
-build/main.uf2: build/build.ninja FORCE
- ninja -C build
-# ninja automatically builds in parallel, so is preferred
-
-flash: build/main.uf2 FORCE
+flash: $(TARGET) FORCE
picotool load -fx $<
# -f forces a reboot of the pico before flashing
# -x resets the pico after flashing
-clean: FORCE
- $(RM) -r build
-