lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] [PATCHv4 1/5] net/lwip: add lwip-external submodule


From: Maxim Uvarov
Subject: Re: [lwip-devel] [PATCHv4 1/5] net/lwip: add lwip-external submodule
Date: Wed, 2 Aug 2023 14:03:04 +0600



On Mon, 31 Jul 2023 at 04:06, Peter Robinson <pbrobinson@gmail.com> wrote:
On Fri, Jul 28, 2023 at 7:09 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Thu, Jul 27, 2023 at 03:34:48PM +0300, Ilias Apalodimas wrote:
>
> > Tom, Simon
> > are you ok with submodules on this one?
>
> Still punting on that question and waiting for commentary from
> distribution people.

I would prefer not to have to deal with submodules unless the required
bits were pulled as part of the release tarball process where it
wouldn't then matter to distributions.

Peter

Ilias pointed to an interesting alternative which edk2 uses its git subtrees.
Docs:
https://www.atlassian.com/git/tutorials/git-subtree
https://github.com/git/git/blob/master/contrib/subtree/git-subtree.txt

Examples:
git subtree add --prefix lib/lwip/lwip-external https://git.savannah.nongnu.org/git/lwip.git master --squash
$ git log
commit 83488286d287e53fad1efbfe1d4f5dbf69202f4a (HEAD -> master)
Merge: 27b050e91d 120e0665c3
Author: Maxim Uvarov <maxim.uvarov@linaro.org>
Date:   Wed Aug 2 07:53:17 2023 +0000

    Merge commit '120e0665c37ec69d46c10fc341e253ae2e69afca' as 'lib/lwip/lwip-external'

commit 120e0665c37ec69d46c10fc341e253ae2e69afca
Author: Maxim Uvarov <maxim.uvarov@linaro.org>
Date:   Wed Aug 2 07:53:17 2023 +0000

    Squashed 'lib/lwip/lwip-external/' content from commit 84fde1ebbf
   
    git-subtree-dir: lib/lwip/lwip-external
    git-subtree-split: 84fde1ebbfe35b3125fc2d89b8a456cbacf148e9


So it actually plases code of lwip.git into a subdirectory as a git commit.  When you do git clone then all sources will be fetched.
No need for any additional commands after that. I vote for subtree instead of plain code copy.

BR,
Maxim.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]