From c8900823d899edfa7b6cfdc46cc6a3ebdf7fb90f Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 18 Feb 2021 14:00:46 +1100 Subject: [PATCH] doc: Update the link to an example that embeds a file Since we have the CA Certificate Store feature, https_request no longer needs to embed any certs. --- docs/en/api-guides/build-system-legacy.rst | 2 +- docs/en/api-guides/build-system.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/api-guides/build-system-legacy.rst b/docs/en/api-guides/build-system-legacy.rst index 553236f1c1..bcd15f50f2 100644 --- a/docs/en/api-guides/build-system-legacy.rst +++ b/docs/en/api-guides/build-system-legacy.rst @@ -591,7 +591,7 @@ The file's contents will be added to the .rodata section in flash, and are avail The names are generated from the full name of the file, as given in COMPONENT_EMBED_FILES. Characters /, ., etc. are replaced with underscores. The _binary prefix in the symbol name is added by objcopy and is the same for both text and binary files. -For an example of using this technique, see :example:`protocols/https_request` - the certificate file contents are loaded from the text .pem file at compile time. +For an example of using this technique, see the "main" component of the file_serving example :example_file:`protocols/http_server/file_serving/main/component.mk` - two files are loaded at build time and linked into the firmware. Code and Data Placements ------------------------ diff --git a/docs/en/api-guides/build-system.rst b/docs/en/api-guides/build-system.rst index c1cd9f2f0e..6af92bf6d4 100644 --- a/docs/en/api-guides/build-system.rst +++ b/docs/en/api-guides/build-system.rst @@ -848,7 +848,7 @@ To embed a file into a project, rather than a component, you can call the functi Place this line after the ``project()`` line in your project CMakeLists.txt file. Replace ``myproject.elf`` with your project name. The final argument can be ``TEXT`` to embed a null-terminated string, or ``BINARY`` to embed the content as-is. -For an example of using this technique, see :example:`protocols/https_request` - the certificate file contents are loaded from the text .pem file at compile time. +For an example of using this technique, see the "main" component of the file_serving example :example_file:`protocols/http_server/file_serving/main/CMakeLists.txt` - two files are loaded at build time and linked into the firmware. Code and Data Placements ------------------------