You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 to
make lines shorter and remove the double filter-out command.

Signed-off-by: Adrian Schmutzler <>
4 years ago
site Revert faulty tree push 5 years ago autoreconf: fix missing install-sh 5 years ago cmake: Install host packages to lib instead of lib64 4 years ago include: remove trailing whitespaces 9 years ago build: add missing wildcard for ignoring .pkgdir in dependency checks 7 years ago
device_table.txt image: ensure that /dev/console exist in rootfs images 11 years ago build: add zstd support to pack/unpack functions 4 years ago build: suppress error output in 5 years ago
hardened-ld-pie.specs build: add hardened builds with PIE (ASLR) support 6 years ago buildsystem: Make PIE ASLR option tristate 4 years ago build: improve ccache support 4 years ago build: improve message for incompatible image on "legacy" devices 4 years ago image: fix ar71xx legacy images 7 years ago build: add DEVICE_COMPAT_VERSION and DEVICE_COMPAT_MESSAGE 4 years ago build: add 'make kernel_xconfig' command 4 years ago kernel-defaults: ensure SOURCE_DATE_EPOCH on /init 5 years ago kernel: bump 5.4 to 5.4.52 4 years ago build: move symvers files to kernel build dir 4 years ago kernel: fix kmod-ipt-nat6 installation on 5.4 4 years ago treewide: fix build depends to refer to source package names 6 years ago build: use if-then to avoid non-zero return codes in bin/ packaging code 7 years ago toolchain: remove gcc libssp and use libc variant 4 years ago build: expose ABI version in .packageauxvars 5 years ago build: reduce number of files passed to ipk-remove 4 years ago include: add a seccomp filter install wrapper 9 years ago build: improve ccache support 4 years ago build: set up host command for egrep 4 years ago build: cleanup possibly dangling Python 2 host symlink 5 years ago build: Use LINUX_DIR for Kernel/Patch 5 years ago ensure all timestamp are set to SOURCE_DATE_EPOCH 5 years ago
scan.awk build: propagate override information to .packageinfo 9 years ago build: have scripts/feeds honor all toplevel .mk-files of a feed 5 years ago build: use mkhash to replace various quirky md5sum/openssl calls 7 years ago build: remove GNU time dependency 6 years ago hostapd: add wpad-basic-wolfssl variant 4 years ago toolchain: Include for toolchain build 5 years ago build: improve ccache support 4 years ago switch download to https 4 years ago libcxx: Add package 4 years ago build: add zstd support to pack/unpack functions 4 years ago include/ Add sc to failure message 6 years ago use https:// instead of http:// 5 years ago