partition_table: allow enabling this component for Linux target

Currently partition_table_bin target is not added as a dependency
when building Linux app, and has to be specified manually
(idf.py partition-table).
This commit is contained in:
Ivan Grokhotkov 2021-11-15 23:59:59 +01:00
parent d5a1f6bafb
commit 7830af1eb9

View File

@ -1,4 +1,10 @@
idf_component_register(PRIV_REQUIRES esptool_py)
idf_build_get_property(target IDF_TARGET)
set(priv_req)
if(NOT ${target} STREQUAL "linux")
list(APPEND priv_req esptool_py)
endif()
idf_component_register(PRIV_REQUIRES ${priv_req})
if(BOOTLOADER_BUILD)
return()