All of lore.kernel.org
 help / color / mirror / Atom feed
* bitbake -c clean <package> fails
@ 2012-01-29 13:56 Ulf Samuelsson
  2012-01-29 14:04 ` Koen Kooi
  2012-01-29 17:35 ` Khem Raj
  0 siblings, 2 replies; 8+ messages in thread
From: Ulf Samuelsson @ 2012-01-29 13:56 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Tried to test downloading "module-init-tools" from a new KERNELORG_MIRROR

First I attempted to just remove the source tarball from the downloads 
directory.
No download, but build completed.

The I tried to clean out the "module-init-tools" directory:

$ bitbake -c clean module-init-tools

and run bitbake console-image.
The build completed with no source tarball, after the clean.

Only when I cleaned out the build/sstate-cache directory,
was the file downloaded and built from a new tarball

Should not "bitbake -c clean" remove files in the cache?

If not, Is there another bitbake command which cleans out the cache?

-- 
Best Regards
Ulf Samuelsson
eMagii




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-01-29 13:56 bitbake -c clean <package> fails Ulf Samuelsson
@ 2012-01-29 14:04 ` Koen Kooi
  2012-01-29 17:35 ` Khem Raj
  1 sibling, 0 replies; 8+ messages in thread
From: Koen Kooi @ 2012-01-29 14:04 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 29 jan. 2012, om 14:56 heeft Ulf Samuelsson het volgende geschreven:

> Tried to test downloading "module-init-tools" from a new KERNELORG_MIRROR
> 
> First I attempted to just remove the source tarball from the downloads directory.
> No download, but build completed.
> 
> The I tried to clean out the "module-init-tools" directory:
> 
> $ bitbake -c clean module-init-tools
> 
> and run bitbake console-image.
> The build completed with no source tarball, after the clean.
> 
> Only when I cleaned out the build/sstate-cache directory,
> was the file downloaded and built from a new tarball
> 
> Should not "bitbake -c clean" remove files in the cache?
> 
> If not, Is there another bitbake command which cleans out the cache?

-c cleansstate


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-01-29 13:56 bitbake -c clean <package> fails Ulf Samuelsson
  2012-01-29 14:04 ` Koen Kooi
@ 2012-01-29 17:35 ` Khem Raj
  2012-01-30  9:48   ` Andrei Gherzan
  1 sibling, 1 reply; 8+ messages in thread
From: Khem Raj @ 2012-01-29 17:35 UTC (permalink / raw)
  To: ulf, Patches and discussions about the oe-core layer

On Sun, Jan 29, 2012 at 5:56 AM, Ulf Samuelsson
<openembedded-core@emagii.com> wrote:
>
> First I attempted to just remove the source tarball from the downloads
> directory.
> No download, but build completed.

if you want a fresh fetch.
you can just do bitbake -ccleanall module-init-tools
that will remove the sstate as well as the sources



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-01-29 17:35 ` Khem Raj
@ 2012-01-30  9:48   ` Andrei Gherzan
  2012-02-07 11:45     ` Ulf Samuelsson
  0 siblings, 1 reply; 8+ messages in thread
From: Andrei Gherzan @ 2012-01-30  9:48 UTC (permalink / raw)
  To: openembedded-core

On 01/29/2012 07:35 PM, Khem Raj wrote:
> On Sun, Jan 29, 2012 at 5:56 AM, Ulf Samuelsson
> <openembedded-core@emagii.com>  wrote:
>> First I attempted to just remove the source tarball from the downloads
>> directory.
>> No download, but build completed.
> if you want a fresh fetch.
> you can just do bitbake -ccleanall module-init-tools
> that will remove the sstate as well as the sources
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Clean it's just a "clean". As in "make clean". So after a clean you will 
typically have configure, compile etc.
"cleanall" = remove unpacked + remove source. So after a clean you will 
tipically have fetch.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-01-30  9:48   ` Andrei Gherzan
@ 2012-02-07 11:45     ` Ulf Samuelsson
  2012-02-07 22:40       ` Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: Ulf Samuelsson @ 2012-02-07 11:45 UTC (permalink / raw)
  To: openembedded-core

2012-01-30 10:48, Andrei Gherzan skrev:
> On 01/29/2012 07:35 PM, Khem Raj wrote:
>> On Sun, Jan 29, 2012 at 5:56 AM, Ulf Samuelsson
>> <openembedded-core@emagii.com>  wrote:
>>> First I attempted to just remove the source tarball from the downloads
>>> directory.
>>> No download, but build completed.
>> if you want a fresh fetch.
>> you can just do bitbake -ccleanall module-init-tools
>> that will remove the sstate as well as the sources
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> Clean it's just a "clean". As in "make clean". So after a clean you 
> will typically have configure, compile etc.
> "cleanall" = remove unpacked + remove source. So after a clean you 
> will tipically have fetch.
I have tried clean, cleansstate and cleanall.
All of them remove the source directory.

If I try to use XorA's method of testing out the kernel
http://www.xora.org.uk/2009/12/10/openembeddedangstrom-kernel-workflow/
then it fails since a recompile of the source will fail to update 
dependencies.
If i bitbake -c compile virtual/kernel -f a
and then
bitbake virtual/kernel
then the previous build will be used.

Is it at all possible now to recompile, without having to clean out 
everything,
and start from scratch?

>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-02-07 11:45     ` Ulf Samuelsson
@ 2012-02-07 22:40       ` Khem Raj
  2012-02-08  9:21         ` Ulf Samuelsson
  0 siblings, 1 reply; 8+ messages in thread
