diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2024-12-23 16:27:56 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2025-01-09 06:02:49 -0800 |
commit | 6bea4b93af5c8e484e928831a49af5090572390b (patch) | |
tree | f0b16eebde540721892bfc36b8b4b969be5f901f /documentation/ref-manual | |
parent | 111d75956cb01681de29b9819fda4dbbf2e98578 (diff) | |
download | poky-6bea4b93af5c8e484e928831a49af5090572390b.tar.gz |
ref-manual/devtool-reference: add warning note on deploy-target and shared objects
The command `devtool deploy-target` does not handle any dependency of
the application, even when properly listed in DEPENDS or RDEPENDS. While
the current documentation was clear on that, it felt needed to add a
note on the fact that build-time dependencies may also result in
runtime dependencies, especially for people new to the project.
Add a warning block below the existing deploy-target documentation.
Also, link to the Overview and Concepts page, which explains it
thoroughly.
[ YOCTO #14377 ]
Reported-By: Robert Berger <pokylinux@reliableembeddedsystems.com>
(From yocto-docs rev: 018df90485f4ae9312a61885f52cade6d863e3b4)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 56c84004daad5f8a5db53e36852331435d57c8af)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r-- | documentation/ref-manual/devtool-reference.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/ref-manual/devtool-reference.rst b/documentation/ref-manual/devtool-reference.rst index d74d5c29ae..a6ea00c210 100644 --- a/documentation/ref-manual/devtool-reference.rst +++ b/documentation/ref-manual/devtool-reference.rst | |||
@@ -553,6 +553,26 @@ the packages are already on the target. Consequently, when a runtime | |||
553 | call is made in the application for a dependent function (e.g. a library | 553 | call is made in the application for a dependent function (e.g. a library |
554 | call), the function cannot be found. | 554 | call), the function cannot be found. |
555 | 555 | ||
556 | .. warning:: | ||
557 | |||
558 | Runtime dependencies can be explicitly listed in the :term:`RDEPENDS` | ||
559 | variable, but may also be the result of a :term:`DEPENDS` assignment in your | ||
560 | application's recipe. This is usually the case when your application depends | ||
561 | on libraries for compilation: these libraries are listed as build-time | ||
562 | dependencies in the :term:`DEPENDS` variable in your application's recipe. | ||
563 | However these may also be runtime dependencies if they install shared objects | ||
564 | on which your application will dynamically link to at runtime (e.g. shared | ||
565 | libraries ending with ``.so``). | ||
566 | |||
567 | These runtime dependencies are automatically resolved by the | ||
568 | :term:`OpenEmbedded Build System` during the packaging phase. Since | ||
569 | ``devtool`` ignores packaging dependencies, they will not be installed | ||
570 | automatically with ``devtool deploy-target``. | ||
571 | |||
572 | For more information on how the :term:`OpenEmbedded Build System` handles | ||
573 | packaging, see the :ref:`overview-manual/concepts:Automatically Added Runtime | ||
574 | Dependencies` section of the Yocto Project Overview and Concepts Manual. | ||
575 | |||
556 | To be sure you have all the dependencies local to the target, you need | 576 | To be sure you have all the dependencies local to the target, you need |
557 | to be sure that the packages are pre-deployed (installed) on the target | 577 | to be sure that the packages are pre-deployed (installed) on the target |
558 | before attempting to run your application. | 578 | before attempting to run your application. |