aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/json_add_image_info.py
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2020-06-30 01:02:43 -1000
committerDaniel Golle <daniel@makrotopia.org>2020-07-13 21:24:30 +0100
commite3618eb2cc210763fe1b309fd7e337fdf8a98f0b (patch)
tree694199e59cbc42c63a92421d8947840222497534 /scripts/json_add_image_info.py
parent3dbd74d03295f9fc357a88fa2160c75119908bfd (diff)
downloadupstream-e3618eb2cc210763fe1b309fd7e337fdf8a98f0b.tar.gz
upstream-e3618eb2cc210763fe1b309fd7e337fdf8a98f0b.tar.bz2
upstream-e3618eb2cc210763fe1b309fd7e337fdf8a98f0b.zip
build: store default/device packages in JSON
With this commit the `profiles.json` contain both the target specific `default_packages` as well as the device specific `device_packages` as a array of strings. This information is required for downstream projects like the various web-based interactive firmware generators. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit 263f7e5bbd119ebed1f514c16f659a2e2a2b132c)
Diffstat (limited to 'scripts/json_add_image_info.py')
-rwxr-xr-xscripts/json_add_image_info.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/json_add_image_info.py b/scripts/json_add_image_info.py
index b4d2dd8d71..d1599b514a 100755
--- a/scripts/json_add_image_info.py
+++ b/scripts/json_add_image_info.py
@@ -41,6 +41,7 @@ image_info = {
"sha256": image_hash,
}
],
+ "device_packages": getenv("DEVICE_PACKAGES").split(),
"supported_devices": getenv("SUPPORTED_DEVICES").split(),
"titles": get_titles(),
}