|
@@ -775,6 +775,8 @@ the ESP-IDF build system entirely by using a CMake feature called ExternalProjec
|
|
|
- The second set of commands adds a library target, which points to the "imported" library file built by the external system. Some properties need to be set in order to add include directories and tell CMake where this file is.
|
|
- The second set of commands adds a library target, which points to the "imported" library file built by the external system. Some properties need to be set in order to add include directories and tell CMake where this file is.
|
|
|
- Finally, the generated library is added to `ADDITIONAL_MAKE_CLEAN_FILES`_. This means ``make clean`` will delete this library. (Note that the other object files from the build won't be deleted.)
|
|
- Finally, the generated library is added to `ADDITIONAL_MAKE_CLEAN_FILES`_. This means ``make clean`` will delete this library. (Note that the other object files from the build won't be deleted.)
|
|
|
|
|
|
|
|
|
|
+.. note:: When using an external build process with PSRAM, remember to add ``-mfix-esp32-psram-cache-issue`` to the C compiler arguments. See :ref:`CONFIG_SPIRAM_CACHE_WORKAROUND` for details of this flag.
|
|
|
|
|
+
|
|
|
.. _ADDITIONAL_MAKE_CLEAN_FILES_note:
|
|
.. _ADDITIONAL_MAKE_CLEAN_FILES_note:
|
|
|
|
|
|
|
|
ExternalProject dependencies, clean builds
|
|
ExternalProject dependencies, clean builds
|
|
@@ -961,6 +963,8 @@ parameters which can be set, the full list of which is as follows:
|
|
|
The example in :example:`build_system/cmake/idf_as_lib` demonstrates the creation of an application equivalent to :example:`hello world application <get-started/hello_world>`
|
|
The example in :example:`build_system/cmake/idf_as_lib` demonstrates the creation of an application equivalent to :example:`hello world application <get-started/hello_world>`
|
|
|
using a custom CMake project.
|
|
using a custom CMake project.
|
|
|
|
|
|
|
|
|
|
+.. note:: The IDF build system can only set compiler flags for source files that it builds. When an external CMakeLists.txt file is used and PSRAM is enabled, remember to add ``-mfix-esp32-psram-cache-issue`` to the C compiler arguments. See :ref:`CONFIG_SPIRAM_CACHE_WORKAROUND` for details of this flag.
|
|
|
|
|
+
|
|
|
.. _cmake-file-globbing:
|
|
.. _cmake-file-globbing:
|
|
|
|
|
|
|
|
File Globbing & Incremental Builds
|
|
File Globbing & Incremental Builds
|