From da32b277151f9a93a82d92f8b813708fcc9b9f97 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 26 May 2018 11:45:35 +0200 Subject: image_type_tezi: remove workaround to set prefuncs https://bugzilla.yoctoproject.org/show_bug.cgi?id=11372 With the fix available in rocko we can now replace the workaround with the usual bitbake syntax. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- classes/image_type_tezi.bbclass | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 958d050..231cea4 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -201,13 +201,7 @@ python rootfs_tezi_json() { bb.note("Toradex Easy Installer metadata file image.json written.") } -python () { - if bb.utils.contains("IMAGE_FSTYPES", "teziimg", True, False, d): - # do_image_teziimg does not work because the anonymous python function - # in image.bbclass gets called later and overwrites prefuncs. In master - # this is fixed, so we might be able to get rid of this work around in rocko - d.appendVarFlag('do_image', 'prefuncs', 'rootfs_tezi_json') -} +do_image_teziimg[prefuncs] += "rootfs_tezi_json" IMAGE_CMD_teziimg () { bbnote "Create bootfs tarball" -- cgit v1.2.3