From 6061b0874abc21865946fa0c0c659431595922c5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 27 Oct 2015 22:44:03 +0100 Subject: [PATCH] build: fix manifest generation for model aliases --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2910a4f3..08c4babb 100644 --- a/Makefile +++ b/Makefile @@ -433,9 +433,16 @@ manifest: FORCE ( \ cd $(GLUON_IMAGEDIR)/sysupgrade; \ $(foreach profile,$(PROFILES), \ - $(foreach model,$(GLUON_$(profile)_MODELS), \ - file="$(IMAGE_PREFIX)-$(model)-sysupgrade$(GLUON_$(profile)_SYSUPGRADE_EXT)"; \ - [ -e "$$file" ] && echo '$(model)' "$(PREPARED_RELEASE)" "$$($(SHA512SUM) "$$file")" "$$file"; \ + $(if $(GLUON_$(profile)_SYSUPGRADE_EXT), \ + $(foreach model,$(GLUON_$(profile)_MODELS), \ + file="$(IMAGE_PREFIX)-$(model)-sysupgrade$(GLUON_$(profile)_SYSUPGRADE_EXT)"; \ + [ -e "$$file" ] && echo '$(model)' "$(PREPARED_RELEASE)" "$$($(SHA512SUM) "$$file")" "$$file"; \ + \ + $(foreach alias,$(GLUON_$(profile)_MODEL_$(model)_ALIASES), \ + file="$(IMAGE_PREFIX)-$(alias)-sysupgrade$(GLUON_$(profile)_SYSUPGRADE_EXT)"; \ + [ -e "$$file" ] && echo '$(alias)' "$(PREPARED_RELEASE)" "$$($(SHA512SUM) "$$file")" "$$file"; \ + ) \ + ) \ ) \ ) : \ ) >> $(GLUON_BUILDDIR)/$(GLUON_BRANCH).manifest.tmp