immortalwrt/target/linux/mediatek/image
Adrian Schmutzler 0e2815c5c6
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 15:20:43 +08:00
..
Config.in target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
gen_banana_pi_img.sh mediatek: fix bashism in gen_banana_pi_img.sh 2020-07-10 12:17:18 +08:00
gen_mt7622_emmc_img.sh mediatek: make emmc image generation work on mt7622 2020-06-08 12:16:11 +08:00
gen_mt7623_emmc_img.sh target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
gen_mtk_mmc_img.sh mediatek: mt7623: use bash for generating bootable images 2020-09-20 11:38:23 +08:00
gen_scatterfile.sh target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
Makefile treewide: provide global default for SUPPORTED_DEVICES 2021-01-29 15:20:43 +08:00
mt7622.mk mediatek: mt7622: select bluetooth module instead of firmware 2020-09-23 11:37:29 +08:00
mt7623.mk target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
mt7623a_unielec_u7623-uEnv.txt target/mediatek: sync with upstream source 2020-07-27 19:47:01 +08:00
mt7623n_bpir2-uEnv.txt mediatek: add SD card image creation for Banana Pi R2 2020-07-09 12:27:01 +08:00
mt7629.mk mediatek: fix image building 2020-05-05 11:53:18 +08:00