Merge branch 'bugfix/explicit_use_bsd_string_in_linux_target' into 'master'

docs, spi_flash: explicit use bsd string in linux target

Closes IDF-3267

See merge request espressif/esp-idf!17635
This commit is contained in:
Anton Maklakov 2022-04-06 14:00:36 +08:00
commit a2c8a676a0
5 changed files with 7 additions and 11 deletions

View File

@ -18,9 +18,6 @@
extern "C" {
#endif
#define strlcpy(a, b, c)
#define strlcat(a, b, c)
#define heap_caps_malloc(a, b) NULL
#define MALLOC_CAP_INTERNAL 0
#define MALLOC_CAP_8BIT 0

View File

@ -0,0 +1,3 @@
- Installed IDF including all IDF requirements
- CMock requirements (``Ruby``)
- System package requirements (``libbsd``, ``libbsd-dev``)

View File

@ -60,8 +60,6 @@ The :component_file:`NVS page unit test <nvs_flash/host_test/nvs_page_test/main/
Requirements
^^^^^^^^^^^^
- Installed IDF including all IDF requirements
- CMock requirements (``Ruby``)
- ``libbsd``
.. include:: inc/linux-host-requirements.rst
The host tests have been tested on Ubuntu 20.04 with ``GCC`` version 9 and 10.

View File

@ -300,12 +300,9 @@ Refer to :component_file:`cmock/CMock/docs/CMock_Summary.md` for more details on
Requirements
^^^^^^^^^^^^
The following requirements are necessary to generate the mocks:
The Linux target is the only target where mocking currently works. The following requirements are necessary to generate the mocks:
.. list::
- Installed ESP-IDF with all its requirements
- ``ruby``
- On the Linux target, which is the only target where mocking currently works, ``libbsd`` is required, too
.. include:: inc/linux-host-requirements.rst
Mock a Component
^^^^^^^^^^^^^^^^

View File

@ -0,0 +1 @@
.. include:: ../../en/api-guides/inc/linux-host-requirements.rst