Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 420C4C433EF for ; Fri, 11 Feb 2022 17:55:05 +0000 (UTC) Subject: bitbake addtask bbclass dependancies To: bitbake-devel@lists.openembedded.org From: "Martin Leduc" X-Originating-Location: Drummondville, Quebec, CA (184.148.204.177) X-Originating-Platform: Windows Chrome 98 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Fri, 11 Feb 2022 09:55:04 -0800 Message-ID: Content-Type: multipart/alternative; boundary="weYGQb69q72kAH1PJ880" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 11 Feb 2022 17:55:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/13340 --weYGQb69q72kAH1PJ880 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi everyone, I try to figure if the approach is good. For my embeeded image, I need to run a function name do_thisattheend.=C2=A0= The approach I've is: Into a thisattheend.bbclass file, I write: inherit logging do_thisattheend () { bbplain Well, it's done } do_thisattheend [nostamp] =3D "1" addtask after do_image_complete bitbake show the do_rootfs execution, a little quickly do_image_complete an= d done. If I replace addtask thisattheend a fter do_image_complete by addtask thisattheend before do_build after do_image_complete I see Well, it's done And I see it 2 times, when my comprehension is the do_image_complete is cal= led one time. I've to say that I'm confused about the dependency structure and layout bec= ause when I look at the picture: The do_image_complete is the last state of the build process, exactly where= I need to run my task. What I'm doing wrong? Any help is appreciated. Thank you --weYGQb69q72kAH1PJ880 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi everyone,

I try to figure if the approach is good.

For my embeeded image, I need to run a function name do_thisattheend. = ; The approach I've is:

Into a thisattheend.bbclass file, I write:

inherit logging
do_thisattheend () {<= br />bbplain Well, it's done
}

do_thisattheend[nostamp] =3D "1"

addtask after do_image_complete


bitbake show the do_rootfs execution, a little quickly do_image_compl= ete and done.

If I replace addtask thisattheend after do_image_complete
by addtask thisattheend before do_build after do_image_complete
I see Well, it's done
<= span style=3D"background-color: #ffffff; color: #000000;">And I see it 2 ti= mes, when my comprehension is the do_image_complete is called one time.


I've to say that I'm confused about the dependency structure and layou= t because when I look at the picture:

3D""

The do_image_complete is the last state of the build proc= ess, exactly where I need to run my task.

What I'm doing wrong?<= br />
Any help is appreciated.

Thank you
--weYGQb69q72kAH1PJ880--