esp_hw_support: remove public dependency on bootloader_support

In c4bcf111, soc_memory_types.h header was moved from soc to
esp_hw_support. Since some of the functions are also used in
bootloader and because esp_hw_support is not part of the bootloader
build, part of the functions were moved into bootloader_support.
To make these functions available to the app, bootloader_support was
added as a public dependency of esp_hw_support.

Since esp_hw_support is in common requirements list, this has added
bootloader_support as a public requirement to every component in the
build. Adding new public requirements outside of common components
is undesirable, since components may accidentally include headers
from bootloader_support without explicitly declaring it as a
requirement.

This commit reverts this addition. Until a better solution is found,
some part of esp_memory_utils.h is duplicated into
bootloader_memory_utils.h. A CI check is added to make sure these
files stay in sync.
This commit is contained in:
Ivan Grokhotkov
2022-04-16 08:02:57 +02:00
parent 3aeb80acb6
commit 85cb079838
6 changed files with 197 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
extern "C" {
#endif
/** The content of this file is to be kept in sync with the common section of esp_memory_utils.h **/
/**
* @brief Check if the pointer is in iram
*
@@ -147,6 +149,9 @@ inline static void * esp_ptr_diram_iram_to_dram(const void *p) {
#endif
}
/** End of the common section that has to be in sync with esp_memory_utils.h **/
/** Don't add new functions below **/
#ifdef __cplusplus
}
#endif