Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add how to embedded swupdate image into another image #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/source/building-with-yocto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,16 @@ Template for recipe using the class
inherit swupdate


Embedding a swupdate image inside another image
-----------------------------------------------

A use case for this is when you need an image that can program your device the first time.

The only difference, is that your `swupdate-image` can't use `IMAGE_DEPENDS`
because your are going to pull the sysroot of your image and you might have

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is a typo your should be you I guess

conflicts between dependency. (i.e. libgcc and libgcc-initial install the same files)

You need to use intertask dependency explicitly instead of the `IMAGE_DEPENDS` variable.

::
do_swuimage[depends] = "core-image-full-cmdline:do_image_complete virtual/kernel:do_deploy"