Skip to content
Snippets Groups Projects
Commit 12abed64 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

Add manifest generator

parent e4cf98c0
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,11 @@ download prepare images: FORCE
@$(CheckExternal)
+@$(GLUONMAKE) $@
manifest: FORCE
@$(CheckExternal)
[ -n "$(BRANCH)" ] || (echo 'Please set BRANCH to create a manifest.'; false)
+@$(GLUONMAKE) $@
dirclean: clean
@$(CheckExternal)
+@$(SUBMAKE) -C $(TOPDIR) -r dirclean
......@@ -291,6 +296,22 @@ call_image/%: FORCE
images: $(patsubst %,call_image/%,$(PROFILES)) ;
manifest: FORCE
mkdir -p $(GLUON_IMAGEDIR)/sysupgrade
(cd $(GLUON_IMAGEDIR)/sysupgrade && echo "BRANCH=$(BRANCH)" && echo && ($(foreach profile,$(PROFILES), \
$(foreach model,$(GLUON_$(profile)_MODELS), \
for file in gluon-*-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(model)-*-sysupgrade.bin; do \
[ -e "$$file" ] && echo \
$(GLUON_$(profile)_MODEL_$(model)) \
$$(echo "$$file" | sed -n -r 's/^gluon-$(GLUON_SITE_CODE)-(.*)-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(model)-[^-]*-sysupgrade\.bin$$/\1/p') \
$$(sha512sum "$$file" | awk '{print $$1}') \
"$$file" && break; \
done; \
) \
) :)) > $(GLUON_IMAGEDIR)/sysupgrade/$(BRANCH).manifest
.PHONY: all images prepare clean cleanall
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment