metadata: add "target" entry
authorPaul Spooren <mail@aparcar.org>
Tue, 26 Feb 2019 19:41:52 +0000 (20:41 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 6 Mar 2019 00:11:54 +0000 (01:11 +0100)
add "target" entry based on $(TARGETID) resulting in
`<target>/<subtarget>`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/image-commands.mk

index c6b4b23ce3cf5e7e5ea91a6ae49940e4833889b5..c0bda2084c852098730782fce8148acf511f5c6f 100644 (file)
@@ -360,6 +360,7 @@ metadata_json = \
                        "dist": "$(call json_quote,$(VERSION_DIST))", \
                        "version": "$(call json_quote,$(VERSION_NUMBER))", \
                        "revision": "$(call json_quote,$(REVISION))", \
+                       "target": "$(call json_quote,$(TARGETID))", \
                        "board": "$(call json_quote,$(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)))" \
                } \
        }'