Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvebu: implement compatibility version for DSA migration
This implements the newly introduced compat-version to prevent upgrade between swconfig and DSA for mvebu. Just define a compat version with minor increment and an appropriate message for both image (in Makefile) and device (in base-files). Having taken care of sysupgrade, we can put back the SUPPORTED_DEVICES that have been removed in previous patches to prevent broken config. Attention: All users that already updated to the DSA versions in master will receive the same incompatibility warning since their devices are still "1.0" as far as fwtool can tell. Those, and only those, can bypass the upgrade check by using force (-F) without having to reset config again. In addition, the new version string needs to be put into uci config manually, so the new fwtool knows that it actually deals with a "1.1": uci set "system.@System[-1].compat_version=1.1" uci commit system Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (C) 2020 OpenWrt.org | ||
# | ||
|
||
. /lib/functions.sh | ||
. /lib/functions/uci-defaults.sh | ||
|
||
board_config_update | ||
|
||
case "$(board_name)" in | ||
linksys,wrt1200ac|\ | ||
linksys,wrt1900ac-v1|\ | ||
linksys,wrt1900ac-v2|\ | ||
linksys,wrt1900acs|\ | ||
linksys,wrt3200acm|\ | ||
linksys,wrt32x|\ | ||
solidrun,clearfog-pro-a1) | ||
ucidef_set_compat_version "1.1" | ||
;; | ||
esac | ||
|
||
board_config_flush | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters