diff mbox series

[OpenWrt-Devel,3/3] ImageBuilder: Show alternative device names

Message ID 20200401061748.2022142-4-mail@aparcar.org
State Under Review
Delegated to: Paul Spooren
Headers show
Series ImageBuilder: Show alternative names | expand

Commit Message

Paul Spooren April 1, 2020, 6:17 a.m. UTC
With the introduction of `Target-Profile-AltNames` the ImageBuilder
should show these names to allow users to find their devices without
knowing the name used in the OpenWrt build system.

Signed-off-by: Paul Spooren <mail@aparcar.org>
---
 target/imagebuilder/files/Makefile | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index 15b3d5c35c..d92cd253c8 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -75,6 +75,7 @@  include $(INCLUDE_DIR)/target.mk
 USER_PROFILE ?= $(firstword $(PROFILE_NAMES))
 PROFILE_LIST = $(foreach p,$(PROFILE_NAMES), \
 	echo '$(patsubst DEVICE_%,%,$(p)):'; $(if $($(p)_NAME),echo '    $(subst ','"'"',$($(p)_NAME))'; ) \
+	$(if $($(p)_ALT_NAMES),echo '    AlternativeNames: $(subst ','"'"',$($(p)_ALT_NAMES))'; ) \
 	echo '    Packages: $($(p)_PACKAGES)'; echo '    hasImageMetadata: $($(p)_HAS_IMAGE_METADATA)'; \
 	$(if $($(p)_SUPPORTED_DEVICES),echo '    SupportedDevices: $($(p)_SUPPORTED_DEVICES)';) )