mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
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:
committed by
Frantisek Hrbata
parent
55205d22c8
commit
512dacab6a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user