Openwrt/include
Adrian Schmutzler fbd4214bb0 build: improve message for incompatible image on "legacy" devices
It has been reported that the current message displayed during
upgrade with compat_version change is misleading for "legacy"
devices, i.e. those without the "new" fwtool. This is partially
caused by the fact that we need to exploit the supported_devices
string to get some message text displayed for these devices.

This patch modifies the message to make it more helpful and
include additional information, e.g.

  Device linksys,wrt3200acm not supported by this image
  Supported devices: linksys,wrt3200acm linksys-whateverelse - Image
  version mismatch: image 1.1, device 1.0. Please wipe config during
  upgrade (force required) or reinstall. Reason: Config cannot be
  migrated from swconfig to DSA

Note that the line breaks (except the one before Supported devices)
are added manually here, I hesitate to hack \n into the
supported_devices as well. The "Reason:" will only be displayed if
DEVICE_COMPAT_MESSAGE is set for the device, otherwise
"Please check documentation ..." will be shown instead.

While at it, also rearrange the code in image-commands.mk to
make lines shorter and remove the double filter-out command.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-08-08 16:13:51 +02:00
..
site
autotools.mk
cmake.mk
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
image-commands.mk build: improve message for incompatible image on "legacy" devices 2020-08-08 16:13:51 +02:00
image-legacy.mk
image.mk build: add DEVICE_COMPAT_VERSION and DEVICE_COMPAT_MESSAGE 2020-07-31 11:40:15 +02:00
kernel-build.mk build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00
kernel-defaults.mk
kernel-version.mk kernel: bump 5.4 to 5.4.52 2020-07-17 11:00:33 +02:00
kernel.mk
netfilter.mk
nls.mk
package-bin.mk
package-defaults.mk toolchain: remove gcc libssp and use libc variant 2020-06-17 23:57:07 +02:00
package-dumpinfo.mk
package-ipkg.mk build: reduce number of files passed to ipk-remove 2020-07-11 13:33:28 +02:00
package-seccomp.mk
package.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
prereq-build.mk build: set up host command for egrep 2020-08-06 13:17:13 +02:00
prereq.mk
quilt.mk
rootfs.mk
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk hostapd: add wpad-basic-wolfssl variant 2020-08-07 12:02:19 +02:00
toolchain-build.mk
toplevel.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk