All of lore.kernel.org
 help / color / mirror / Atom feed
* Git/yocto newbie question re: submodules and multiple layers
@ 2016-08-25 21:24 Michael Habibi
  2016-08-25 21:35 ` Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Habibi @ 2016-08-25 21:24 UTC (permalink / raw)
  To: Yocto

Hi, I am well-versed with Git but I haven't really ever had to use
submodules. I am trying to create a git repository on our server that
will host our yocto distribution. Our distribution will include the
yocto repo, plus meta-openembedded repo, plus maybe some other layers.

The difficulty I have is thus:

my_git_repo/ <--- what my platform developers will 'git clone'
my_git_repo/yocto_git/... <-- yocto framework
my_git_repo/yocto_git/meta-openembedded <-- another git repo nested
inside yocto repo
my_git_repo/yocto_git/meta-intel <-- another example layer.

I would like for developers to be able to 'git clone' a single repo,
but pull down all the necessary layers from various git repos.
Basically it will comprise all repos, including yocto, OE layers,
intel layers, etc.

I believe the only way I can nest submodules inside pre-existing repos
is for me to create a local clone of yocto git and add the submodules
to that clone. That means the master git repo (my_git_repo in example
above) will point to *our* clone of yocto git and not yocto project's
git repo. In our local clone of yocto git, I will add a submodule for
each layer I want to add.

Does that make sense? Is this the right approach or is there a smarter way?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git/yocto newbie question re: submodules and multiple layers
  2016-08-25 21:24 Git/yocto newbie question re: submodules and multiple layers Michael Habibi
@ 2016-08-25 21:35 ` Khem Raj
  2016-08-26  6:23 ` Anders Darander
  2016-08-26 12:24 ` Ed Bartosh
  2 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2016-08-25 21:35 UTC (permalink / raw)
  To: Michael Habibi; +Cc: Yocto

[-- Attachment #1: Type: text/plain, Size: 2047 bytes --]


> On Aug 25, 2016, at 2:24 PM, Michael Habibi <mikehabibi@gmail.com> wrote:
> 
> Hi, I am well-versed with Git but I haven't really ever had to use
> submodules. I am trying to create a git repository on our server that
> will host our yocto distribution. Our distribution will include the
> yocto repo, plus meta-openembedded repo, plus maybe some other layers.
> 
> The difficulty I have is thus:
> 
> my_git_repo/ <--- what my platform developers will 'git clone'
> my_git_repo/yocto_git/... <-- yocto framework
> my_git_repo/yocto_git/meta-openembedded <-- another git repo nested
> inside yocto repo
> my_git_repo/yocto_git/meta-intel <-- another example layer.
> 
> I would like for developers to be able to 'git clone' a single repo,
> but pull down all the necessary layers from various git repos.
> Basically it will comprise all repos, including yocto, OE layers,
> intel layers, etc.
> 
> I believe the only way I can nest submodules inside pre-existing repos
> is for me to create a local clone of yocto git and add the submodules
> to that clone. That means the master git repo (my_git_repo in example
> above) will point to *our* clone of yocto git and not yocto project's
> git repo. In our local clone of yocto git, I will add a submodule for
> each layer I want to add.
> 
> Does that make sense? Is this the right approach or is there a smarter way?

There are several ways to setup your workspace.

1. Use android repo tool you can look at the angstrom distro which is OE/yocto
based (https://github.com/Angstrom-distribution/angstrom-manifest)

2. you can use combo-tool from Yocto project ( which is used by poky distro )
3. you can use git submodules which is used by BEC distro again based on
OE (https://github.com/cbrake/oe-build)

you can also do something else may be use jiri ( https://github.com/vanadium/go.jiri )



> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git/yocto newbie question re: submodules and multiple layers
  2016-08-25 21:24 Git/yocto newbie question re: submodules and multiple layers Michael Habibi
  2016-08-25 21:35 ` Khem Raj
@ 2016-08-26  6:23 ` Anders Darander
  2016-08-26 12:24 ` Ed Bartosh
  2 siblings, 0 replies; 4+ messages in thread
From: Anders Darander @ 2016-08-26  6:23 UTC (permalink / raw)
  To: yocto

* Michael Habibi <mikehabibi@gmail.com> [160825 23:26]:

> The difficulty I have is thus:

> my_git_repo/ <--- what my platform developers will 'git clone'
> my_git_repo/yocto_git/... <-- yocto framework
> my_git_repo/yocto_git/meta-openembedded <-- another git repo nested
> inside yocto repo

> my_git_repo/yocto_git/meta-intel <-- another example layer.

> I would like for developers to be able to 'git clone' a single repo,
> but pull down all the necessary layers from various git repos.
> Basically it will comprise all repos, including yocto, OE layers,
> intel layers, etc.

> I believe the only way I can nest submodules inside pre-existing repos
> is for me to create a local clone of yocto git and add the submodules
> to that clone. That means the master git repo (my_git_repo in example
> above) will point to *our* clone of yocto git and not yocto project's
> git repo. In our local clone of yocto git, I will add a submodule for
> each layer I want to add.

> Does that make sense? Is this the right approach or is there a smarter way?

I'm using submodules, but I put them like:

my_git_repo/ <--- what my platform developers will 'git clone'
my_git_repo/yocto_git/... <-- yocto framework
my_git_repo/meta-openembedded 

Well, I'm using bitbake and openembedded-core repos directly instead of
yocto, but that doesn't really matter.

Cheers,
Anders

-- 
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git/yocto newbie question re: submodules and multiple layers
  2016-08-25 21:24 Git/yocto newbie question re: submodules and multiple layers Michael Habibi
  2016-08-25 21:35 ` Khem Raj
  2016-08-26  6:23 ` Anders Darander
@ 2016-08-26 12:24 ` Ed Bartosh
  2 siblings, 0 replies; 4+ messages in thread
From: Ed Bartosh @ 2016-08-26 12:24 UTC (permalink / raw)
  To: Michael Habibi; +Cc: Yocto

On Thu, Aug 25, 2016 at 04:24:34PM -0500, Michael Habibi wrote:
> Hi, I am well-versed with Git but I haven't really ever had to use
> submodules. I am trying to create a git repository on our server that
> will host our yocto distribution. Our distribution will include the
> yocto repo, plus meta-openembedded repo, plus maybe some other layers.
> 
I can be completely wrong here, but isn't it what combo-layer is used
for? https://wiki.yoctoproject.org/wiki/Combo-layer

--
Regards,
Ed


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-26 12:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-25 21:24 Git/yocto newbie question re: submodules and multiple layers Michael Habibi
2016-08-25 21:35 ` Khem Raj
2016-08-26  6:23 ` Anders Darander
2016-08-26 12:24 ` Ed Bartosh

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.