From 7830af1eb999d6a4678f97331e7d180fe643caff Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 15 Nov 2021 23:59:59 +0100 Subject: [PATCH] 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). --- components/partition_table/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/partition_table/CMakeLists.txt b/components/partition_table/CMakeLists.txt index 385d2a5d96..f3b607d685 100644 --- a/components/partition_table/CMakeLists.txt +++ b/components/partition_table/CMakeLists.txt @@ -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()