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