* Re: [Buildroot] Buildroot: How to cache linux.git from different repos in a shared DL_DIR
[not found] <209062b430ef017340a806c4a10e0b12.squirrel@mail2.ihtfp.org>
@ 2021-11-10 17:18 ` Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2021-11-10 17:18 UTC (permalink / raw)
To: Derek Atkins; +Cc: buildroot
Hello Derek,
On Wed, 10 Nov 2021 08:52:00 -0500
"Derek Atkins" <derek@ihtfp.com> wrote:
> I have a question: I am using a shared DL_DIR to build BuildRoot for
> multiple platforms, however two of my platforms are building a custom
> kernel from git, and each uses a *DIFFERENT* git repository for their
> repo.
That is not a problem at all. A single Git repository can contain
changes that come from multiple Git repositories, so there's absolutely
no problem with having a single $(DL_DIR)/linux/git/ repository storing
the Git commits/blobs coming from your kernel repositories A, B, C, D
and E if you have 5 different platforms with each Linux kernel code
hosted in its own repository.
> Needless to say, this does not work well, because there will be one,
> shared /DL/linux/git/ which is *assumed* to be the one and only repo...
> And whichever one I build first will take that and cached it there, and
> then the second.... Not sure what happens, but it clearly can't cache two
> repos in to the same place.
Sure it can. It's exactly how Git works when you use multiple
"remotes". You fetch Git commits/blobs from different remote
repositories into a single local Git repository.
> Is there some configuration I can use to differentiate platformA from
> platformB in this case?
See above: not needed.
Hope this helps!
Best regards,
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-10 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <209062b430ef017340a806c4a10e0b12.squirrel@mail2.ihtfp.org>
2021-11-10 17:18 ` [Buildroot] Buildroot: How to cache linux.git from different repos in a shared DL_DIR Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox