build/json: add filesystem information
authorPaul Spooren <mail@aparcar.org>
Mon, 14 Dec 2020 00:36:17 +0000 (14:36 -1000)
committerPaul Spooren <mail@aparcar.org>
Mon, 14 Dec 2020 08:07:52 +0000 (22:07 -1000)
Some images are created using different filesystems, most popular
squashfs and ext4. To allow downstream projects to distinguesh between
those, add the `filesystem` information to created json files.

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

index 4e7c31e8dce123de105475a49a298df8d1e2cbe1..8f46c75ffe55c1b9d8e7ad18554cdeb5b45c6116 100644 (file)
@@ -568,6 +568,7 @@ define Device/Build/image
        SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
        IMAGE_NAME="$(IMAGE_NAME)" \
        IMAGE_TYPE=$(word 1,$(subst ., ,$(2))) \
+       IMAGE_FILESYSTEM="$(1)" \
        IMAGE_PREFIX="$(IMAGE_PREFIX)" \
        DEVICE_VENDOR="$(DEVICE_VENDOR)" \
        DEVICE_MODEL="$(DEVICE_MODEL)" \
index ac907c777c4454772ee37b32d246d20299b39da1..d394cf4d1fe433488ce57c061ef56476a5f691c1 100755 (executable)
@@ -51,6 +51,7 @@ image_info = {
             "images": [
                 {
                     "type": getenv("IMAGE_TYPE"),
+                    "filesystem": getenv("IMAGE_FILESYSTEM"),
                     "name": getenv("IMAGE_NAME"),
                     "sha256": image_hash,
                 }