Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 4

Please point to docs describing how scripts grap github sources remotely

I have used github for forking and downloading code and etc for a while but I am nowhere near fluent. For example, I am looking at how a linux derivitive (petalinux) finds opencv source files remotly from github repositories. Below was in a file with a ".bb" extension.

 

git://github.com/opencv/opencv_3rdparty.git;branch=contrib_xfeatures2d_boostdesc_20161012;destsuffix=boostdesc;name=boostdesc 

I don't have much of a clue as to how to decode such an instruction and I was looking through the docs and did not meet with success. I have no problem with reading docs so if I missed it please point me to the correct ones. Going to the github opencv directory was not completely helpful.

 

Thank You

Tom

3 Replies
Pilot Lvl 1
Message 2 of 4

Re: Please point to docs describing how scripts grap github sources remotely

The .bb extension in this case appears to be a BitBake recipe which has a built-in command to pull from a git repository.

 

https://www.yoctoproject.org/docs/1.6/bitbake-user-manual/bitbake-user-manual.html#git-fetcher

 

In this case it looks like whatever your .bb file is being used to build requires a specific branch from this repository on

GitHub.com https://github.com/opencv/opencv_3rdparty 

 

So the code you highlighted is actually a bitbake interpreted command and not raw git.

 

Are you looking for something specific? or does that answer your question?

 

 

 

Copilot Lvl 2
Message 3 of 4

Re: Please point to docs describing how scripts grap github sources remotely

Thank you so much for replying to my post. The answer that you gave is a good starting point for the resolution of my issue. 

 

You asked if I was looking for something specific and my answer is quite simple. You did say that the BitBake recipe had a built in command to pull from a git repository. Let us say that I wanted to modify a c (or other) file in that repository. I would expect that I would have to clone the repository, make my change and then modify the BitBake recipe to pull from the clone repository. Would all of that be correct?

 

Thank You

Tom

 

Pilot Lvl 1
Message 4 of 4

Re: Please point to docs describing how scripts grap github sources remotely

Hey sorry for the delay. I've been out for a while.. 

 

The steps you outline above make sense if you are forking / cloning the repo - unless you intend to contribute your changes back to the original project. 

 

Did you try this out? with success ?