* Local repo no network help request
@ 2017-04-06 2:57 Matthew Phillips
2017-04-06 14:30 ` Leonardo Sandoval
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Matthew Phillips @ 2017-04-06 2:57 UTC (permalink / raw)
To: yocto
Hi all,
I am trying to do the following:
I have a local git repo, pulled manually from a remote repo (via a script).
I have a .bb file set up referencing this repo. This .bb file includes
(among other things):
>> SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
>> SRCREV = "${AUTOREV}"
I do not want to use the network (so BB_NO_NETWORK is 1).
Although the SRC_URI is pointing to the correct path, the yocto build
fails because it tries to access the network.
How should I be doing this instead?
I can run a script (preferably bash atm) before the build if doing
something pre-build will help simplify anything.
Thank you,
M
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Local repo no network help request
2017-04-06 2:57 Local repo no network help request Matthew Phillips
@ 2017-04-06 14:30 ` Leonardo Sandoval
2017-04-07 7:38 ` Matthew Phillips
2017-04-06 14:38 ` Fabien Lahoudere
2017-04-07 16:08 ` Mark Hatle
2 siblings, 1 reply; 6+ messages in thread
From: Leonardo Sandoval @ 2017-04-06 14:30 UTC (permalink / raw)
To: Matthew Phillips; +Cc: yocto
On Wed, 2017-04-05 at 19:57 -0700, Matthew Phillips wrote:
> Hi all,
>
> I am trying to do the following:
>
> I have a local git repo, pulled manually from a remote repo (via a script).
> I have a .bb file set up referencing this repo. This .bb file includes
> (among other things):
>
> >> SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
> >> SRCREV = "${AUTOREV}"
>
did you get the same result if you hard-coded the pathname?
> I do not want to use the network (so BB_NO_NETWORK is 1).
>
> Although the SRC_URI is pointing to the correct path, the yocto build
> fails because it tries to access the network.
>
> How should I be doing this instead?
>
> I can run a script (preferably bash atm) before the build if doing
> something pre-build will help simplify anything.
>
> Thank you,
> M
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Local repo no network help request
2017-04-06 2:57 Local repo no network help request Matthew Phillips
2017-04-06 14:30 ` Leonardo Sandoval
@ 2017-04-06 14:38 ` Fabien Lahoudere
2017-04-07 16:08 ` Mark Hatle
2 siblings, 0 replies; 6+ messages in thread
From: Fabien Lahoudere @ 2017-04-06 14:38 UTC (permalink / raw)
To: yocto
On Wed, 2017-04-05 at 19:57 -0700, Matthew Phillips wrote:
> Hi all,
>
> I am trying to do the following:
>
> I have a local git repo, pulled manually from a remote repo (via a script).
> I have a .bb file set up referencing this repo. This .bb file includes
> (among other things):
>
> > > SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
> > > SRCREV = "${AUTOREV}"
>
> I do not want to use the network (so BB_NO_NETWORK is 1).
>
> Although the SRC_URI is pointing to the correct path, the yocto build
> fails because it tries to access the network.
>
> How should I be doing this instead?
Can you use network features with ssh on localhost ?
Why don't you create tarball for delivery and cross compile for development?
>
> I can run a script (preferably bash atm) before the build if doing
> something pre-build will help simplify anything.
>
> Thank you,
> M
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Local repo no network help request
2017-04-06 14:30 ` Leonardo Sandoval
@ 2017-04-07 7:38 ` Matthew Phillips
2017-04-07 8:17 ` Fabien Lahoudere
0 siblings, 1 reply; 6+ messages in thread
From: Matthew Phillips @ 2017-04-07 7:38 UTC (permalink / raw)
To: Leonardo Sandoval; +Cc: yocto
I used an alternative pathname that eliminated the "/../", however it
still failed. The debug messages show that it is able to find the
local repo, but it seems to be trying to access HEAD regardless.
I have also tried a couple of the additional flags that I can set for
SRC_URI (ex. nobranch, usehead, etc.). Sadly, no option is available
to limite remote fetch operations.
1) Should I locally (in the .bb file) override do_fetch?
2) I also tried running git archive [...] on the local repo, and
pointing to the tgz file as such:
SRC_URI = "file://${TOPDIR}/my-repo.tgz
However this too failed. Or, I don't think it failed in the do_fetch
step, but it later failed during the build. (I saved the error
messages, but I don't have them atm). Please advise...what am I doing
incorrectly?
Thank you,
M
On Thu, Apr 6, 2017 at 7:30 AM, Leonardo Sandoval
<leonardo.sandoval.gonzalez@linux.intel.com> wrote:
> On Wed, 2017-04-05 at 19:57 -0700, Matthew Phillips wrote:
>> Hi all,
>>
>> I am trying to do the following:
>>
>> I have a local git repo, pulled manually from a remote repo (via a script).
>> I have a .bb file set up referencing this repo. This .bb file includes
>> (among other things):
>>
>> >> SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
>> >> SRCREV = "${AUTOREV}"
>>
>
> did you get the same result if you hard-coded the pathname?
>
>
>
>
>> I do not want to use the network (so BB_NO_NETWORK is 1).
>>
>> Although the SRC_URI is pointing to the correct path, the yocto build
>> fails because it tries to access the network.
>>
>> How should I be doing this instead?
>>
>> I can run a script (preferably bash atm) before the build if doing
>> something pre-build will help simplify anything.
>>
>> Thank you,
>> M
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Local repo no network help request
2017-04-07 7:38 ` Matthew Phillips
@ 2017-04-07 8:17 ` Fabien Lahoudere
0 siblings, 0 replies; 6+ messages in thread
From: Fabien Lahoudere @ 2017-04-07 8:17 UTC (permalink / raw)
To: yocto
On Fri, 2017-04-07 at 00:38 -0700, Matthew Phillips wrote:
> I used an alternative pathname that eliminated the "/../", however it
> still failed. The debug messages show that it is able to find the
> local repo, but it seems to be trying to access HEAD regardless.
>
> I have also tried a couple of the additional flags that I can set for
> SRC_URI (ex. nobranch, usehead, etc.). Sadly, no option is available
> to limite remote fetch operations.
>
> 1) Should I locally (in the .bb file) override do_fetch?
>
> 2) I also tried running git archive [...] on the local repo, and
> pointing to the tgz file as such:
>
> SRC_URI = "file://${TOPDIR}/my-repo.tgz
>
can you bitbake -e your_recipe and paste SRC_URI contents ?
> However this too failed. Or, I don't think it failed in the do_fetch
> step, but it later failed during the build. (I saved the error
> messages, but I don't have them atm). Please advise...what am I doing
> incorrectly?
Please paste error message.
>
> Thank you,
> M
>
> On Thu, Apr 6, 2017 at 7:30 AM, Leonardo Sandoval
> <leonardo.sandoval.gonzalez@linux.intel.com> wrote:
> > On Wed, 2017-04-05 at 19:57 -0700, Matthew Phillips wrote:
> > > Hi all,
> > >
> > > I am trying to do the following:
> > >
> > > I have a local git repo, pulled manually from a remote repo (via a script).
> > > I have a .bb file set up referencing this repo. This .bb file includes
> > > (among other things):
> > >
> > > > > SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
> > > > > SRCREV = "${AUTOREV}"
> >
> > did you get the same result if you hard-coded the pathname?
> >
> >
> >
> >
> > > I do not want to use the network (so BB_NO_NETWORK is 1).
> > >
> > > Although the SRC_URI is pointing to the correct path, the yocto build
> > > fails because it tries to access the network.
> > >
> > > How should I be doing this instead?
> > >
> > > I can run a script (preferably bash atm) before the build if doing
> > > something pre-build will help simplify anything.
> > >
> > > Thank you,
> > > M
> >
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Local repo no network help request
2017-04-06 2:57 Local repo no network help request Matthew Phillips
2017-04-06 14:30 ` Leonardo Sandoval
2017-04-06 14:38 ` Fabien Lahoudere
@ 2017-04-07 16:08 ` Mark Hatle
2 siblings, 0 replies; 6+ messages in thread
From: Mark Hatle @ 2017-04-07 16:08 UTC (permalink / raw)
To: Matthew Phillips, yocto
On 4/5/17 9:57 PM, Matthew Phillips wrote:
> Hi all,
>
> I am trying to do the following:
>
> I have a local git repo, pulled manually from a remote repo (via a script).
> I have a .bb file set up referencing this repo. This .bb file includes
> (among other things):
>
>>> SRC_URI = "git://${TOPDIR}/../sources/my-repo;protocol=file;branch=master"
>>> SRCREV = "${AUTOREV}"
Check what the value of TOPDIR is in this case. We've got layers that are doing
this exact behavior and they work properly -- but we're not using TOPDIR, we're
using ${THISDIR}, or other hard coded values that are full system paths.
A simple 'bitbake -e <recipe>' looking at SRC_URI should be able to show if you
have a full path or not.
The following is working for us:
KSRC_linux_windriver_4_8 ?= "${THISDIR}/../../git/kernel-4.8.x.git"
SRC_URI =
"git://${KSRC_linux_windriver_4_8};protocol=file;branch=${KBRANCH};name=machine"
(note this is with Morty, not master.)
--Mark
> I do not want to use the network (so BB_NO_NETWORK is 1).
>
> Although the SRC_URI is pointing to the correct path, the yocto build
> fails because it tries to access the network.
>
> How should I be doing this instead?
>
> I can run a script (preferably bash atm) before the build if doing
> something pre-build will help simplify anything.
>
> Thank you,
> M
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-04-07 16:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06 2:57 Local repo no network help request Matthew Phillips
2017-04-06 14:30 ` Leonardo Sandoval
2017-04-07 7:38 ` Matthew Phillips
2017-04-07 8:17 ` Fabien Lahoudere
2017-04-06 14:38 ` Fabien Lahoudere
2017-04-07 16:08 ` Mark Hatle
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.