Skip to contentSkip to conversation

howto rerun a task whenever it's content chang

DISCUSSION 张忠山 2 participants 6 messages Aug 9, 2016 – Aug 10, 2016

lore
Share & tools
lore

张忠山

author
#0 lore raw

I have a task in test.bb. say do_task1

run 'bitbake test -c task1'. then generate stamp file for it.

Now I found a bug and edit do_task1. but run 'bitbake test -c task1' again, Bitbake said

'Attempted 1 tasks of which 1 didn't need to be rerun and all succeeded'

I remove the stamp file, then the task rerun ok.

It's so strange! The meta data changed, Why the task refuse to rerun?

It should rerun automaticaly.

Any one told me howto let the task auto rerun whenenver it's content changed!

#1 lore raw

Can you share the task, and what release of bitbake you are using? As you say, this should work fine.

Ross

Quoted 25 lines · 张忠山

I have a task in test.bb. say do_task1

run 'bitbake test -c task1'. then generate stamp file for it.

Now I found a bug and edit do_task1. but run 'bitbake test -c task1' again, Bitbake said

'Attempted 1 tasks of which 1 didn't need to be rerun and all
succeeded'

I remove the stamp file, then the task rerun ok.

It's so strange! The meta data changed, Why the task refuse to rerun?

It should rerun automaticaly.

Any one told me howto let the task auto rerun whenenver it's content changed!

--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel

author
#2 lore raw
Quoted 3 lines

Can you share the task, and what release of bitbake you are using? As you say, this should work fine.

Yes ofcourse!

the attach is my test project, just according the bitbake manual's printhello example.

my bitbake was cloned from 'git://git.openembedded.org/bitbake' and using revision id was: 309f5907a3661821e041ed14645b5d165007b058

Run 'bitbake printhello' firstime the output is:

$ bitbake printhello
Parsing recipes: 100% |##########################################################################################################| Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 1 didn't need to be rerun and all succeeded.

Then edit do_build task, run 'bitbake printhello' secondtime the output is:

$ bitbake printhello
Parsing recipes: 100% |##########################################################################################################| Time: 00:00:00
Parsing of 1 .bb files complete (0 cached, 1 parsed). 1 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1 tasks of which 1 didn't need to be rerun and all succeeded.

help me please!!

#3 lore raw
Quoted 8 lines · 张忠山

the attach is my test project, just according the bitbake manual's printhello example.

my bitbake was cloned from 'git://git.openembedded.org/bitbake' and using revision id was: 309f5907a3661821e041ed14645b5d165007b058

Run 'bitbake printhello' firstime the output is:

Ah, you're using bare bitbake. You'll want to set BB_SIGNATURE_HANDLER in your bitbake.conf if you want magic autodetection, set it to "BasicHash" should do what you want.

Ross

#4 lore raw
Quoted 4 lines · Ross

Ah, you're using bare bitbake. You'll want to set BB_SIGNATURE_HANDLER in your bitbake.conf if you want magic autodetection, set it to "BasicHash" should do what you want.

Actually I've just been told "basichash". :)

Ross

author
#5 lore raw
Quoted 11 lines · Ross

On 9 August 2016 at 17:40, Burton, Ross <[email protected] <mailto:[email protected]>> wrote:

Ah, you're using bare bitbake. You'll want to set BB_SIGNATURE_HANDLER in your bitbake.conf if you want magic autodetection, set it to "BasicHash" should do what you want.

Actually I've just been told "basichash". :)

Thanks