Skip to contentSkip to conversation

Recompile the recipe everytime

DISCUSSION Rohit2 Jindal 4 participants 6 messages Jun 13, 2013 – Jun 19, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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.
===============================================================================

#2 lore raw

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_compile
do_compile_kernelmodules
do_kernel_link_vmlinux
do_install
do_package
do_packagedata
do_package_write
do_package_write_rpm
do_populate_sysroot
do_strip
do_deploy
do_uboot_mkimage
do_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
#3 lore raw
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_compile onwards as nostamp i.e.:

Quoted 13 lines

do_compile
do_compile_kernelmodules
do_kernel_link_vmlinux
do_install
do_package
do_packagedata
do_package_write
do_package_write_rpm
do_populate_sysroot
do_strip
do_deploy
do_uboot_mkimage
do_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
#4 lore raw
In reply to Rohit2 Jindal
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

#5 lore raw

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.
===============================================================================

#6 lore raw

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_compile or do_configure Can 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

Email: [email protected]
http://www.paulbarker.me.uk