* Make recipe conditionally download code from Git Repo #yocto
@ 2022-12-10 12:00 ali.ahmad
2022-12-10 12:03 ` [yocto] " Alexander Kanavin
0 siblings, 1 reply; 5+ messages in thread
From: ali.ahmad @ 2022-12-10 12:00 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
I have a recipe for an application. I want it to download its code from the Git repo only if it does not already exist at a specific location on the file system.
How can I go about achieving this?
Thanks
[-- Attachment #2: Type: text/html, Size: 221 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Make recipe conditionally download code from Git Repo #yocto
2022-12-10 12:00 Make recipe conditionally download code from Git Repo #yocto ali.ahmad
@ 2022-12-10 12:03 ` Alexander Kanavin
2022-12-10 12:11 ` ali.ahmad
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2022-12-10 12:03 UTC (permalink / raw)
To: ali.ahmad; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
Can you explain the context and use case please?
Alex
On Sat 10. Dec 2022 at 13.00, ali.ahmad via lists.yoctoproject.org
<ali.ahmad=rtl-corp.com@lists.yoctoproject.org> wrote:
> I have a recipe for an application. I want it to download its code from
> the Git repo only if it does not already exist at a specific location on
> the file system.
> How can I go about achieving this?
>
> Thanks
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#58774):
> https://lists.yoctoproject.org/g/yocto/message/58774
> Mute This Topic: https://lists.yoctoproject.org/mt/95580174/1686489
> Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 1862 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make recipe conditionally download code from Git Repo #yocto
2022-12-10 12:03 ` [yocto] " Alexander Kanavin
@ 2022-12-10 12:11 ` ali.ahmad
2022-12-10 12:28 ` [yocto] " Alexander Kanavin
0 siblings, 1 reply; 5+ messages in thread
From: ali.ahmad @ 2022-12-10 12:11 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 439 bytes --]
Thank you for getting back.
Context/Use case:
My current recipe always checks out code from the git repo before building it.
During development, I want to first build my code successfully before pushing it to the repo. Hence I want the recipe to check if the code exists at a certain location on the file system. If it does, it should build that. If it doesn't it should checkout the code from the repo before building it.
Thanks
[-- Attachment #2: Type: text/html, Size: 463 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] Make recipe conditionally download code from Git Repo #yocto
2022-12-10 12:11 ` ali.ahmad
@ 2022-12-10 12:28 ` Alexander Kanavin
2022-12-10 12:31 ` ali.ahmad
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2022-12-10 12:28 UTC (permalink / raw)
To: ali.ahmad; +Cc: yocto
On Sat, 10 Dec 2022 at 13:11, ali.ahmad via lists.yoctoproject.org
<ali.ahmad=rtl-corp.com@lists.yoctoproject.org> wrote:
>
> Thank you for getting back.
>
> Context/Use case:
> My current recipe always checks out code from the git repo before building it.
> During development, I want to first build my code successfully before pushing it to the repo. Hence I want the recipe to check if the code exists at a certain location on the file system. If it does, it should build that. If it doesn't it should checkout the code from the repo before building it.
>
'devtool modify' should help with that. It will clone the source code
into a 'workspace' folder, and set up a .bbappend in the same
workspace that would instruct bitbake to build from that location
instead of fetching from git. When you're done, there are several
other 'devtool' subcommands to finish up, and revert to building from
git.
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Make recipe conditionally download code from Git Repo #yocto
2022-12-10 12:28 ` [yocto] " Alexander Kanavin
@ 2022-12-10 12:31 ` ali.ahmad
0 siblings, 0 replies; 5+ messages in thread
From: ali.ahmad @ 2022-12-10 12:31 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 35 bytes --]
Let me look into devtool. Thanks!
[-- Attachment #2: Type: text/html, Size: 35 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-12-10 12:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-10 12:00 Make recipe conditionally download code from Git Repo #yocto ali.ahmad
2022-12-10 12:03 ` [yocto] " Alexander Kanavin
2022-12-10 12:11 ` ali.ahmad
2022-12-10 12:28 ` [yocto] " Alexander Kanavin
2022-12-10 12:31 ` ali.ahmad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox