immortalwrt/include
Adrian Schmutzler 75697c9c12
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>
Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-01-29 22:47:58 +08:00
..
site fix permisson 2019-08-16 15:09:42 +08:00
autotools.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
cmake.mk build: replace which with Bash command built-in 2021-01-05 17:18:46 +08:00
debug.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
depends.mk build: find_md5 list with mod time and sorted 2020-12-08 11:39:50 +08:00
device_table.txt fix permission 2019-09-30 13:52:50 +08:00
download.mk build: prevent excessive re-evaluation of PKG_VERSION 2020-10-17 11:51:24 +08:00
feeds.mk build: FeedSourcesAppend add kmod feed to snapshot 2020-10-31 10:23:48 +08:00
hardened-ld-pie.specs fix permission 2019-09-30 13:52:50 +08:00
hardening.mk Revert "files: sync from openwrt v19.07 (#2690)" 2020-02-03 12:33:25 +08:00
host-build.mk build: drop ccache variables from specific targets 2021-01-02 12:08:22 +08:00
image-commands.mk scripts: mkits.sh make it possible to specify fdt@# 2020-09-26 11:33:12 +08:00
image-legacy.mk fix permisson 2019-08-16 15:09:42 +08:00
image.mk treewide: provide global default for SUPPORTED_DEVICES 2021-01-29 22:47:58 +08:00
kernel-build.mk kernel-build: fix STRIP_KERNEL_EXPORTS for 64-bit kernels 2021-01-02 12:01:41 +08:00
kernel-defaults.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
kernel-version.mk kernel: bump 4.19 to 4.19.171 2021-01-29 03:28:54 +08:00
kernel.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
netfilter.mk kernel/iptables: add modules for qos-gargoyle 2020-02-25 23:03:16 +08:00
nls.mk fix permisson 2019-08-16 15:09:42 +08:00
package-bin.mk fix permisson 2019-08-16 15:09:42 +08:00
package-defaults.mk build: allow file modes per binary package 2020-09-10 17:18:58 +08:00
package-dumpinfo.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
package-ipkg.mk base-files: remove execute bit and shebang from functions.sh 2021-01-29 22:36:08 +08:00
package-seccomp.mk fix permisson 2019-08-16 15:09:42 +08:00
package.mk build: drop ccache variables from specific targets 2021-01-02 12:08:22 +08:00
prereq-build.mk build/prereq: merge ifndef IB block together 2021-01-02 11:56:30 +08:00
prereq.mk build: replace which with Bash command built-in 2021-01-05 17:18:46 +08:00
quilt.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
rootfs.mk build: reduce cleanup binary calls in rootfs.mk 2020-12-08 11:31:45 +08:00
scan.awk fix permisson 2019-08-16 15:09:42 +08:00
scan.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
shell.sh add luci-app-haproxy & luci-app-udpspeederv2 2019-05-25 21:05:51 +08:00
subdir.mk include/subdir: on build failure always print error 2020-11-28 19:14:22 +08:00
target.mk build: filter out more autogenerated kernel config options 2020-11-14 13:52:03 +08:00
toolchain-build.mk sync build script for OpenWrt 19.07 2020-02-21 02:41:00 +08:00
toplevel.mk build: use ccache -C for cleaning the cache 2021-01-07 09:57:24 +08:00
u-boot.mk u-boot.mk: switch download to https 2020-04-27 08:55:20 +08:00
uclibc++.mk libcxx[abi]: remove 2020-12-12 11:33:11 +08:00
unpack.mk build: add zstd support to pack/unpack functions 2020-05-31 19:37:36 +08:00
verbose.mk fix permisson 2019-08-16 15:09:42 +08:00
version.mk build: switch VERSION_REPO to HTTPS 2020-09-01 17:33:44 +08:00