* How to rebuilt the package after modified the source code in open embedded bitbake ...
@ 2012-04-04 6:34 surendra dhobale
2012-04-04 7:18 ` Eric Bénard
0 siblings, 1 reply; 7+ messages in thread
From: surendra dhobale @ 2012-04-04 6:34 UTC (permalink / raw)
To: openembedded-core
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to rebuilt the package after modified the source code in open embedded bitbake ...
2012-04-04 6:34 How to rebuilt the package after modified the source code in open embedded bitbake surendra dhobale
@ 2012-04-04 7:18 ` Eric Bénard
2012-04-04 7:21 ` Samuel Stirtzel
0 siblings, 1 reply; 7+ messages in thread
From: Eric Bénard @ 2012-04-04 7:18 UTC (permalink / raw)
To: openembedded-core
Hi Surenda,
Le Wed, 4 Apr 2012 06:34:39 +0000 (UTC),
surendra dhobale <surendra.dhobalelinux@gmail.com> a écrit :
> 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.
>
bitbake u-boot -c cleansstate
bitbake u-boot
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to rebuilt the package after modified the source code in open embedded bitbake ...
2012-04-04 7:18 ` Eric Bénard
@ 2012-04-04 7:21 ` Samuel Stirtzel
2012-04-04 7:47 ` Eric Bénard
0 siblings, 1 reply; 7+ messages in thread
From: Samuel Stirtzel @ 2012-04-04 7:21 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
2012/4/4 Eric Bénard <eric@eukrea.com>:
> Hi Surenda,
>
> Le Wed, 4 Apr 2012 06:34:39 +0000 (UTC),
> surendra dhobale <surendra.dhobalelinux@gmail.com> a écrit :
>> 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.
>>
> 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.
--
Regards
Samuel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to rebuilt the package after modified the source code in open embedded bitbake ...
2012-04-04 7:21 ` Samuel Stirtzel
@ 2012-04-04 7:47 ` Eric Bénard
2012-04-04 11:31 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Eric Bénard @ 2012-04-04 7:47 UTC (permalink / raw)
To: openembedded-core
Le Wed, 4 Apr 2012 09:21:02 +0200,
Samuel Stirtzel <s.stirtzel@googlemail.com> a écrit :
> 2012/4/4 Eric Bénard <eric@eukrea.com>:
> > Hi Surenda,
> >
> > Le Wed, 4 Apr 2012 06:34:39 +0000 (UTC),
> > surendra dhobale <surendra.dhobalelinux@gmail.com> a écrit :
> >> 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.
> >>
> >> 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.
>
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to rebuilt the package after modified the source code in open embedded bitbake ...
2012-04-04 7:47 ` Eric Bénard
@ 2012-04-04 11:31 ` Richard Purdie
2012-04-04 11:37 ` Eric Bénard
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2012-04-04 11:31 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2012-04-04 at 09:47 +0200, Eric Bénard wrote:
> Le Wed, 4 Apr 2012 09:21:02 +0200,
> Samuel Stirtzel <s.stirtzel@googlemail.com> a écrit :
>
> > 2012/4/4 Eric Bénard <eric@eukrea.com>:
> > > Hi Surenda,
> > >
> > > Le Wed, 4 Apr 2012 06:34:39 +0000 (UTC),
> > > surendra dhobale <surendra.dhobalelinux@gmail.com> a écrit :
> > >> 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.
> > >>
> > >> 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.
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
> 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: 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-06 7:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 6:34 How to rebuilt the package after modified the source code in open embedded bitbake surendra dhobale
2012-04-04 7:18 ` Eric Bénard
2012-04-04 7:21 ` Samuel Stirtzel
2012-04-04 7:47 ` Eric Bénard
2012-04-04 11:31 ` Richard Purdie
2012-04-04 11:37 ` Eric Bénard
2012-04-06 7:31 ` surendra dhobale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox