mbox series

[0/9] Overhaul swupdate.cfg handling

Message ID 20210126131412.3567-1-michael.adler@siemens.com
Headers show
Series Overhaul swupdate.cfg handling | expand

Message

Michael Adler Jan. 26, 2021, 1:14 p.m. UTC
Hi,

the following patch series addresses the following points regarding the parsing
and handling of swupdate.cfg:

* software_select (-e) can now be specified in swupdate.cfg as well; CLI has
  precedence though
* avoid opening and reading swupdate.cfg in many different places (less syscalls)
* some additional logging statements to ease debugging

The patches are mostly self-contained. Naturally, the logging patches are somewhat
opinionated, so I don't mind at all if you feel like skipping them.

Please let me know what you think. I'm more than happy to incorporate any feedback
you might have. Thanks for taking the time.

Kind regards,
Michael Adler

Michael Adler (9):
  Enable tracing for early start up code
  editorconfig: added settings for *.cfg files
  Added software select to swupdate.cfg globals
  Config parser: Additional logging
  Avoid re-opening and re-reading config file
  Use new swupdate.cfg API to read sw versions
  Use new config API in suricatta clients
  Avoid re-opening and parsing swupdate.cfg for each subprocess
  Simplify get_sw_versions

 .editorconfig                       |  4 ++
 core/artifacts_versions.c           | 25 +++-------
 core/pctl.c                         | 20 ++++----
 core/swupdate.c                     | 73 +++++++++++++++++++++++-----
 corelib/swupdate_settings.c         | 75 ++++++++++++++++++-----------
 examples/configuration/swupdate.cfg |  2 +
 include/parselib.h                  |  2 -
 include/pctl.h                      |  9 +++-
 include/swupdate_settings.h         | 41 ++++++++++++++--
 include/util.h                      |  3 +-
 parser/parser.c                     |  2 +
 suricatta/server_general.c          |  8 ++-
 suricatta/server_hawkbit.c          | 11 +++--
 13 files changed, 196 insertions(+), 79 deletions(-)