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.
This commit is contained in:
Sudeep Mohanty
2026-02-16 17:10:40 +01:00
committed by Frantisek Hrbata
parent 55205d22c8
commit 512dacab6a
+6 -1
View File
@@ -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