Skip to content

Commit

Permalink
metadata: add "metadata_version" field
Browse files Browse the repository at this point in the history
allow downstream projects to see the current version of the metadata,
usefull if eventually more variables change

Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar authored and dangowrt committed Mar 6, 2019
1 parent 208f287 commit 7fa9794
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/image-commands.mk
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ json_quote=$(subst ','\'',$(subst ",\",$(1)))
metadata_devices=$(if $(1),$(subst "$(space)","$(comma)",$(strip $(foreach v,$(1),"$(call json_quote,$(v))"))))
metadata_json = \
'{ $(if $(IMAGE_METADATA),$(IMAGE_METADATA)$(comma)) \
"metadata_version": "1.0", \
"supported_devices":[$(call metadata_devices,$(1))], \
"version": { \
"dist": "$(call json_quote,$(VERSION_DIST))", \
Expand Down

0 comments on commit 7fa9794

Please sign in to comment.