Message ID | 20240726124225.621957-3-leon.anavi@konsulko.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-swupdate-boards,1/4] conf/layer.conf: Add Scarthgap support | expand |
On 26.07.24 14:42, Leon Anavi wrote: > Add u-boot-fw-utils an an additional runtime dependency required > to run swupdate on the target. > > Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> > --- > recipes-support/swupdate/swupdate_%.bbappend | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/recipes-support/swupdate/swupdate_%.bbappend b/recipes-support/swupdate/swupdate_%.bbappend > index be4bbd8..139b111 100644 > --- a/recipes-support/swupdate/swupdate_%.bbappend > +++ b/recipes-support/swupdate/swupdate_%.bbappend > @@ -9,6 +9,9 @@ SRC_URI += " \ > > SRC_URI:append:beaglebone-yocto = " file://10-remove-force-ro" > > +# additional dependencies required to run swupdate on the target > +RDEPENDS:${PN} += "u-boot-fw-utils" > + > do_install:append() { > install -m 0644 ${WORKDIR}/09-swupdate-args ${D}${libdir}/swupdate/conf.d/ > sed -i "s#@MACHINE@#${MACHINE}#g" ${D}${libdir}/swupdate/conf.d/09-swupdate-args > @@ -22,4 +25,4 @@ do_install:append:beaglebone-yocto() { > if ${@bb.utils.contains('DEPENDS','libubootenv','false','true',d)}; then > install -m 0644 ${WORKDIR}/10-remove-force-ro ${D}${libdir}/swupdate/conf.d/ > fi > -} > \ No newline at end of file > +} Acked-by: Stefano Babic <stefano.babic@swupdate.org>
diff --git a/recipes-support/swupdate/swupdate_%.bbappend b/recipes-support/swupdate/swupdate_%.bbappend index be4bbd8..139b111 100644 --- a/recipes-support/swupdate/swupdate_%.bbappend +++ b/recipes-support/swupdate/swupdate_%.bbappend @@ -9,6 +9,9 @@ SRC_URI += " \ SRC_URI:append:beaglebone-yocto = " file://10-remove-force-ro" +# additional dependencies required to run swupdate on the target +RDEPENDS:${PN} += "u-boot-fw-utils" + do_install:append() { install -m 0644 ${WORKDIR}/09-swupdate-args ${D}${libdir}/swupdate/conf.d/ sed -i "s#@MACHINE@#${MACHINE}#g" ${D}${libdir}/swupdate/conf.d/09-swupdate-args @@ -22,4 +25,4 @@ do_install:append:beaglebone-yocto() { if ${@bb.utils.contains('DEPENDS','libubootenv','false','true',d)}; then install -m 0644 ${WORKDIR}/10-remove-force-ro ${D}${libdir}/swupdate/conf.d/ fi -} \ No newline at end of file +}
Add u-boot-fw-utils an an additional runtime dependency required to run swupdate on the target. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> --- recipes-support/swupdate/swupdate_%.bbappend | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)