summaryrefslogtreecommitdiff
path: root/recipes-images
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-09-04 10:29:02 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 18:24:15 +0200
commit61b638dd937a24ad72a21c765ce5dcd397ce7e82 (patch)
tree5c182e04f04f09fea0f1384bff68c65c7537b25b /recipes-images
parentafe91b312d6275262f0200bf513c71e946f879f8 (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>
Diffstat (limited to 'recipes-images')
-rw-r--r--recipes-images/images/tdx-image-fstype.inc5
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