aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2024-03-02 13:20:19 +0000
committerMarc Zyngier <maz@kernel.org>2024-03-02 13:20:19 +0000
commita234634e22658a7d6c24e78990bff4f644c03e96 (patch)
tree6bce5cffad12bd7ee89918f24ea5a5beee1be461
parent0e129aa42408d4b18ea8e07415b59282d06b033a (diff)
downloadcs-sw-a234634e22658a7d6c24e78990bff4f644c03e96.tar.gz
Add install target
Being a lazy sod, I rely on my shell history to remember how to flash a new build. Which works most of the time, except when it doesn't. Add an install target that contains the exact runes I need. Probably doesn't work for anyone else, but I'm sure someone will point the err of my ways and provide a patch making it a lot prettier. Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f281060..77afb15 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,4 +41,6 @@ target_link_libraries(${PROJECT_NAME}
tinyusb_device
)
+install(CODE "execute_process(COMMAND bash -c \"mount /dev/disk/by-id/usb-RPI_RP2_E0C9125B0D9B-0\:0-part1 /mnt && cp ./${PROJECT_NAME}.uf2 /mnt/ && eject /mnt\")")
+
#pico_set_binary_type(${PROJECT_NAME} no_flash)