diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-02-06 18:50:47 -0800 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2017-02-08 20:11:18 +0100 |
commit | edcaa48932e961ecfcd4eb7a3194e78b28a4303d (patch) | |
tree | 5abf776d6261fe6837583f57e348f5d90d5067df | |
parent | ce12ca8ea5a7f35f46885119b1545fbe5b83abcc (diff) |
image_type_tezi: do not create image.json if teziimg is not requested
In case teziimg is not among the requested images (not part of
IMAGE_FSTYPES) we don't need to create a Toradex Easy Installer
image.json file.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | classes/image_type_tezi.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index f386414..9cca637 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -3,6 +3,9 @@ inherit image_types IMAGE_DEPENDS_teziimg = "tezi-metadata:do_deploy" python rootfs_tezi_json() { + if not bb.utils.contains("IMAGE_FSTYPES", "teziimg", True, False, d): + return + import json, subprocess from datetime import date from collections import OrderedDict |