* Re: Task after do_package repeating despite stamp
@ 2012-03-15 19:13 Daniel Lazzari
2012-03-15 20:57 ` Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lazzari @ 2012-03-15 19:13 UTC (permalink / raw)
To: 'openembedded-core@lists.openembedded.org'
>Date: Thu, 15 Mar 2012 08:19:54 +0000
>From: Richard Purdie <richard.purdie@linuxfoundation.org>
>Subject: Re: [OE-core] Task after do_package repeating despite stamp
>To: Patches and discussions about the oe-core layer
> <openembedded-core@lists.openembedded.org>
>Message-ID: <1331799594.18586.61.camel@ted>
>Content-Type: text/plain; charset="UTF-8"
>
>On Thu, 2012-03-15 at 01:11 +0000, Daniel Lazzari wrote:
>> Let me preface this by saying I'm running an older oe-core (Angstrom) so
>this may be fixed in the latest, but if so, I'm hoping someone can point me at
>the patch to fix it.
>>
>> I have a few recipes in our layer that need to generate proprietary packages
>from ${D} after the do_package task has copied the files for its own devices.
>To do this, I have a task like:
>>
>> do_create_foo() {
>> #Generate foo package here
>> foo_pkger ${D} ${DEPLOY_DIR}/foo/${MACHINE}
>> }
>> addtask create_foo after do_package before do_build
>> do_create_foo[dirs] = "${DEPLOY_DIR}/foo/${MACHINE}"
>>
>> The problem is, when building any recipe that depends on this recipe,
>> it reruns do_create_foo. This is especially problematic because we use
>> rm_work, so often when it goes back to rerun do_create_foo, ${D} no
>> longer exists. I checked and a stamp exists for the task.
>>
>> Anyone have any insight? Is anyone else seeing something like this?
>
>It looks like you're creating something machine specific since you're
>placing it in ${MACHINE}. This effectively makes anything depending on
>this task machine specific also.
>
>Cheers,
>
>Richard
>
I finally found the answer to this in case anyone else runs into it. The rm_work class removes stamps if they are not in a case statement in that class. Once I added *do_create_foo* to the case statement, the stamp was left alone and everything is working again.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Task after do_package repeating despite stamp
2012-03-15 19:13 Task after do_package repeating despite stamp Daniel Lazzari
@ 2012-03-15 20:57 ` Richard Purdie
0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-03-15 20:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-03-15 at 19:13 +0000, Daniel Lazzari wrote:
> >Date: Thu, 15 Mar 2012 08:19:54 +0000
> >From: Richard Purdie <richard.purdie@linuxfoundation.org>
> >Subject: Re: [OE-core] Task after do_package repeating despite stamp
> >To: Patches and discussions about the oe-core layer
> > <openembedded-core@lists.openembedded.org>
> >Message-ID: <1331799594.18586.61.camel@ted>
> >Content-Type: text/plain; charset="UTF-8"
> >
> >On Thu, 2012-03-15 at 01:11 +0000, Daniel Lazzari wrote:
> >> Let me preface this by saying I'm running an older oe-core (Angstrom) so
> >this may be fixed in the latest, but if so, I'm hoping someone can point me at
> >the patch to fix it.
> >>
> >> I have a few recipes in our layer that need to generate proprietary packages
> >from ${D} after the do_package task has copied the files for its own devices.
> >To do this, I have a task like:
> >>
> >> do_create_foo() {
> >> #Generate foo package here
> >> foo_pkger ${D} ${DEPLOY_DIR}/foo/${MACHINE}
> >> }
> >> addtask create_foo after do_package before do_build
> >> do_create_foo[dirs] = "${DEPLOY_DIR}/foo/${MACHINE}"
> >>
> >> The problem is, when building any recipe that depends on this recipe,
> >> it reruns do_create_foo. This is especially problematic because we use
> >> rm_work, so often when it goes back to rerun do_create_foo, ${D} no
> >> longer exists. I checked and a stamp exists for the task.
> >>
> >> Anyone have any insight? Is anyone else seeing something like this?
> >
> >It looks like you're creating something machine specific since you're
> >placing it in ${MACHINE}. This effectively makes anything depending on
> >this task machine specific also.
> >
> >Cheers,
> >
> >Richard
> >
>
> I finally found the answer to this in case anyone else runs into it.
> The rm_work class removes stamps if they are not in a case statement
> in that class. Once I added *do_create_foo* to the case statement, the
> stamp was left alone and everything is working again.
Ah, right. The other solution would be to cover this task with sstate,
see deploy.bbclass as an example.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Task after do_package repeating despite stamp
@ 2012-03-15 2:15 Daniel Lazzari
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Lazzari @ 2012-03-15 2:15 UTC (permalink / raw)
To: 'openembedded-core@lists.openembedded.org'
>Date: Thu, 15 Mar 2012 01:11:00 +0000
>From: Daniel Lazzari <dlazzari@leapfrog.com>
>Subject: [OE-core] Task after do_package repeating despite stamp
>To: "openembedded-core@lists.openembedded.org"
> <openembedded-core@lists.openembedded.org>
>Message-ID:
> <E7A9054A5ACABE48B0E540E46E862B0F0426C4F7@NAEMMAIL01.na.l
>eapfrog.com>
>Content-Type: text/plain; charset="us-ascii"
>
>Let me preface this by saying I'm running an older oe-core (Angstrom) so this
>may be fixed in the latest, but if so, I'm hoping someone can point me at the
>patch to fix it.
>
>I have a few recipes in our layer that need to generate proprietary packages
>from ${D} after the do_package task has copied the files for its own devices.
>To do this, I have a task like:
>
>do_create_foo() {
> #Generate foo package here
> foo_pkger ${D} ${DEPLOY_DIR}/foo/${MACHINE}
>}
>addtask create_foo after do_package before do_build
>do_create_foo[dirs] = "${DEPLOY_DIR}/foo/${MACHINE}"
>
>The problem is, when building any recipe that depends on this recipe, it
>reruns do_create_foo. This is especially problematic because we use
>rm_work, so often when it goes back to rerun do_create_foo, ${D} no longer
>exists. I checked and a stamp exists for the task.
>
>Anyone have any insight? Is anyone else seeing something like this?
>
Upon closer inspection, there isn't actually a stamp for this, just a sigdata file. I put a quick tracer in bb.build.make_stamp and it is reaching this point. At the very least I am not as stuck as I thought I was. Help is still very much appreciated though if anyone knows what's going on.
^ permalink raw reply [flat|nested] 5+ messages in thread* Task after do_package repeating despite stamp
@ 2012-03-15 1:11 Daniel Lazzari
2012-03-15 8:19 ` Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lazzari @ 2012-03-15 1:11 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
Let me preface this by saying I'm running an older oe-core (Angstrom) so this may be fixed in the latest, but if so, I'm hoping someone can point me at the patch to fix it.
I have a few recipes in our layer that need to generate proprietary packages from ${D} after the do_package task has copied the files for its own devices. To do this, I have a task like:
do_create_foo() {
#Generate foo package here
foo_pkger ${D} ${DEPLOY_DIR}/foo/${MACHINE}
}
addtask create_foo after do_package before do_build
do_create_foo[dirs] = "${DEPLOY_DIR}/foo/${MACHINE}"
The problem is, when building any recipe that depends on this recipe, it reruns do_create_foo. This is especially problematic because we use rm_work, so often when it goes back to rerun do_create_foo, ${D} no longer exists. I checked and a stamp exists for the task.
Anyone have any insight? Is anyone else seeing something like this?
Thanks,
Dan Lazzari Jr.
Firmware Engineer
dlazzari@leapfrog.com
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Task after do_package repeating despite stamp
2012-03-15 1:11 Daniel Lazzari
@ 2012-03-15 8:19 ` Richard Purdie
0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-03-15 8:19 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-03-15 at 01:11 +0000, Daniel Lazzari wrote:
> Let me preface this by saying I'm running an older oe-core (Angstrom) so this may be fixed in the latest, but if so, I'm hoping someone can point me at the patch to fix it.
>
> I have a few recipes in our layer that need to generate proprietary packages from ${D} after the do_package task has copied the files for its own devices. To do this, I have a task like:
>
> do_create_foo() {
> #Generate foo package here
> foo_pkger ${D} ${DEPLOY_DIR}/foo/${MACHINE}
> }
> addtask create_foo after do_package before do_build
> do_create_foo[dirs] = "${DEPLOY_DIR}/foo/${MACHINE}"
>
> The problem is, when building any recipe that depends on this recipe,
> it reruns do_create_foo. This is especially problematic because we use
> rm_work, so often when it goes back to rerun do_create_foo, ${D} no
> longer exists. I checked and a stamp exists for the task.
>
> Anyone have any insight? Is anyone else seeing something like this?
It looks like you're creating something machine specific since you're
placing it in ${MACHINE}. This effectively makes anything depending on
this task machine specific also.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-03-15 21:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 19:13 Task after do_package repeating despite stamp Daniel Lazzari
2012-03-15 20:57 ` Richard Purdie
-- strict thread matches above, loose matches on Subject: below --
2012-03-15 2:15 Daniel Lazzari
2012-03-15 1:11 Daniel Lazzari
2012-03-15 8:19 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox