Skip to contentSkip to conversation

Yocto .gitignore

DISCUSSION Søren Holm 2 participants 4 messages Nov 29, 2013 – Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

Hi

Why does yocto .gitignpre include meta-*/. Why would we possibly want to ignore custom layers ?

Signature · 1 line
Søren Holm
#1 lore raw

Hi Søren,

Quoted 2 lines · On Friday 29 November 2013 23:12:24 Søren Holm wrote:

Why does yocto .gitignpre include meta-*/. Why would we possibly want to ignore custom layers ?

I presume you mean the .gitignore in the poky repository. Any additional custom layers shouldn't be part of the poky repository, they should be in separate repositories.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Mandag den 2. december 2013 11:57:35 skrev Paul Eggleton:

Quoted 4 lines

I presume you mean the .gitignore in the poky repository. Any additional custom layers shouldn't be part of the poky repository, they should be in separate repositories.

That's right. But how would you put "build/*" and my own "meta-*" in a seperate repo. Pulling them in as submodules seems painfull and having the yocto-repo included as a submodule in another repo seems backwards too.

Do you have a proposed "best-practice"-way of maintaining own layers?

Signature · 1 line
Søren Holm
#3 lore raw
Quoted 10 lines · On Monday 02 December 2013 13:02:21 Søren Holm wrote:

Mandag den 2. december 2013 11:57:35 skrev Paul Eggleton:

Quoted 3 lines

I presume you mean the .gitignore in the poky repository. Any additional custom layers shouldn't be part of the poky repository, they should be in separate repositories.

That's right. But how would you put "build/*" and my own "meta-*" in a seperate repo. Pulling them in as submodules seems painfull and having the yocto-repo included as a submodule in another repo seems backwards too.

Do you have a proposed "best-practice"-way of maintaining own layers?

There are a number of different options:

* submodules
* repo [1]
* combo-layer [2] (what we use for Poky)
* or, just keep the repositories separate

Re build/, you shouldn't need to keep that under version control. If you are setting a large number of variables in local.conf that you want to preserve, that is a sign that you should move these to a custom distro configuration file [3].

Cheers,
Paul

[1] http://code.google.com/p/git-repo/
[2] https://wiki.yoctoproject.org/wiki/Combo-layer
[3] http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creating-your-own-distribution

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre