mbox series

[meta-swupdate,v8,0/2] simplify swupdate config

Message ID 20191114172638.19875-1-adrian.freihofer@siemens.com
Headers show
Series simplify swupdate config | expand

Message

Freihofer, Adrian Nov. 14, 2019, 5:26 p.m. UTC
These patches depend on v2 of Revert "systemd generic startup" patch
for swupdate.
Another patchset for meta-swupdate-boards will be sent soon.

It's now possible to have one generic swupdate configuration for systemd
and for sysv init based DISTROs. The build is tested for systemd as well
as for sysv with MACHINE=beaglebone-yocto.
CONFIG_SYSTEMD must be set maually. Otherwise it should just work.

It should now no longer be necessary to rewrite the service files and
init script for each application. Just dropping shell code snippets to
/use/lib/swupdate/conf.d should be enough for most use cases.


Adrian Freihofer (2):
  swupdate: back to init system specific packaging
  swupdate: config via conf.d folder

 recipes-support/swupdate/swupdate.inc              | 149 +++++++++++++--------
 recipes-support/swupdate/swupdate/10-mongoose-args |   1 +
 .../swupdate/swupdate/90-start-progress            |   1 +
 recipes-support/swupdate/swupdate/swupdate         |   4 +-
 .../swupdate-progress.service                      |   5 +-
 .../swupdate-usb.rules                             |   0
 .../swupdate-usb@.service                          |   0
 .../swupdate.service                               |   4 +-
 recipes-support/swupdate/swupdate/swupdate.sh      |  28 ++++
 .../swupdate/swupdate/swupdate.socket.tmpl         |  11 ++
 .../tmpfiles-swupdate.conf}                        |   1 -
 recipes-support/swupdate/swupdate_2019.04.bb       |  19 ---
 recipes-support/swupdate/swupdate_git.bb           |   4 -
 13 files changed, 144 insertions(+), 83 deletions(-)
 create mode 100644 recipes-support/swupdate/swupdate/10-mongoose-args
 create mode 100644 recipes-support/swupdate/swupdate/90-start-progress
 rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-progress.service (61%)
 rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-usb.rules (100%)
 rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-usb@.service (100%)
 rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate.service (59%)
 create mode 100644 recipes-support/swupdate/swupdate/swupdate.sh
 create mode 100644 recipes-support/swupdate/swupdate/swupdate.socket.tmpl
 rename recipes-support/swupdate/{swupdate-2019.04/systemd-tmpfiles-swupdate.conf => swupdate/tmpfiles-swupdate.conf} (60%)

Comments

Stefano Babic Nov. 15, 2019, 2:17 p.m. UTC | #1
On 14/11/19 18:26, Adrian Freihofer wrote:
> These patches depend on v2 of Revert "systemd generic startup" patch
> for swupdate.
> Another patchset for meta-swupdate-boards will be sent soon.
> 
> It's now possible to have one generic swupdate configuration for systemd
> and for sysv init based DISTROs. The build is tested for systemd as well
> as for sysv with MACHINE=beaglebone-yocto.
> CONFIG_SYSTEMD must be set maually. Otherwise it should just work.
> 
> It should now no longer be necessary to rewrite the service files and
> init script for each application. Just dropping shell code snippets to
> /use/lib/swupdate/conf.d should be enough for most use cases.
> 
> 
> Adrian Freihofer (2):
>   swupdate: back to init system specific packaging
>   swupdate: config via conf.d folder
> 
>  recipes-support/swupdate/swupdate.inc              | 149 +++++++++++++--------
>  recipes-support/swupdate/swupdate/10-mongoose-args |   1 +
>  .../swupdate/swupdate/90-start-progress            |   1 +
>  recipes-support/swupdate/swupdate/swupdate         |   4 +-
>  .../swupdate-progress.service                      |   5 +-
>  .../swupdate-usb.rules                             |   0
>  .../swupdate-usb@.service                          |   0
>  .../swupdate.service                               |   4 +-
>  recipes-support/swupdate/swupdate/swupdate.sh      |  28 ++++
>  .../swupdate/swupdate/swupdate.socket.tmpl         |  11 ++
>  .../tmpfiles-swupdate.conf}                        |   1 -
>  recipes-support/swupdate/swupdate_2019.04.bb       |  19 ---
>  recipes-support/swupdate/swupdate_git.bb           |   4 -
>  13 files changed, 144 insertions(+), 83 deletions(-)
>  create mode 100644 recipes-support/swupdate/swupdate/10-mongoose-args
>  create mode 100644 recipes-support/swupdate/swupdate/90-start-progress
>  rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-progress.service (61%)
>  rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-usb.rules (100%)
>  rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate-usb@.service (100%)
>  rename recipes-support/swupdate/{swupdate-2019.04 => swupdate}/swupdate.service (59%)
>  create mode 100644 recipes-support/swupdate/swupdate/swupdate.sh
>  create mode 100644 recipes-support/swupdate/swupdate/swupdate.socket.tmpl
>  rename recipes-support/swupdate/{swupdate-2019.04/systemd-tmpfiles-swupdate.conf => swupdate/tmpfiles-swupdate.conf} (60%)
> 

Applied to -master, thanks !

Best regards,
Stefano Babic