Files added to the swu archive

218 views
Skip to first unread message

Haener, Michael

unread,
May 13, 2022, 7:09:39 AM5/13/22
to swup...@googlegroups.com
Hi

Currently all files which are listed in the SRC_URI are added to the
swu file. With INHIBIT_SWUPDATE_ADD_SRC_URI the addition can be
generally prevented.

In my opinion there is a missing possibility to add a specific file, to
solve this I see three possibilities:

1) introduce a new variable to define the additional files (e.g.
SRC_URI_SWU with fallback to SRC_URI)

2) Dynamic reading of the sw-description file and adding all contained
files. (search sw-description file for all "filename")

3) Provide a filter, which searches for the files in SRC_URI.

My knowledge about swupdate is too low to decide what would be the best
solution. How do you see this?

Kind regards
Michael

Stefano Babic

unread,
May 13, 2022, 4:03:43 PM5/13/22
to Haener, Michael, swup...@googlegroups.com
Hi Nichael,

On 13.05.22 13:09, Haener, Michael wrote:
> Hi
>
> Currently all files which are listed in the SRC_URI are added to the
> swu file. With INHIBIT_SWUPDATE_ADD_SRC_URI the addition can be
> generally prevented.
>
> In my opinion there is a missing possibility to add a specific file, to
> solve this I see three possibilities:

But this becomes a work-around.

Please consider that meta-swupdate is able to include *any* image / file
that is put in DEPLOYDIR. For rootfs, too, we are not just putting
files, but we create packages that are installed during do_rootfs. So if
you need a specific granularity, you should:

- create a package with what you want to deploy
- in the recipe of package, add a do_deploy and put the files to be
included in SWU to DEPLOYDIR
- in the SWU recipe, add SWUPDATE_IMAGES += <list of above files>

You shouldn't add those files to SRC_URI, but you should add own recipe
for those files and *deploy* them.

>
> 1) introduce a new variable to define the additional files (e.g.
> SRC_URI_SWU with fallback to SRC_URI)
>
> 2) Dynamic reading of the sw-description file and adding all contained
> files. (search sw-description file for all "filename")
>
> 3) Provide a filter, which searches for the files in SRC_URI.
>
> My knowledge about swupdate is too low to decide what would be the best
> solution. How do you see this?
>

See above.

Best regards,
Stefano Babic

> Kind regards
> Michael
>

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Haener, Michael

unread,
May 16, 2022, 2:58:33 AM5/16/22
to swup...@googlegroups.com, sba...@denx.de
Hi Stefano

Thank you for your reply. Ok, I will try your approach.

Best regards,
Michael
Reply all
Reply to author
Forward
0 new messages