1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
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 build: find_md5 list with mod time and sorted 2020-12-07 10:55:59 -10:00
device_table.txt
download.mk build: prevent excessive re-evaluation of PKG_VERSION 2020-10-16 21:39:10 +02:00
feeds.mk build: FeedSourcesAppend add kmod feed to snapshot 2020-10-30 00:39:09 +00:00
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 build: create $(PKG_SYMVERS_DIR) if non-existent 2020-11-19 18:52:15 +01:00
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 netfilter: Add queue support for nftables 2020-11-12 18:19:44 +01:00
nls.mk
package-bin.mk
package-defaults.mk build: allow file modes per binary package 2020-09-09 14:13:59 +01:00
package-dumpinfo.mk
package-ipkg.mk build: use mkhash for IPK metadata checksums 2020-11-26 19:06:13 -10:00
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 build: reduce cleanup binary calls in rootfs.mk 2020-12-05 22:07:00 -10:00
scan.awk
scan.mk
shell.sh
subdir.mk include/subdir: on build failure always print error 2020-11-27 18:02:40 -10:00
target.mk build: filter out more autogenerated kernel config options 2020-11-13 13:18:20 +01:00
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 build: Extract trusted-firmware-a.mk 2020-12-02 23:46:01 +01:00
u-boot.mk
uclibc++.mk libcxx[abi]: remove 2020-12-07 10:46:43 -10:00
unpack.mk
verbose.mk
version.mk build: switch VERSION_REPO to HTTPS 2020-08-31 11:26:10 +01:00