diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-09-04 10:29:02 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-10-03 18:24:15 +0200 |
commit | 61b638dd937a24ad72a21c765ce5dcd397ce7e82 (patch) | |
tree | 5c182e04f04f09fea0f1384bff68c65c7537b25b | |
parent | afe91b312d6275262f0200bf513c71e946f879f8 (diff) |
tdx-image-fstype: make burnflash optional
We might want not to support burn flash for new machines. Make it
optional by checking whether the machine specific directory exists.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r-- | recipes-images/images/tdx-image-fstype.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-images/images/tdx-image-fstype.inc b/recipes-images/images/tdx-image-fstype.inc index a833e03..298ad29 100644 --- a/recipes-images/images/tdx-image-fstype.inc +++ b/recipes-images/images/tdx-image-fstype.inc @@ -186,7 +186,10 @@ fakeroot imagedeploy_arm() { } fakeroot do_imagedeploy() { - imagedeploy + if [ -e ${BURNFLASH} ] + then + imagedeploy + fi } addtask imagedeploy after do_rootfs before do_image_complete |