How to mirror the official Linux kernel tree on a private guitar server?

We work with embedded ARM Linux systems and have SBC-based products with the hardware they configure. Thus, we need to develop our own kernel drivers, and sometimes adapt existing ones. Since we started using Subversion, the strategy we chose was to use a “vendor branch” to store vanilla kernels, and then create a branch for each product, where we would apply the SBC fixes and make our own changes, very similar to offered at https://stackoverflow.com/q/2312984/1007502

Fortunately, a few months ago we decided to transfer our projects to git, so we set up the gitolite server to share projects among developers, transfer projects from SVN as needed and get more control with git. In the particular case of the Linux kernel, we find it interesting to be able to develop our projects with our guitar server as remote, but we would like to be able to extract new kernels from the official tree and ultimately contribute back when it reaches a state that allows this.

On my own machine, I can see how git clone the official kernel tree and create private branches for our products, reloading them on new kernels if necessary (for example here ); but I kind of lost how I should import the official kernel tree into gitolite so that developers can pop / extract from it instead of the official kernel repository, and also be able to synchronize it with the latter.

Is it a question of receiving updates from the official tree on our machines and returning them to our private guitarit server or is there a more direct approach?

EDIT: ( )
, : , , gitolite, , , git, .

, gitolite?

, "private" ?

, , , -.

+3
2

:

git clone $KERNEL_URL

gitolite, gitolite:

git remote add gitolite $GITOLITE_URL

git checkout -b our-branch

gitolite

git push gitolite our-branch

.

?

.

+2

, , 2 :

  • (, , Github)
  • gitolite

. ( , , ) git remote add .... , , , . ​​ ...

... , , (). , , . (: Linus github pull)

+2

All Articles