All of lore.kernel.org
 help / color / mirror / Atom feed
* New bitbake task dependency
@ 2016-10-25  4:29 Jonathan Poulin
  2016-10-25  6:55 ` Chris Z.
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Poulin @ 2016-10-25  4:29 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

Hello,

I add a new task in my image recipe that inherit of core-image like below :


***************************

do_uimage() {
    cat ${DEPLOY_DIR_IMAGE}/zImage-imx6d-axion.dtb >>
${DEPLOY_DIR_IMAGE}/zImage-initramfs-${MACHINE}.bin
    mkimage -A arm -O linux -T kernel -C none -a 0x12000000 -e 0x12000000
-n "Linux Kernel" -d ${DEPLOY_DIR_IMAGE}/zImage-initramfs-${MACHINE}.bin
${DEPLOY_DIR_IMAGE}/uImage
    md5sum ${DEPLOY_DIR_IMAGE}/uImage | cut -d' ' -f1 >
${DEPLOY_DIR_IMAGE}/uMD5
}

addtask do_uimage after do_deploy before do_build

***************************

The task is run the first time I call  "bitbake prod-image" but for the
subsequent call the task uimage isn't called. I have to call "bitbake -c
uimage prod-image" to run it.

How can I make this new task run each time the task do_deploy need to be
run?

thanks for your help
Jonathan

[-- Attachment #2: Type: text/html, Size: 1067 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: New bitbake task dependency
  2016-10-25  4:29 New bitbake task dependency Jonathan Poulin
@ 2016-10-25  6:55 ` Chris Z.
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Z. @ 2016-10-25  6:55 UTC (permalink / raw)
  To: Jonathan Poulin; +Cc: yoctoproject

[-- Attachment #1: Type: text/plain, Size: 1370 bytes --]

HI,

Check temp directory for taskorder and check if this task is run. Check if
this task is not omitted by sstatecache mechanism.

P.S.
you have EXPORT_FUNCTIONS for this task ?

On Tue, Oct 25, 2016 at 6:29 AM, Jonathan Poulin <jopoulin@gmail.com> wrote:

> Hello,
>
> I add a new task in my image recipe that inherit of core-image like below :
>
>
> ***************************
>
> do_uimage() {
>     cat ${DEPLOY_DIR_IMAGE}/zImage-imx6d-axion.dtb >>
> ${DEPLOY_DIR_IMAGE}/zImage-initramfs-${MACHINE}.bin
>     mkimage -A arm -O linux -T kernel -C none -a 0x12000000 -e 0x12000000
> -n "Linux Kernel" -d ${DEPLOY_DIR_IMAGE}/zImage-initramfs-${MACHINE}.bin
> ${DEPLOY_DIR_IMAGE}/uImage
>     md5sum ${DEPLOY_DIR_IMAGE}/uImage | cut -d' ' -f1 >
> ${DEPLOY_DIR_IMAGE}/uMD5
> }
>
> addtask do_uimage after do_deploy before do_build
>
> ***************************
>
> The task is run the first time I call  "bitbake prod-image" but for the
> subsequent call the task uimage isn't called. I have to call "bitbake -c
> uimage prod-image" to run it.
>
> How can I make this new task run each time the task do_deploy need to be
> run?
>
> thanks for your help
> Jonathan
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 2129 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-25  6:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-25  4:29 New bitbake task dependency Jonathan Poulin
2016-10-25  6:55 ` Chris Z.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.