From a4ee680bbf1e49692bac7027eba69be61b70242b Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Tue, 3 Sep 2019 19:41:50 +0800 Subject: [PATCH] app_update: use build system api to get partition_table dir --- components/app_update/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/app_update/CMakeLists.txt b/components/app_update/CMakeLists.txt index 8d0e45dbb..9fa866e59 100644 --- a/components/app_update/CMakeLists.txt +++ b/components/app_update/CMakeLists.txt @@ -29,8 +29,11 @@ if(NOT BOOTLOADER_BUILD) idf_build_get_property(idf_path IDF_PATH) idf_build_get_property(python PYTHON) + + idf_component_get_property(partition_table_dir partition_table COMPONENT_DIR) + add_custom_command(OUTPUT ${blank_otadata_file} - COMMAND ${python} ${idf_path}/components/partition_table/gen_empty_partition.py + COMMAND ${python} ${partition_table_dir}/gen_empty_partition.py ${otadata_size} ${blank_otadata_file}) add_custom_target(blank_ota_data ALL DEPENDS ${blank_otadata_file})