File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ if(CONFIG_ESP_PHY_ENABLED)
101101
102102 if (CONFIG_ESP_PHY_INIT_DATA_IN_PARTITION)
103103 idf_component_get_property(esp_common_dir esp_common COMPONENT_DIR)
104+ idf_component_get_property(esp_rom_dir esp_rom COMPONENT_DIR)
105+ idf_component_get_property(newlib_dir newlib COMPONENT_DIR)
106+ idf_component_get_property(soc_dir soc COMPONENT_DIR)
107+ idf_component_get_property(log_dir log COMPONENT_DIR)
104108 partition_table_get_partition_info(phy_partition_offset
105109 "--partition-type data --partition-subtype phy" "offset" )
106110
@@ -118,8 +122,9 @@ if(CONFIG_ESP_PHY_ENABLED)
118122 DEPENDS ${CMAKE_CURRENT_LIST_DIR} /${idf_target} /phy_init_data.c
119123 COMMAND ${CMAKE_C_COMPILER} -c ${CMAKE_CURRENT_LIST_DIR} /${idf_target} /phy_init_data.c
120124 -I ${esp_common_dir} /include -I ${CMAKE_CURRENT_LIST_DIR} /include
121- -I ${CMAKE_CURRENT_LIST_DIR} /${idf_target} /include
122- -I ${config_dir} -o phy_init_data.obj
125+ -I ${CMAKE_CURRENT_LIST_DIR} /${idf_target} /include -I ${esp_rom_dir} /include
126+ -I ${soc_dir} /${idf_target} /include -I ${newlib_dir} /platform_include
127+ -I ${log_dir} /include -I ${config_dir} -o phy_init_data.obj
123128 COMMAND ${CMAKE_OBJCOPY} -O binary phy_init_data.obj ${phy_init_data_bin}
124129 )
125130 add_custom_target (phy_init_data ALL DEPENDS ${phy_init_data_bin} )
You can’t perform that action at this time.
0 commit comments