Re: [yocto] PREMIRROR

2019-07-26 Thread Rudolf J Streif
You are very welcome. Enjoy working with YP. :rjs On 7/25/19 4:48 PM, Russell Peterson wrote: > Just tried the externalsrc feature.  Works perfectly.  Exactly what I > was looking for.  Thanks so much, Rudolf! > > --Russ > > > On Thu, Jul 25, 2019 at 4:59 PM Rudolf J Streif >

Re: [yocto] PREMIRROR

2019-07-25 Thread Russell Peterson
Just tried the externalsrc feature. Works perfectly. Exactly what I was looking for. Thanks so much, Rudolf! --Russ On Thu, Jul 25, 2019 at 4:59 PM Rudolf J Streif wrote: > Inlining below. > On 7/25/19 8:14 AM, Russell Peterson wrote: > > I think I have a somewhat better understanding of

Re: [yocto] PREMIRROR

2019-07-25 Thread Rudolf J Streif
Inlining below. On 7/25/19 8:14 AM, Russell Peterson wrote: > I think I have a somewhat better understanding of what is going on. > > First off, I was confused by the fact that the original error message > I saw from do_unpack referenced the file (URL) at > DL_DIR/git2/original_github_url.  What

Re: [yocto] PREMIRROR

2019-07-25 Thread Russell Peterson
I think I have a somewhat better understanding of what is going on. First off, I was confused by the fact that the original error message I saw from do_unpack referenced the file (URL) at DL_DIR/git2/original_github_url. What I didn't understand at the time was that while that file existed,* it

Re: [yocto] PREMIRROR

2019-07-24 Thread Rudolf J Streif
Russell, That is exactly what devtool and the externalsrc class do. PREMIRROR is the wrong approach for that. :rjs On 7/24/19 12:53 PM, Russell Peterson wrote: > Hi, Rudolf. > > I apologize for not being clear.  The idea here is that my recipe > points to github while, for my local development

Re: [yocto] PREMIRROR

2019-07-24 Thread Russell Peterson
Hi, Rudolf. I apologize for not being clear. The idea here is that my recipe points to github while, for my local development environment, I set a premirror to match a specific github repository and translate it to a local directory. That works. The fetch matches the PREMIRROR and places a copy

Re: [yocto] PREMIRROR

2019-07-24 Thread Rudolf J Streif
Hi Russell, devtool and eSDK are different things. The purpose of PREMIRRORS is to set a mirror for all recipes. It's a way for organizations to control where their YP builds download sources from. It's not intended to be used for a single recipe. There is no need for that. You simply set SRC_URI

Re: [yocto] PREMIRROR

2019-07-24 Thread Russell Peterson
Thanks, Yi. I did try that and I see the tar file is created... but again, the do_unpack function seems to ignore it and go directly to the github repository. --Russ On Wed, Jul 24, 2019 at 4:28 AM Yi Zhao wrote: > > On 7/24/19 4:49 AM, Russell Peterson wrote: > > Hello, > > I am looking to

Re: [yocto] PREMIRROR

2019-07-24 Thread Russell Peterson
Hi, Rudolf. Thanks for the reply. Yes, I am aware of the eSDK functionality, however, I have some unique requirements that I am trying to work around. Regardless... what I am doing should work, no? I simply want to use a local git repo (the directory itself hence protocol=file) instead of what

Re: [yocto] PREMIRROR

2019-07-24 Thread Rudolf J Streif
Russell, You don't need PREMIRROR for this functionality. It's not exactly intended for that use. The simplest way to achieve what you are looking for is to use devtool. If I understand you correctly you are downloading sources from a remote repo on GitHub but want to have them locally to make

Re: [yocto] PREMIRROR

2019-07-24 Thread Yi Zhao
On 7/24/19 4:49 AM, Russell Peterson wrote: Hello, I am looking to have bitbake pick up files for a particular recipe from a local git repository using the PREMIRROR functionality. Basically, the recipe (bb file) points to github but in my local build I add PREMIRROR_prepend = "git://.*/.*

[yocto] PREMIRROR

2019-07-23 Thread Russell Peterson
Hello, I am looking to have bitbake pick up files for a particular recipe from a local git repository using the PREMIRROR functionality. Basically, the recipe (bb file) points to github but in my local build I add PREMIRROR_prepend = "git://.*/.* git:///local/path/BASENAME;protocol=file\n" I