Openwrt/include
Adrian Schmutzler f52081bcf9 treewide: provide global default for SUPPORTED_DEVICES
The majority of our targets provide a default value for the variable
SUPPORTED_DEVICES, which is used in images to check against the
compatible on a running device:

  SUPPORTED_DEVICES := $(subst _,$(comma),$(1))

At the moment, this is implemented in the Device/Default block of
the individual targets or even subtargets. However, since we
standardized device names and compatible in the recent past, almost
all targets are following the same scheme now:

  device/image name:  vendor_model
  compatible:         vendor,model

The equal redundant definitions are a symptom of this process.

Consequently, this patch moves the definition to image.mk making it
a global default. For the few targets not using the scheme above,
SUPPORTED_DEVICES will be defined to a different value in
Device/Default anyway, overwriting the default. In other words:
This change is supposed to be cosmetic.

This can be used as a global measure to get the current compatible
with: $(firstword $(SUPPORTED_DEVICES))
(Though this is not precisely an achievement of this commit.)

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-01-23 12:45:21 +01:00
..
site
autotools.mk
cmake.mk build: replace which with Bash command built-in 2021-01-04 19:32:25 +01:00
debug.mk
depends.mk
device_table.txt
download.mk
feeds.mk
hardened-ld-pie.specs
hardening.mk
host-build.mk build: drop ccache variables from specific targets 2021-01-01 10:29:07 -10:00
image-commands.mk build/image: warn if missing qemu-img for VDI/VMDK 2021-01-10 12:28:14 -10:00
image.mk treewide: provide global default for SUPPORTED_DEVICES 2021-01-23 12:45:21 +01:00
kernel-build.mk kernel-build: fix STRIP_KERNEL_EXPORTS for 64-bit kernels 2021-01-01 19:55:59 +01:00
kernel-defaults.mk kernel-defaults: Manage the enabling/disabling of ZSTD 2021-01-09 14:49:48 -08:00
kernel-version.mk kernel: bump 5.4 to 5.4.91 2021-01-20 01:57:05 +01:00
kernel.mk
logo.png include: update logo with better kerning 2021-01-18 09:31:39 -10:00
logo.svg include: update logo with better kerning 2021-01-18 09:31:39 -10:00
netfilter.mk
nls.mk
package-bin.mk
package-defaults.mk
package-dumpinfo.mk
package-ipkg.mk
package-seccomp.mk
package.mk build: drop ccache variables from specific targets 2021-01-01 10:29:07 -10:00
prereq-build.mk build/prereq: merge ifndef IB block together 2020-12-31 09:30:01 -10:00
prereq.mk build: replace which with Bash command built-in 2021-01-04 19:32:25 +01:00
quilt.mk
rootfs.mk
scan.awk
scan.mk
shell.sh
subdir.mk
target.mk
toolchain-build.mk
toplevel.mk build: use ccache -C for cleaning the cache 2021-01-06 15:31:18 -10:00
trusted-firmware-a.mk
u-boot.mk
uclibc++.mk
unpack.mk
verbose.mk
version.mk