diff options
author | Paul Spooren <mail@aparcar.org> | 2019-08-13 11:38:17 -1000 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 08:14:52 +0200 |
commit | 07926d7def59e5684b488e9b614342edc19e7eb2 (patch) | |
tree | d1344422f382ef0882f54ec5c964c8b9c861b069 | |
parent | 7546be60074e452751ba2a48eddbc13910bec708 (diff) | |
download | upstream-07926d7def59e5684b488e9b614342edc19e7eb2.tar.gz upstream-07926d7def59e5684b488e9b614342edc19e7eb2.tar.bz2 upstream-07926d7def59e5684b488e9b614342edc19e7eb2.zip |
imagebuilder: fix `make info` for empty SUPPORTED_DEVICES
For x86/64 (maybe more) target the SUPPORTED_DEVICES variable is empty
which causes the `&&` junction to fail, producing a non zero exit code.
Tested-by: Paul Spooren <mail@aparcar.org>
Fixed-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r-- | target/imagebuilder/files/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile index 22b2731358..15b3d5c35c 100644 --- a/target/imagebuilder/files/Makefile +++ b/target/imagebuilder/files/Makefile @@ -76,7 +76,8 @@ USER_PROFILE ?= $(firstword $(PROFILE_NAMES)) PROFILE_LIST = $(foreach p,$(PROFILE_NAMES), \ echo '$(patsubst DEVICE_%,%,$(p)):'; $(if $($(p)_NAME),echo ' $(subst ','"'"',$($(p)_NAME))'; ) \ echo ' Packages: $($(p)_PACKAGES)'; echo ' hasImageMetadata: $($(p)_HAS_IMAGE_METADATA)'; \ - [ "$($(p)_SUPPORTED_DEVICES)" ] && echo ' SupportedDevices: $($(p)_SUPPORTED_DEVICES)'; ) + $(if $($(p)_SUPPORTED_DEVICES),echo ' SupportedDevices: $($(p)_SUPPORTED_DEVICES)';) ) + .profiles.mk: .targetinfo @$(SCRIPT_DIR)/target-metadata.pl profile_mk $< '$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET))' > $@ |