summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2024-12-23 16:27:56 +0100
committerSteve Sakoman <steve@sakoman.com>2025-01-09 08:41:04 -0800
commit4d01328526a900ee9f8989ecc0df43626a8807f9 (patch)
tree5efd41dc2982c5e81b343069017c1644536000b5
parent7dee2d8918adabf4b6dfc303217eb2cc796f6ce1 (diff)
downloadpoky-4d01328526a900ee9f8989ecc0df43626a8807f9.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: daf514d81d08e01657ff2dc171a0afb56753dfc6) 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>
-rw-r--r--documentation/ref-manual/devtool-reference.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/ref-manual/devtool-reference.rst b/documentation/ref-manual/devtool-reference.rst
index a50789171a..ccf4ab3d13 100644
--- a/documentation/ref-manual/devtool-reference.rst
+++ b/documentation/ref-manual/devtool-reference.rst
@@ -550,6 +550,26 @@ the packages are already on the target. Consequently, when a runtime
550call is made in the application for a dependent function (e.g. a library 550call is made in the application for a dependent function (e.g. a library
551call), the function cannot be found. 551call), the function cannot be found.
552 552
553.. warning::
554
555 Runtime dependencies can be explicitly listed in the :term:`RDEPENDS`
556 variable, but may also be the result of a :term:`DEPENDS` assignment in your
557 application's recipe. This is usually the case when your application depends
558 on libraries for compilation: these libraries are listed as build-time
559 dependencies in the :term:`DEPENDS` variable in your application's recipe.
560 However these may also be runtime dependencies if they install shared objects
561 on which your application will dynamically link to at runtime (e.g. shared
562 libraries ending with ``.so``).
563
564 These runtime dependencies are automatically resolved by the
565 :term:`OpenEmbedded Build System` during the packaging phase. Since
566 ``devtool`` ignores packaging dependencies, they will not be installed
567 automatically with ``devtool deploy-target``.
568
569 For more information on how the :term:`OpenEmbedded Build System` handles
570 packaging, see the :ref:`overview-manual/concepts:Automatically Added Runtime
571 Dependencies` section of the Yocto Project Overview and Concepts Manual.
572
553To be sure you have all the dependencies local to the target, you need 573To be sure you have all the dependencies local to the target, you need
554to be sure that the packages are pre-deployed (installed) on the target 574to be sure that the packages are pre-deployed (installed) on the target
555before attempting to run your application. 575before attempting to run your application.