metadata: add "metadata_version" field
allow downstream projects to see the current version of the metadata, usefull if eventually more variables change Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
		 Paul Spooren
					Paul Spooren
				
			
				
					committed by
					
						 Daniel Golle
						Daniel Golle
					
				
			
			
				
	
			
			
			 Daniel Golle
						Daniel Golle
					
				
			
						parent
						
							208f287908
						
					
				
				
					commit
					7fa9794c4c
				
			| @@ -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))", \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user