From b12dec5322be2293db50ca147f64c46f5e3a41a8 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Mon, 15 Apr 2024 10:28:17 -0500 Subject: [PATCH] only patch the UF2, and keep a backup of the old one also spit out the summary info just so people can see what happened happened --- patch_board_config.cmake | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/patch_board_config.cmake b/patch_board_config.cmake index d8bd68e57d..499e2cd8a7 100644 --- a/patch_board_config.cmake +++ b/patch_board_config.cmake @@ -17,13 +17,10 @@ function (patch_board_config) -P ./lib/nanopb/generator/proto ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin --json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json + --backup --new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2 - COMMAND ${VENV_BIN_DIR}/concatenate - -P ./proto - -P ./lib/nanopb/generator/proto - ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin - --json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json - --new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin + COMMAND ${VENV_BIN_DIR}/summarize-gp2040ce + --filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2 COMMENT "Patching binary with board config" ) endfunction()