Skip to content

Commit a8b1989

Browse files
committed
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
1 parent e7acadb commit a8b1989

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

patch_board_config.cmake

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ function (patch_board_config)
1717
-P ./lib/nanopb/generator/proto
1818
./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
1919
--json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json
20+
--backup
2021
--new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2
21-
COMMAND ${VENV_BIN_DIR}/concatenate
22-
-P ./proto
23-
-P ./lib/nanopb/generator/proto
24-
./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
25-
--json-board-config-filename ./configs/${GP2040_BOARDCONFIG}/board-config.json
26-
--new-filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.bin
22+
COMMAND ${VENV_BIN_DIR}/summarize-gp2040ce
23+
--filename ./build/${PROJECT_NAME}_${CMAKE_PROJECT_VERSION}_${GP2040_BOARDCONFIG}.uf2
2724
COMMENT "Patching binary with board config"
2825
)
2926
endfunction()

0 commit comments

Comments
 (0)