1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-16 12:14:01 +02:00
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 Revert faulty tree push 2019-08-12 12:27:06 +02:00
autotools.mk autotools.mk: autoreconf: fix missing install-sh 2019-07-26 08:09:16 +02:00
cmake.mk cmake: Install host packages to lib instead of lib64 2019-12-23 00:22:07 +01:00
debug.mk include: remove trailing whitespaces 2015-03-29 07:29:18 +00:00
depends.mk build: add missing wildcard for ignoring .pkgdir in dependency checks 2017-02-05 22:17:30 +01:00
device_table.txt image: ensure that /dev/console exist in rootfs images 2013-08-27 12:02:58 +00:00
download.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
feeds.mk build: suppress error output in feeds.mk 2019-03-22 00:40:29 +01:00
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 2018-01-27 16:46:45 +01:00
hardening.mk buildsystem: Make PIE ASLR option tristate 2020-01-13 15:34:36 +01:00
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: fix ar71xx legacy images 2017-07-15 07:02:59 +02:00
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-defaults: ensure SOURCE_DATE_EPOCH on /init 2019-10-02 17:11:44 +02:00
kernel-version.mk kernel: bump 5.4 to 5.4.52 2020-07-17 11:00:33 +02:00
kernel.mk build: move symvers files to kernel build dir 2020-04-09 09:54:02 +02:00
netfilter.mk kernel: netfilter.mk: fix kmod-ipt-nat6 installation on 5.4 2020-04-20 15:07:17 +02:00
nls.mk treewide: fix build depends to refer to source package names 2018-01-13 19:54:44 +01:00
package-bin.mk build: use if-then to avoid non-zero return codes in bin/ packaging code 2017-01-23 13:49:45 +01:00
package-defaults.mk toolchain: remove gcc libssp and use libc variant 2020-06-17 23:57:07 +02:00
package-dumpinfo.mk build: expose ABI version in .packageauxvars 2019-01-19 14:32:01 +01:00
package-ipkg.mk build: reduce number of files passed to ipk-remove 2020-07-11 13:33:28 +02:00
package-seccomp.mk include: add a seccomp filter install wrapper 2015-03-26 10:57:56 +00:00
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 build: cleanup possibly dangling Python 2 host symlink 2019-07-26 08:09:16 +02:00
quilt.mk build: Use LINUX_DIR for Kernel/Patch 2019-01-30 13:20:14 +01:00
rootfs.mk rootfs.mk: ensure all timestamp are set to SOURCE_DATE_EPOCH 2019-09-21 03:26:38 +02:00
scan.awk build: propagate override information to .packageinfo 2015-02-09 12:09:31 +00:00
scan.mk build: have scripts/feeds honor all toplevel .mk-files of a feed 2019-10-27 14:32:13 +01:00
shell.sh build: use mkhash to replace various quirky md5sum/openssl calls 2017-01-05 11:09:12 +01:00
subdir.mk build: remove GNU time dependency 2018-08-05 00:06:27 +02:00
target.mk hostapd: add wpad-basic-wolfssl variant 2020-08-07 12:02:19 +02:00
toolchain-build.mk toolchain: Include hardening.mk for toolchain build 2019-01-24 21:52:39 +01:00
toplevel.mk build: improve ccache support 2020-07-11 15:19:53 +02:00
u-boot.mk u-boot.mk: switch download to https 2020-04-26 21:20:47 +02:00
uclibc++.mk libcxx: Add package 2019-12-23 00:22:07 +01:00
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 11:03:30 +02:00
verbose.mk include/verbose.mk: Add sc to failure message 2018-07-30 10:43:36 +02:00
version.mk version.mk: use https:// instead of http:// 2019-06-11 01:49:44 +02:00