From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: "Derek Atkins" <derek@ihtfp.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] Buildroot: How to cache linux.git from different repos in a shared DL_DIR
Date: Wed, 10 Nov 2021 18:18:13 +0100 [thread overview]
Message-ID: <20211110181813.7c78997e@windsurf> (raw)
In-Reply-To: <209062b430ef017340a806c4a10e0b12.squirrel@mail2.ihtfp.org>
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
parent reply other threads:[~2021-11-10 17:18 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <209062b430ef017340a806c4a10e0b12.squirrel@mail2.ihtfp.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211110181813.7c78997e@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@buildroot.org \
--cc=derek@ihtfp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox