mbox series

[0/7] Introduce SWUpdate environment

Message ID 20231009153152.416365-1-stefano.babic@swupdate.org
Headers show
Series Introduce SWUpdate environment | expand

Message

Stefano Babic Oct. 9, 2023, 3:31 p.m. UTC
There are use cases where a persistent should be stored but the bootloader
should not be involved. This is aloso supposed to better support updates where
no reboot is requested (application updates), or reboot is still issued but
without bootloader involvement.

Stefano Babic (7):
  Always link libubootenv
  installer: factorize function for preparing env script
  Add "vars" section in sw-description
  Acquire namespace for vars from config file
  util: add getter/setter for libuboot config
  Add attribute in swupdate.cfg to get fw_env.config
  Introduce SWUpdate persistent variables

 Makefile.flags                      |   5 +-
 bootloader/uboot.c                  |  29 +++-----
 core/Makefile                       |   1 +
 core/installer.c                    |  54 +++++++++++++--
 core/swupdate.c                     |   9 +++
 core/swupdate_vars.c                | 103 ++++++++++++++++++++++++++++
 core/util.c                         |  27 ++++++++
 doc/source/sw-description.rst       |  28 ++++++++
 examples/configuration/swupdate.cfg |   4 ++
 include/swupdate.h                  |   2 +
 include/swupdate_vars.h             |  19 +++++
 include/util.h                      |   4 ++
 parser/parser.c                     |  84 ++++++++++++++++++++++-
 13 files changed, 337 insertions(+), 32 deletions(-)
 create mode 100644 core/swupdate_vars.c
 create mode 100644 include/swupdate_vars.h