Recompile the recipe everytime
A message that is not in the archive (sent off-list or not yet received): [email protected]
Gentle reminder!!!
Hi ,
Please help me out I am stuck in some issue, actually I want my recipe to do compilation everytime on every run of
Bitbake linux-yocto
ie can I remove stamping or sstate-cache that it allows me to run compilation everytime on every run of bitbake linux-yocto.
I tried do_compile[nostamp] ="1" but it did not work but same thing worked for do_install[nostamp]="1"
Thanks in advance!
Regards,
Rohit Jindal
===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
Hi Rohit,
Quoted 11 lines · On Thursday 13 June 2013 20:54:08 Rohit2 Jindal wrote:
Please help me out I am stuck in some issue, actually I want my recipe to do compilation everytime on every run of
Bitbake linux-yocto
ie can I remove stamping or sstate-cache that it allows me to run compilation everytime on every run of bitbake linux-yocto.
I tried do_compile[nostamp] ="1" but it did not work but same thing worked for do_install[nostamp]="1"
If you really want to do this, I think you'll need to mark all tasks in the normal flow from do_compile onwards as nostamp i.e.:
do_compiledo_compile_kernelmodulesdo_kernel_link_vmlinuxdo_installdo_packagedo_packagedatado_package_writedo_package_write_rpmdo_populate_sysrootdo_stripdo_deploydo_uboot_mkimagedo_sizecheck
I have to say I don't recommend doing this. I would strongly suggest you use "bitbake -c compile -f linux-yocto" or "bitbake -C compile linux-yocto" (the latter will force compile and then automatically run all the needed tasks up to the default task).
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 6 lines · On Friday 14 June 2013 13:30:20 Paul Eggleton wrote:
Quoted 2 lines
I tried do_compile[nostamp] ="1" but it did not work but same thing worked for do_install[nostamp]="1"
If you really want to do this, I think you'll need to mark all tasks in the normal flow from
do_compileonwards as nostamp i.e.:
Quoted 13 lines
do_compiledo_compile_kernelmodulesdo_kernel_link_vmlinuxdo_installdo_packagedo_packagedatado_package_writedo_package_write_rpmdo_populate_sysrootdo_stripdo_deploydo_uboot_mkimagedo_sizecheck
(BTW - there's no guarantee this list is correct, I just grabbed what I thought looked appropriate from the -c listtasks list.)
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 8 lines · On Thu, 2013-06-13 at 20:54 +0530, Rohit2 Jindal wrote:
Please help me out I am stuck in some issue, actually I want my recipe to do compilation everytime on every run of
Bitbake linux-yocto
ie can I remove stamping or sstate-cache that it allows me to run compilation everytime on every run of bitbake linux-yocto.
I tried do_compile[nostamp] ="1" but it did not work but same thing worked for do_install[nostamp]="1"
If you just want to rerun the compilation:
do_compile[nostamp] = "1"
should do what you want, not sure why that wouldn't work.
bitbake linux-yocto -c compile -f
or
bitbake linux-yocto -C compile -f
are also commands which might help.
Cheers,
Richard
Yocto root permission issue
Hi,
I am facing issue in building sysconfig. Actually i want to compile everything with root permissions in yocto. Is there anything that supports it.
Eg say i have binary called build-ucore with root permission but i am not able to execute this binary using default yocto permissions in do_compile or do_configure Can i change yocto default permission or run yocto with SU permissions .
Please help me out!
________________________________________
From: Richard Purdie [[email protected]]
Sent: Friday, June 14, 2013 10:08 PM
To: Rohit2 Jindal
Cc: [email protected]; [email protected]
Subject: Re: Recompile the recipe everytime
Quoted 8 lines · On Thu, 2013-06-13 at 20:54 +0530, Rohit2 Jindal wrote:
Please help me out I am stuck in some issue, actually I want my recipe to do compilation everytime on every run of
Bitbake linux-yocto
ie can I remove stamping or sstate-cache that it allows me to run compilation everytime on every run of bitbake linux-yocto.
I tried do_compile[nostamp] ="1" but it did not work but same thing worked for do_install[nostamp]="1"
If you just want to rerun the compilation:
do_compile[nostamp] = "1"
should do what you want, not sure why that wouldn't work.
bitbake linux-yocto -c compile -f
or
bitbake linux-yocto -C compile -f
are also commands which might help.
Cheers,
Richard
===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
Re: Yocto root permission issue
Quoted 7 lines · On 19 June 2013 10:51, Rohit2 Jindal <[email protected]> wrote:
Hi,
I am facing issue in building sysconfig. Actually i want to compile everything with root permissions in yocto. Is there anything that supports it.
Eg say i have binary called build-ucore with root permission but i am not able to execute this binary using default yocto permissions in
do_compileordo_configureCan i change yocto default permission or run yocto with SU permissions .
What does your binary need root permissions for? The yocto build steps are executed under pseudo which basically means they're pretending to be root. Are you sure you need root permissions on the host (not the target filesystem) to run your binary?
Quoted 6 lines
===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================
May be worth noting that [email protected] is a public mailing list with a public archive.
--
Paul Barker