From fd3cc2d25227bb9596714bf3214ac5dfea291322 Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Thu, 29 Feb 2024 11:50:35 +0800 Subject: [PATCH] pmod_microsd: Optimize bom export Signed-off-by: Huang Rui --- pmod_microsd/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmod_microsd/CMakeLists.txt b/pmod_microsd/CMakeLists.txt index eeebcc3f..2ec7c5f1 100644 --- a/pmod_microsd/CMakeLists.txt +++ b/pmod_microsd/CMakeLists.txt @@ -69,8 +69,9 @@ add_custom_command( -o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_positions.csv" "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.kicad_pcb" COMMAND - ${KICADCLI_PROGRAM} sch export python-bom - -o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_bom.xml" + ${KICADCLI_PROGRAM} sch export bom + --preset "Grouped By Value" + -o "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}_gerber/${CMAKE_PROJECT_NAME}_bom.csv" "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.kicad_sch" COMMAND ${CMAKE_COMMAND} -E tar "cfv" "${CMAKE_PROJECT_NAME}_gerber.zip" --format=zip