From 32d49b95f4f9ee876e7b810a4fc691fdc0366f7c Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Mon, 16 Feb 2026 17:10:40 +0100 Subject: [PATCH] fix(partition_table): Fixed linux build for Build System v2 Build System v2 does not have the internal __idf_build_target, so use ALL target instead for unconditional partition table generation on linux. --- components/partition_table/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/partition_table/CMakeLists.txt b/components/partition_table/CMakeLists.txt index da57cbea2b..e4697b27e8 100644 --- a/components/partition_table/CMakeLists.txt +++ b/components/partition_table/CMakeLists.txt @@ -134,7 +134,12 @@ if(${target} STREQUAL "linux" AND EXISTS ${partition_csv}) # target. This is a hack, since that target name is an implementation detail # of the build system. - add_dependencies(__idf_build_target partition-table) + if(IDF_BUILD_V2) + # Build system v2 does not support __idf_build_target target, so add to ALL target. + add_custom_target(partition-table-linux-build ALL DEPENDS partition-table) + else() + add_dependencies(__idf_build_target partition-table) + endif() endif() # Add signing steps