Skip to contentSkip to conversation

How to rebuilt the package after modified the source code in open embedded bitbake ...

DISCUSSION surendra dhobale 4 participants 7 messages Apr 4, 2012 – Apr 6, 2012

lore
Share & tools
lore
#0 lore raw

Hi,
I am working with the open embedded environment.

I have added one u-boot package in that. First time by default the compilation done successfully using the bitbake. But Now i made some changes in the source code , which is created in the Temp work directory.

Now i have to built the same package with neglecting the fetch() stage. and rebuilt it means need to compilation.

Is any commands for that...
Can please anyone explain me in deatails about that. I am newbie in the open embedded.

Surendra.

#1 lore raw

Hi Surenda,

Quoted 6 lines · surendra dhobale

I am working with the open embedded environment.

I have added one u-boot package in that. First time by default the compilation done successfully using the bitbake. But Now i made some changes in the source code , which is created in the Temp work directory.

Quoted 7 lines

Now i have to built the same package with neglecting the fetch() stage. and rebuilt it means need to compilation.

Is any commands for that...
Can please anyone explain me in deatails about that. I am newbie in the open embedded.

bitbake u-boot -c cleansstate
bitbake u-boot

Eric

#2 lore raw

2012/4/4 Eric Bénard <[email protected]>:

Quoted 13 lines

Hi Surenda,

Quoted 9 lines · surendra dhobale

 I am working with the open embedded environment.

I have added one u-boot package in that. First time by default the compilation done successfully using the bitbake. But Now i made some changes in the source code , which is created in the Temp work directory.

Now i have to built the same package with neglecting the fetch() stage. and rebuilt it means need to compilation.

Quoted 8 lines
Quoted 4 lines

Is any commands for that...
Can please anyone explain me in deatails about that. I am newbie in the open embedded.

bitbake u-boot -c cleansstate
bitbake u-boot

Eric

Hi,
please note this will delete local changes (in thework directory) to the sourcecode!

If you only want to compile again you can use

bitbake -c compile -f u-boot
and then "bitbake u-boot" to build the other tasks.

Signature · 2 lines
Regards
Samuel
#3 lore raw
Quoted 23 lines · Samuel Stirtzel

2012/4/4 Eric Bénard <[email protected]>:

Quoted 13 lines

Hi Surenda,

Quoted 9 lines · surendra dhobale

 I am working with the open embedded environment.

I have added one u-boot package in that. First time by default the compilation done successfully using the bitbake. But Now i made some changes in the source .

Now i have to built the same package with neglecting the fetch() stage. and rebuilt it means need to compilation.

Quoted 8 lines
Quoted 4 lines

Is any commands for that...
Can please anyone explain me in deatails about that. I am newbie in the open embedded.

bitbake u-boot -c cleansstate
bitbake u-boot

Eric

Quoted 9 lines

Hi,
please note this will delete local changes (in thework directory) to the sourcecode!

If you only want to compile again you can use

bitbake -c compile -f u-boot
and then "bitbake u-boot" to build the other tasks.

oops, I read his message to fast and didn't notice the "i made some changes in the source code , which is created in the Temp work directory".

For this kind of work, I prefer to do :
bitbake u-boot -c configure
copy the source from workdir to a directory outside OE
then change to this dir and
git init
git add .
git commit -m init
then you can hack it outside OE (and compile it using a meta-toolchain for example)
and in the end you can easily produce a patch using git that you integrate back into OE.

Eric

#4 lore raw
Quoted 26 lines · Eric Bénard
Quoted 23 lines · Samuel Stirtzel

2012/4/4 Eric Bénard <[email protected]>:

Quoted 21 lines

Hi Surenda,

Quoted 6 lines · surendra dhobale

I am working with the open embedded environment.

I have added one u-boot package in that. First time by default the compilation done successfully using the bitbake. But Now i made some changes in the source .

Quoted 7 lines

Now i have to built the same package with neglecting the fetch() stage. and rebuilt it means need to compilation.

Is any commands for that...
Can please anyone explain me in deatails about that. I am newbie in the open embedded.

bitbake u-boot -c cleansstate
bitbake u-boot

Eric

Quoted 8 lines
Quoted 8 lines

Hi,
please note this will delete local changes (in thework directory) to the sourcecode!

If you only want to compile again you can use

bitbake -c compile -f u-boot
and then "bitbake u-boot" to build the other tasks.

There is some documentation in the manual about this:
http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#platdev-appdev-insitu

Quoted 4 lines

oops, I read his message to fast and didn't notice the "i made some changes in the source code , which is created in the Temp work directory".

Quoted 11 lines

For this kind of work, I prefer to do :
bitbake u-boot -c configure
copy the source from workdir to a directory outside OE
then change to this dir and
git init
git add .
git commit -m init
then you can hack it outside OE (and compile it using a meta-toolchain for example)
and in the end you can easily produce a patch using git that you integrate back into OE.

Eric: You should probably look at the externalsrc.bbclass since it gives you a way to do things like this yet also build and package it with the usual build system:

http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#ref-classes-externalsrc

Cheers,

Richard

#5 lore raw

Hi Richard,

Quoted 6 lines · Richard Purdie

Eric: You should probably look at the externalsrc.bbclass since it gives you a way to do things like this yet also build and package it with the usual build system:

http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#ref-classes-externalsrc

yes, this can be very usefull when you need packaging, but for bootloader and kernel development, using the build system during development doesn't bring any added value IMHO.

Eric

#6 lore raw
Quoted 10 lines · Eric Bénard

Hi Richard,

Quoted 5 lines · Richard Purdie

Eric: You should probably look at the externalsrc.bbclass since it gives you a way to do things like this yet also build and package it with the usual build system:

http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#ref-classes-externalsrc

Quoted 7 lines
Quoted 1 line

yes, this can be very usefull when you need packaging, but for bootloader and kernel development, using the build system during development doesn't bring any added value IMHO.

Eric

Hi Richard,Eric and all
For your kindly quick support.

Surendra..