From: Khem Raj @ 2012-02-07 22:40 UTC (permalink / raw)
  To: ulf, Patches and discussions about the oe-core layer

> >Clean it's just a "clean". As in "make clean". So after a clean
> >you will typically have configure, compile etc.
> >"cleanall" = remove unpacked + remove source. So after a clean you
> >will tipically have fetch.
> I have tried clean, cleansstate and cleanall.
> All of them remove the source directory.

if you are talking about ${S} then yes but relevant content in ${DL_DIR} are only removed
with cleanall

> 
> If I try to use XorA's method of testing out the kernel
> http://www.xora.org.uk/2009/12/10/openembeddedangstrom-kernel-workflow/
> then it fails since a recompile of the source will fail to update
> dependencies.
> If i bitbake -c compile virtual/kernel -f a
> and then
> bitbake virtual/kernel
> then the previous build will be used.
> 
> Is it at all possible now to recompile, without having to clean out
> everything,
> and start from scratch?
> 
> >
> >_______________________________________________
> >Openembedded-core mailing list
> >Openembedded-core@lists.openembedded.org
> >http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
-Khem



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-02-07 22:40       ` Khem Raj
@ 2012-02-08  9:21         ` Ulf Samuelsson
  2012-02-08  9:54           ` Andrei Gherzan
  0 siblings, 1 reply; 8+ messages in thread
From: Ulf Samuelsson @ 2012-02-08  9:21 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

On 2012-02-07 23:40, Khem Raj wrote:
>>> Clean it's just a "clean". As in "make clean". So after a clean
>>> you will typically have configure, compile etc.
>>> "cleanall" = remove unpacked + remove source. So after a clean you
>>> will tipically have fetch.
>> I have tried clean, cleansstate and cleanall.
>> All of them remove the source directory.
> if you are talking about ${S} then yes but relevant content in ${DL_DIR} are only removed
> with cleanall
>

Yes, when I work on the kernel, I do not want to restart from unpack.
I would like to edit the existing ${S}and then restart a compile.
Once the compile succeeds, I want to deploy.
Once the kernel does what it is supposed to, I generate a patch
which is then added to the recipe.

At that time, I want to cleansstate and rebuild/retest.
To come around this problem right now, my kernel recipe generates a script
in ${S}, which will compile the kernel image and then copies it directly
to my tftp directory.

>> If I try to use XorA's method of testing out the kernel
>> http://www.xora.org.uk/2009/12/10/openembeddedangstrom-kernel-workflow/
>> then it fails since a recompile of the source will fail to update
>> dependencies.
>> If i bitbake -c compile virtual/kernel -f a
>> and then
>> bitbake virtual/kernel
>> then the previous build will be used.
>>
>> Is it at all possible now to recompile, without having to clean out
>> everything,
>> and start from scratch?
>>
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: bitbake -c clean <package> fails
  2012-02-08  9:21         ` Ulf Samuelsson
@ 2012-02-08  9:54           ` Andrei Gherzan
  0 siblings, 0 replies; 8+ messages in thread
From: Andrei Gherzan @ 2012-02-08  9:54 UTC (permalink / raw)
  To: openembedded-core

On 02/08/2012 11:21 AM, Ulf Samuelsson wrote:
> On 2012-02-07 23:40, Khem Raj wrote:
>>>> Clean it's just a "clean". As in "make clean". So after a clean
>>>> you will typically have configure, compile etc.
>>>> "cleanall" = remove unpacked + remove source. So after a clean you
>>>> will tipically have fetch.
>>> I have tried clean, cleansstate and cleanall.
>>> All of them remove the source directory.
>> if you are talking about ${S} then yes but relevant content in 
>> ${DL_DIR} are only removed
>> with cleanall
>>
>
> Yes, when I work on the kernel, I do not want to restart from unpack.
> I would like to edit the existing ${S}and then restart a compile.
> Once the compile succeeds, I want to deploy.
> Once the kernel does what it is supposed to, I generate a patch
> which is then added to the recipe.
>
> At that time, I want to cleansstate and rebuild/retest.
> To come around this problem right now, my kernel recipe generates a 
> script
> in ${S}, which will compile the kernel image and then copies it directly
> to my tftp directory. 
Why don't you play along with sstate files? Detele what you need and it 
will be forced to re<stage>.

@g



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-08 10:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-29 13:56 bitbake -c clean <package> fails Ulf Samuelsson
2012-01-29 14:04 ` Koen Kooi
2012-01-29 17:35 ` Khem Raj
2012-01-30  9:48   ` Andrei Gherzan
2012-02-07 11:45     ` Ulf Samuelsson
2012-02-07 22:40       ` Khem Raj
2012-02-08  9:21         ` Ulf Samuelsson
2012-02-08  9:54           ` Andrei Gherzan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.