mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
build: add ALT3 and ALT4 vendor/model/variant
This is needed for the Netgear EX7300 series v2. Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
This commit is contained in:
parent
d5943ffed8
commit
f0e4595188
@ -333,6 +333,8 @@ define Device/InitProfile
|
|||||||
DEVICE_ALT0_TITLE = $$(DEVICE_ALT0_VENDOR) $$(DEVICE_ALT0_MODEL)$$(if $$(DEVICE_ALT0_VARIANT), $$(DEVICE_ALT0_VARIANT))
|
DEVICE_ALT0_TITLE = $$(DEVICE_ALT0_VENDOR) $$(DEVICE_ALT0_MODEL)$$(if $$(DEVICE_ALT0_VARIANT), $$(DEVICE_ALT0_VARIANT))
|
||||||
DEVICE_ALT1_TITLE = $$(DEVICE_ALT1_VENDOR) $$(DEVICE_ALT1_MODEL)$$(if $$(DEVICE_ALT1_VARIANT), $$(DEVICE_ALT1_VARIANT))
|
DEVICE_ALT1_TITLE = $$(DEVICE_ALT1_VENDOR) $$(DEVICE_ALT1_MODEL)$$(if $$(DEVICE_ALT1_VARIANT), $$(DEVICE_ALT1_VARIANT))
|
||||||
DEVICE_ALT2_TITLE = $$(DEVICE_ALT2_VENDOR) $$(DEVICE_ALT2_MODEL)$$(if $$(DEVICE_ALT2_VARIANT), $$(DEVICE_ALT2_VARIANT))
|
DEVICE_ALT2_TITLE = $$(DEVICE_ALT2_VENDOR) $$(DEVICE_ALT2_MODEL)$$(if $$(DEVICE_ALT2_VARIANT), $$(DEVICE_ALT2_VARIANT))
|
||||||
|
DEVICE_ALT3_TITLE = $$(DEVICE_ALT3_VENDOR) $$(DEVICE_ALT3_MODEL)$$(if $$(DEVICE_ALT3_VARIANT), $$(DEVICE_ALT3_VARIANT))
|
||||||
|
DEVICE_ALT4_TITLE = $$(DEVICE_ALT4_VENDOR) $$(DEVICE_ALT4_MODEL)$$(if $$(DEVICE_ALT4_VARIANT), $$(DEVICE_ALT4_VARIANT))
|
||||||
DEVICE_VENDOR :=
|
DEVICE_VENDOR :=
|
||||||
DEVICE_MODEL :=
|
DEVICE_MODEL :=
|
||||||
DEVICE_VARIANT :=
|
DEVICE_VARIANT :=
|
||||||
@ -345,6 +347,12 @@ define Device/InitProfile
|
|||||||
DEVICE_ALT2_VENDOR :=
|
DEVICE_ALT2_VENDOR :=
|
||||||
DEVICE_ALT2_MODEL :=
|
DEVICE_ALT2_MODEL :=
|
||||||
DEVICE_ALT2_VARIANT :=
|
DEVICE_ALT2_VARIANT :=
|
||||||
|
DEVICE_ALT3_VENDOR :=
|
||||||
|
DEVICE_ALT3_MODEL :=
|
||||||
|
DEVICE_ALT3_VARIANT :=
|
||||||
|
DEVICE_ALT4_VENDOR :=
|
||||||
|
DEVICE_ALT4_MODEL :=
|
||||||
|
DEVICE_ALT4_VARIANT :=
|
||||||
DEVICE_PACKAGES :=
|
DEVICE_PACKAGES :=
|
||||||
DEVICE_DESCRIPTION = Build firmware images for $$(DEVICE_TITLE)
|
DEVICE_DESCRIPTION = Build firmware images for $$(DEVICE_TITLE)
|
||||||
endef
|
endef
|
||||||
@ -424,7 +432,9 @@ DEFAULT_DEVICE_VARS := \
|
|||||||
DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \
|
DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \
|
||||||
DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \
|
DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \
|
||||||
DEVICE_ALT1_VENDOR DEVICE_ALT1_MODEL DEVICE_ALT1_VARIANT \
|
DEVICE_ALT1_VENDOR DEVICE_ALT1_MODEL DEVICE_ALT1_VARIANT \
|
||||||
DEVICE_ALT2_VENDOR DEVICE_ALT2_MODEL DEVICE_ALT2_VARIANT
|
DEVICE_ALT2_VENDOR DEVICE_ALT2_MODEL DEVICE_ALT2_VARIANT \
|
||||||
|
DEVICE_ALT3_VENDOR DEVICE_ALT3_MODEL DEVICE_ALT3_VARIANT \
|
||||||
|
DEVICE_ALT4_VENDOR DEVICE_ALT4_MODEL DEVICE_ALT4_VARIANT
|
||||||
|
|
||||||
define Device/ExportVar
|
define Device/ExportVar
|
||||||
$(1) : $(2):=$$($(2))
|
$(1) : $(2):=$$($(2))
|
||||||
@ -507,6 +517,12 @@ define Device/Build/initramfs
|
|||||||
DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
|
DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \
|
||||||
DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
|
DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \
|
||||||
DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
|
DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \
|
||||||
|
DEVICE_ALT3_VENDOR="$$(DEVICE_ALT3_VENDOR)" \
|
||||||
|
DEVICE_ALT3_MODEL="$$(DEVICE_ALT3_MODEL)" \
|
||||||
|
DEVICE_ALT3_VARIANT="$$(DEVICE_ALT3_VARIANT)" \
|
||||||
|
DEVICE_ALT4_VENDOR="$$(DEVICE_ALT4_VENDOR)" \
|
||||||
|
DEVICE_ALT4_MODEL="$$(DEVICE_ALT4_MODEL)" \
|
||||||
|
DEVICE_ALT4_VARIANT="$$(DEVICE_ALT4_VARIANT)" \
|
||||||
DEVICE_TITLE="$$(DEVICE_TITLE)" \
|
DEVICE_TITLE="$$(DEVICE_TITLE)" \
|
||||||
DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
|
DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \
|
||||||
TARGET="$(BOARD)" \
|
TARGET="$(BOARD)" \
|
||||||
@ -615,6 +631,12 @@ define Device/Build/image
|
|||||||
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
|
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
|
||||||
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
|
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
|
||||||
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
|
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
|
||||||
|
DEVICE_ALT3_VENDOR="$(DEVICE_ALT3_VENDOR)" \
|
||||||
|
DEVICE_ALT3_MODEL="$(DEVICE_ALT3_MODEL)" \
|
||||||
|
DEVICE_ALT3_VARIANT="$(DEVICE_ALT3_VARIANT)" \
|
||||||
|
DEVICE_ALT4_VENDOR="$(DEVICE_ALT4_VENDOR)" \
|
||||||
|
DEVICE_ALT4_MODEL="$(DEVICE_ALT4_MODEL)" \
|
||||||
|
DEVICE_ALT4_VARIANT="$(DEVICE_ALT4_VARIANT)" \
|
||||||
DEVICE_TITLE="$(DEVICE_TITLE)" \
|
DEVICE_TITLE="$(DEVICE_TITLE)" \
|
||||||
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
|
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
|
||||||
TARGET="$(BOARD)" \
|
TARGET="$(BOARD)" \
|
||||||
@ -660,6 +682,12 @@ define Device/Build/artifact
|
|||||||
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
|
DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \
|
||||||
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
|
DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \
|
||||||
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
|
DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \
|
||||||
|
DEVICE_ALT3_VENDOR="$(DEVICE_ALT3_VENDOR)" \
|
||||||
|
DEVICE_ALT3_MODEL="$(DEVICE_ALT3_MODEL)" \
|
||||||
|
DEVICE_ALT3_VARIANT="$(DEVICE_ALT3_VARIANT)" \
|
||||||
|
DEVICE_ALT4_VENDOR="$(DEVICE_ALT4_VENDOR)" \
|
||||||
|
DEVICE_ALT4_MODEL="$(DEVICE_ALT4_MODEL)" \
|
||||||
|
DEVICE_ALT4_VARIANT="$(DEVICE_ALT4_VARIANT)" \
|
||||||
DEVICE_TITLE="$(DEVICE_TITLE)" \
|
DEVICE_TITLE="$(DEVICE_TITLE)" \
|
||||||
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
|
DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \
|
||||||
TARGET="$(BOARD)" \
|
TARGET="$(BOARD)" \
|
||||||
@ -701,6 +729,8 @@ $(if $(strip $(DEVICE_ALT0_TITLE)),Alternative device titles:
|
|||||||
- $(DEVICE_ALT0_TITLE))
|
- $(DEVICE_ALT0_TITLE))
|
||||||
$(if $(strip $(DEVICE_ALT1_TITLE)),- $(DEVICE_ALT1_TITLE))
|
$(if $(strip $(DEVICE_ALT1_TITLE)),- $(DEVICE_ALT1_TITLE))
|
||||||
$(if $(strip $(DEVICE_ALT2_TITLE)),- $(DEVICE_ALT2_TITLE))
|
$(if $(strip $(DEVICE_ALT2_TITLE)),- $(DEVICE_ALT2_TITLE))
|
||||||
|
$(if $(strip $(DEVICE_ALT3_TITLE)),- $(DEVICE_ALT3_TITLE))
|
||||||
|
$(if $(strip $(DEVICE_ALT4_TITLE)),- $(DEVICE_ALT4_TITLE))
|
||||||
@@
|
@@
|
||||||
|
|
||||||
endef
|
endef
|
||||||
@ -718,6 +748,14 @@ ifneq ($$(strip $$(DEVICE_ALT2_TITLE)),)
|
|||||||
DEVICE_DISPLAY = $$(DEVICE_ALT2_TITLE) ($$(DEVICE_TITLE))
|
DEVICE_DISPLAY = $$(DEVICE_ALT2_TITLE) ($$(DEVICE_TITLE))
|
||||||
$$(info $$(call Device/DumpInfo,$(1)))
|
$$(info $$(call Device/DumpInfo,$(1)))
|
||||||
endif
|
endif
|
||||||
|
ifneq ($$(strip $$(DEVICE_ALT3_TITLE)),)
|
||||||
|
DEVICE_DISPLAY = $$(DEVICE_ALT3_TITLE) ($$(DEVICE_TITLE))
|
||||||
|
$$(info $$(call Device/DumpInfo,$(1)))
|
||||||
|
endif
|
||||||
|
ifneq ($$(strip $$(DEVICE_ALT4_TITLE)),)
|
||||||
|
DEVICE_DISPLAY = $$(DEVICE_ALT4_TITLE) ($$(DEVICE_TITLE))
|
||||||
|
$$(info $$(call Device/DumpInfo,$(1)))
|
||||||
|
endif
|
||||||
DEVICE_DISPLAY = $$(DEVICE_TITLE)
|
DEVICE_DISPLAY = $$(DEVICE_TITLE)
|
||||||
$$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1)))))
|
$$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1)))))
|
||||||
endef
|
endef
|
||||||
|
@ -21,7 +21,7 @@ if not file_path.is_file():
|
|||||||
|
|
||||||
def get_titles():
|
def get_titles():
|
||||||
titles = []
|
titles = []
|
||||||
for prefix in ["", "ALT0_", "ALT1_", "ALT2_"]:
|
for prefix in ["", "ALT0_", "ALT1_", "ALT2_", "ALT3_", "ALT4_"]:
|
||||||
title = {}
|
title = {}
|
||||||
for var in ["vendor", "model", "variant"]:
|
for var in ["vendor", "model", "variant"]:
|
||||||
if getenv("DEVICE_{}{}".format(prefix, var.upper())):
|
if getenv("DEVICE_{}{}".format(prefix, var.upper())):
|
||||||
|
Loading…
Reference in New Issue
Block a user