ath79: split DEVICE_TITLE in multiple variables

This allows the definition of DEVICE_VENDOR, DEVICE_MODEL and
DEVICE_VARIANT. All three are merged together to look the same as the
current DEVICE_TITLE. Also, if DEVICE_TITLE is set it's directly used as
a *fallback* for devices which weren't upgraded yet.

This is based on the work of @sudhanshu16.

The motivation is to create JSON files based on provided metadata,
needing clear differentiation between vendor, model and revision.

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren
2019-06-16 21:34:46 +02:00
committed by Daniel Golle
parent cb689f2723
commit 8c3dbaf8b4
9 changed files with 280 additions and 142 deletions

View File

@@ -11,7 +11,9 @@ endef
define Device/netgear_wnr612-v2
$(Device/netgear_ar7240)
DEVICE_TITLE := Netgear WNR612v2
DEVICE_VENDOR := NETGEAR
DEVICE_MODEL := WNR612
DEVICE_VARIANT := v2
DEVICE_DTS := ar7240_netgear_wnr612-v2
NETGEAR_BOARD_ID := REALWNR612V2
SUPPORTED_DEVICES += wnr612-v2
@@ -20,7 +22,8 @@ TARGET_DEVICES += netgear_wnr612-v2
define Device/on_n150r
$(Device/netgear_ar7240)
DEVICE_TITLE := ON Network N150R
DEVICE_VENDOR := On Networks
DEVICE_MODEL := N150R
NETGEAR_BOARD_ID := N150R
SUPPORTED_DEVICES += n150r
endef