[PATCH v2 0/6] sysupgrade: introduce compatibility version for devices

Adrian Schmutzler freifunk at adrianschmutzler.de
Tue Jul 14 10:28:19 EDT 2020


This revised patchset provides some polishing to the initial submission.

It does not change the mechanics substantially, but just provides some
aesthetic improvements.

Notable functional changes:
- compat version check is now executed _after_ the supported_devices check
- the DEVICE_COMPAT_MESSAGE is now also printed for the legacy sysupgrade hack

Cosmetic changes:
- The "error" message have been reworded to be more conclusive and provide
  more information.

Further additions:
- Instead of the example implementation patch for ath79, this now features
  the actual implementation for swconfig->DSA change in mvebu and kirkwood.
  (adding mt7621 will be considered after merge)

While v1 has been device-tested, I have not run-tested this patchset so
far, as changes between them are mostly cosmetic and I want to wait for
feedback first.

Adrian Schmutzler (6):
  build: add DEVICE_COMPAT_VERSION and DEVICE_COMPAT_MESSAGE
  base-files: add support for compat_version on device
  base-files: fwtool: implement compatibility check for images
  base-files: fwtool: make compat_version backward compatible
  mvebu: implement compatibility version for DSA migration
  kirkwood: implement compatibility version for DSA migration

 include/image-commands.mk                     | 10 ++++--
 include/image.mk                              |  3 ++
 package/base-files/files/bin/config_generate  |  7 +++++
 .../files/lib/functions/uci-defaults.sh       |  6 ++++
 .../base-files/files/lib/upgrade/fwtool.sh    | 31 +++++++++++++++++--
 .../base-files/etc/board.d/02_network         |  1 +
 target/linux/kirkwood/image/Makefile          |  7 +++++
 .../base-files/etc/board.d/02_network         | 14 +++++----
 target/linux/mvebu/image/cortexa9.mk          | 19 ++++++++++++
 9 files changed, 88 insertions(+), 10 deletions(-)

-- 
2.20.1




More information about the openwrt-devel mailing list