From ba617a5779019332ebc37f2a542efab8dff8e533 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Wed, 3 Jan 2024 17:01:23 +0100
Subject: [PATCH] Added ROM build to CMake.
---
.gitignore | 6 +++---
pipico/CMakeLists.txt | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/.gitignore b/.gitignore
index 43bb9f2..329f60b 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
-a.out
-
-src/gpclk
+pidrive/*.o
+pidrive/*#062000
+pipico/build/
diff --git a/pipico/CMakeLists.txt b/pipico/CMakeLists.txt
index 2692a39..109e578 100644
--- a/pipico/CMakeLists.txt
+++ b/pipico/CMakeLists.txt
@@ -18,6 +18,9 @@ FetchContent_Declare(a2pico
)
FetchContent_MakeAvailable(a2pico)
+add_dependencies(${PROJECT_NAME} rom)
+add_custom_target(rom make -C ../../pidrive)
+
target_sources(${PROJECT_NAME} PRIVATE
main.c
board.c