yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* How to clean the cache for a package?
@ 2022-01-11  6:12 Tony He
  2022-01-11  6:28 ` [yocto] " Chen, Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Tony He @ 2022-01-11  6:12 UTC (permalink / raw)
  To: yocto

Hi,

I'm new to yocto. I write a reciple for my own package. The source
code of package is in my PC and maintained by GIT. When I change the
source code of the package, I need to compile this package again with
"bitbake -c clean package" and "bitbake -c compile package".
However, even though I can see the code in the folder
downloads/git2/package.git is updated, but bitbake still use the last
commit of the git repo to compile. After debugging, I found the old
commit ID is stored in build-project/cache/bb_persist_data.sqlite3. Is
this normal?
Is it caused by my own wrong reciple or is there any command to clean
the cache for a package? Thank you!

Tony


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

* RE: [yocto] How to clean the cache for a package?
  2022-01-11  6:12 How to clean the cache for a package? Tony He
@ 2022-01-11  6:28 ` Chen, Qi
  2022-01-11  6:55   ` Tony He
  0 siblings, 1 reply; 3+ messages in thread
From: Chen, Qi @ 2022-01-11  6:28 UTC (permalink / raw)
  To: Tony He, yocto

In theory, there's no need to run 'bitbake -c clean'. Did you update the SRCREV? It would be easier if you could share some info of your recipe.

Regards,
Qi

-----Original Message-----
From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Tony He
Sent: Tuesday, January 11, 2022 2:12 PM
To: yocto@lists.yoctoproject.org
Subject: [yocto] How to clean the cache for a package?

Hi,

I'm new to yocto. I write a reciple for my own package. The source code of package is in my PC and maintained by GIT. When I change the source code of the package, I need to compile this package again with "bitbake -c clean package" and "bitbake -c compile package".
However, even though I can see the code in the folder downloads/git2/package.git is updated, but bitbake still use the last commit of the git repo to compile. After debugging, I found the old commit ID is stored in build-project/cache/bb_persist_data.sqlite3. Is this normal?
Is it caused by my own wrong reciple or is there any command to clean the cache for a package? Thank you!

Tony

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

* Re: [yocto] How to clean the cache for a package?
  2022-01-11  6:28 ` [yocto] " Chen, Qi
@ 2022-01-11  6:55   ` Tony He
  0 siblings, 0 replies; 3+ messages in thread
From: Tony He @ 2022-01-11  6:55 UTC (permalink / raw)
  To: Chen, Qi; +Cc: yocto

Thanks a lot. This is root cause. I did not update the SRCREV because
I have not added this SRCREV in my recipe.

Tony

Chen, Qi <Qi.Chen@windriver.com> 于2022年1月11日周二 14:28写道:
>
> In theory, there's no need to run 'bitbake -c clean'. Did you update the SRCREV? It would be easier if you could share some info of your recipe.
>
> Regards,
> Qi
>
> -----Original Message-----
> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Tony He
> Sent: Tuesday, January 11, 2022 2:12 PM
> To: yocto@lists.yoctoproject.org
> Subject: [yocto] How to clean the cache for a package?
>
> Hi,
>
> I'm new to yocto. I write a reciple for my own package. The source code of package is in my PC and maintained by GIT. When I change the source code of the package, I need to compile this package again with "bitbake -c clean package" and "bitbake -c compile package".
> However, even though I can see the code in the folder downloads/git2/package.git is updated, but bitbake still use the last commit of the git repo to compile. After debugging, I found the old commit ID is stored in build-project/cache/bb_persist_data.sqlite3. Is this normal?
> Is it caused by my own wrong reciple or is there any command to clean the cache for a package? Thank you!
>
> Tony


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

end of thread, other threads:[~2022-01-11  6:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11  6:12 How to clean the cache for a package? Tony He
2022-01-11  6:28 ` [yocto] " Chen, Qi
2022-01-11  6:55   ` Tony He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).