diff mbox series

[PATCHv10,01/15] submodule: add lwIP as git submodule

Message ID 20230926094124.7024-2-maxim.uvarov@linaro.org
State New
Headers show
Series net/lwip: add lwip library for the network stack | expand

Commit Message

Maxim Uvarov Sept. 26, 2023, 9:41 a.m. UTC
add external lwIP library as a git submodule.
Use STABLE-2_2_0_RELEASE tag.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 .gitmodules            | 3 +++
 net/lwip/lwip-external | 1 +
 2 files changed, 4 insertions(+)
 create mode 100644 .gitmodules
 create mode 160000 net/lwip/lwip-external

Comments

Simon Glass Sept. 26, 2023, 11:37 a.m. UTC | #1
Hi Maxim,

On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>
> add external lwIP library as a git submodule.
> Use STABLE-2_2_0_RELEASE tag.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>  .gitmodules            | 3 +++
>  net/lwip/lwip-external | 1 +
>  2 files changed, 4 insertions(+)
>  create mode 100644 .gitmodules
>  create mode 160000 net/lwip/lwip-external

I really don't agree with having submodules in U-Boot. It's just a
huge hassle that we don't need. We still haven't figured out how to
deal with config fragments.

If no one else is interested in maintaining this stack within U-Boot
and syncing up every now and then, perhaps we should reconsider
bringing this into U-Boot? We would never normally accept such a large
body of code without even a MAINTAINERS entry. Without a network
maintainer, even the integration layer will struggle to keep up and
up-revving won't be possible anyway.

In any case, if we go with lwip, we should copy in just the code that
is needed, unchanged,

Regards,
Simon
Tom Rini Sept. 26, 2023, 1:41 p.m. UTC | #2
On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> Hi Maxim,
> 
> On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> >
> > add external lwIP library as a git submodule.
> > Use STABLE-2_2_0_RELEASE tag.
> >
> > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> > ---
> >  .gitmodules            | 3 +++
> >  net/lwip/lwip-external | 1 +
> >  2 files changed, 4 insertions(+)
> >  create mode 100644 .gitmodules
> >  create mode 160000 net/lwip/lwip-external

Do you have comments on the rest of the series?
Simon Glass Sept. 26, 2023, 2:16 p.m. UTC | #3
Hi Tom,

On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
>
> On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> > Hi Maxim,
> >
> > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> > >
> > > add external lwIP library as a git submodule.
> > > Use STABLE-2_2_0_RELEASE tag.
> > >
> > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> > > ---
> > >  .gitmodules            | 3 +++
> > >  net/lwip/lwip-external | 1 +
> > >  2 files changed, 4 insertions(+)
> > >  create mode 100644 .gitmodules
> > >  create mode 160000 net/lwip/lwip-external
>
> Do you have comments on the rest of the series?

Not yet, but I should be able to review the rest in a few days. My
main comments before were minor - return codes, tests, error checking.

Regards,
Simon
Tom Rini Sept. 26, 2023, 2:19 p.m. UTC | #4
On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
> Hi Tom,
> 
> On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> > > Hi Maxim,
> > >
> > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> > > >
> > > > add external lwIP library as a git submodule.
> > > > Use STABLE-2_2_0_RELEASE tag.
> > > >
> > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> > > > ---
> > > >  .gitmodules            | 3 +++
> > > >  net/lwip/lwip-external | 1 +
> > > >  2 files changed, 4 insertions(+)
> > > >  create mode 100644 .gitmodules
> > > >  create mode 160000 net/lwip/lwip-external
> >
> > Do you have comments on the rest of the series?
> 
> Not yet, but I should be able to review the rest in a few days. My
> main comments before were minor - return codes, tests, error checking.

OK, thanks.  I don't know how exactly I want to proceed with the core of
lwip itself, but that doesn't block reviewing and testing the rest of it
as we'll move forward with it one way or another.
Maxim Uvarov Oct. 2, 2023, 6:34 a.m. UTC | #5
Can somebody help me to understand and reproduce CI errors?  I can run
locally 'make check' which runs a bunch of local builds with binman and all
of them are fine.
It looks like some dependency is missing or addition 'git config --global
--add safe.directory <path>/net/lwip/lwip-external'  is required for the
submodule directory.

https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17916

Building current source for 1 boards (0 threads, 24 jobs per thread)
   sandbox:  +   sandbox_spl
+fatal: not a git repository (or any of the parent directories): .git
+make[1]: *** [Makefile:1875: initsubmodules] Error 128
+make: *** [Makefile:177: sub-make] Error 2
    0    0    1 /1              sandbox_spl
Completed: 1 total built, 1 newly), duration 0:00:06, rate 0.17
Traceback (most recent call last):
  File "/builds/u-boot/custodians/u-boot-tpm/./tools/binman/binman", line
45, in <module>
    from binman import cmdline
  File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/cmdline.py", line
11, in <module>
    from binman import state
  File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/state.py", line
14, in <module>
    from dtoc import fdt
  File "/builds/u-boot/custodians/u-boot-tpm/tools/dtoc/fdt.py", line 14,
in <module>
    from libfdt import QUIET_NOTFOUND
ImportError: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown
location)

On Tue, 26 Sept 2023 at 20:19, Tom Rini <trini@konsulko.com> wrote:

> On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
> > Hi Tom,
> >
> > On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> > > > Hi Maxim,
> > > >
> > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org>
> wrote:
> > > > >
> > > > > add external lwIP library as a git submodule.
> > > > > Use STABLE-2_2_0_RELEASE tag.
> > > > >
> > > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> > > > > ---
> > > > >  .gitmodules            | 3 +++
> > > > >  net/lwip/lwip-external | 1 +
> > > > >  2 files changed, 4 insertions(+)
> > > > >  create mode 100644 .gitmodules
> > > > >  create mode 160000 net/lwip/lwip-external
> > >
> > > Do you have comments on the rest of the series?
> >
> > Not yet, but I should be able to review the rest in a few days. My
> > main comments before were minor - return codes, tests, error checking.
>
> OK, thanks.  I don't know how exactly I want to proceed with the core of
> lwip itself, but that doesn't block reviewing and testing the rest of it
> as we'll move forward with it one way or another.
>
> --
> Tom
>
Maxim Uvarov Oct. 2, 2023, 11:23 a.m. UTC | #6
I found what was missing. (reproduced with CI docker.)

On Mon, 2 Oct 2023 at 12:34, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> Can somebody help me to understand and reproduce CI errors?  I can run
> locally 'make check' which runs a bunch of local builds with binman and all
> of them are fine.
> It looks like some dependency is missing or addition 'git config --global
> --add safe.directory <path>/net/lwip/lwip-external'  is required for the
> submodule directory.
>
> https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17916
>
> Building current source for 1 boards (0 threads, 24 jobs per thread)
>    sandbox:  +   sandbox_spl
> +fatal: not a git repository (or any of the parent directories): .git
> +make[1]: *** [Makefile:1875: initsubmodules] Error 128
> +make: *** [Makefile:177: sub-make] Error 2
>     0    0    1 /1              sandbox_spl
> Completed: 1 total built, 1 newly), duration 0:00:06, rate 0.17
> Traceback (most recent call last):
>   File "/builds/u-boot/custodians/u-boot-tpm/./tools/binman/binman", line
> 45, in <module>
>     from binman import cmdline
>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/cmdline.py",
> line 11, in <module>
>     from binman import state
>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/state.py", line
> 14, in <module>
>     from dtoc import fdt
>   File "/builds/u-boot/custodians/u-boot-tpm/tools/dtoc/fdt.py", line 14,
> in <module>
>     from libfdt import QUIET_NOTFOUND
> ImportError: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown
> location)
>
> On Tue, 26 Sept 2023 at 20:19, Tom Rini <trini@konsulko.com> wrote:
>
>> On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
>> > Hi Tom,
>> >
>> > On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
>> > >
>> > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
>> > > > Hi Maxim,
>> > > >
>> > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <
>> maxim.uvarov@linaro.org> wrote:
>> > > > >
>> > > > > add external lwIP library as a git submodule.
>> > > > > Use STABLE-2_2_0_RELEASE tag.
>> > > > >
>> > > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
>> > > > > ---
>> > > > >  .gitmodules            | 3 +++
>> > > > >  net/lwip/lwip-external | 1 +
>> > > > >  2 files changed, 4 insertions(+)
>> > > > >  create mode 100644 .gitmodules
>> > > > >  create mode 160000 net/lwip/lwip-external
>> > >
>> > > Do you have comments on the rest of the series?
>> >
>> > Not yet, but I should be able to review the rest in a few days. My
>> > main comments before were minor - return codes, tests, error checking.
>>
>> OK, thanks.  I don't know how exactly I want to proceed with the core of
>> lwip itself, but that doesn't block reviewing and testing the rest of it
>> as we'll move forward with it one way or another.
>>
>> --
>> Tom
>>
>
Simon Glass Oct. 2, 2023, 2:46 p.m. UTC | #7
Hi Maxim,

On Mon, 2 Oct 2023 at 05:23, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>
> I found what was missing. (reproduced with CI docker.)

How about adding a script that copies in the lwip code needed for
U-Boot, that you (or whoever the maintainer is) can run each quarter?

Alternatively, I think just sending a patch with the code would be
helpful, so we can see what you are wanting to include.

Regards,
Simon

>
> On Mon, 2 Oct 2023 at 12:34, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>>
>> Can somebody help me to understand and reproduce CI errors?  I can run locally 'make check' which runs a bunch of local builds with binman and all of them are fine.
>> It looks like some dependency is missing or addition 'git config --global --add safe.directory <path>/net/lwip/lwip-external'  is required for the submodule directory.
>>
>> https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17916
>>
>> Building current source for 1 boards (0 threads, 24 jobs per thread)
>>    sandbox:  +   sandbox_spl
>> +fatal: not a git repository (or any of the parent directories): .git
>> +make[1]: *** [Makefile:1875: initsubmodules] Error 128
>> +make: *** [Makefile:177: sub-make] Error 2
>>     0    0    1 /1              sandbox_spl
>> Completed: 1 total built, 1 newly), duration 0:00:06, rate 0.17
>> Traceback (most recent call last):
>>   File "/builds/u-boot/custodians/u-boot-tpm/./tools/binman/binman", line 45, in <module>
>>     from binman import cmdline
>>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/cmdline.py", line 11, in <module>
>>     from binman import state
>>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/state.py", line 14, in <module>
>>     from dtoc import fdt
>>   File "/builds/u-boot/custodians/u-boot-tpm/tools/dtoc/fdt.py", line 14, in <module>
>>     from libfdt import QUIET_NOTFOUND
>> ImportError: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown location)
>>
>> On Tue, 26 Sept 2023 at 20:19, Tom Rini <trini@konsulko.com> wrote:
>>>
>>> On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
>>> > Hi Tom,
>>> >
>>> > On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
>>> > >
>>> > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
>>> > > > Hi Maxim,
>>> > > >
>>> > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>>> > > > >
>>> > > > > add external lwIP library as a git submodule.
>>> > > > > Use STABLE-2_2_0_RELEASE tag.
>>> > > > >
>>> > > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
>>> > > > > ---
>>> > > > >  .gitmodules            | 3 +++
>>> > > > >  net/lwip/lwip-external | 1 +
>>> > > > >  2 files changed, 4 insertions(+)
>>> > > > >  create mode 100644 .gitmodules
>>> > > > >  create mode 160000 net/lwip/lwip-external
>>> > >
>>> > > Do you have comments on the rest of the series?
>>> >
>>> > Not yet, but I should be able to review the rest in a few days. My
>>> > main comments before were minor - return codes, tests, error checking.
>>>
>>> OK, thanks.  I don't know how exactly I want to proceed with the core of
>>> lwip itself, but that doesn't block reviewing and testing the rest of it
>>> as we'll move forward with it one way or another.
>>>
>>> --
>>> Tom
Maxim Uvarov Oct. 4, 2023, 7:52 a.m. UTC | #8
On Mon, 2 Oct 2023 at 20:46, Simon Glass <sjg@google.com> wrote:

> Hi Maxim,
>
> On Mon, 2 Oct 2023 at 05:23, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> >
> > I found what was missing. (reproduced with CI docker.)
>
> How about adding a script that copies in the lwip code needed for
> U-Boot, that you (or whoever the maintainer is) can run each quarter?
>
> Alternatively, I think just sending a patch with the code would be
> helpful, so we can see what you are wanting to include.
>
> Regards,
> Simon
>

Hello Simon,

That might also work. lwIP is a little bit special library which we can not
just connect as an external library from the repo, because it has
platform implementation specifics (U-Boot here).
At this time I'm trying to pass all CI tests. And even if they pass for me
locally CI has some interesting combinations where the test fails and I'm
not even sure that it's related to lwip code.
Once CI will pass all the things I want to take more attention on submodule
support or patch support. I really hope that submodule will work for us,
but that also will require Makefile and CI changes.

However, review of lwIP code here might be helpful. But I think the mailing
list will not allow me to send such a big patch, and it's almost impossible
to do a review project in one email.
I guess it's better to do a git clone
https://git.savannah.nongnu.org/git/lwip.git and see what is there.

BR,
Maxim.



> >
> > On Mon, 2 Oct 2023 at 12:34, Maxim Uvarov <maxim.uvarov@linaro.org>
> wrote:
> >>
> >> Can somebody help me to understand and reproduce CI errors?  I can run
> locally 'make check' which runs a bunch of local builds with binman and all
> of them are fine.
> >> It looks like some dependency is missing or addition 'git config
> --global --add safe.directory <path>/net/lwip/lwip-external'  is required
> for the submodule directory.
> >>
> >> https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17916
> >>
> >> Building current source for 1 boards (0 threads, 24 jobs per thread)
> >>    sandbox:  +   sandbox_spl
> >> +fatal: not a git repository (or any of the parent directories): .git
> >> +make[1]: *** [Makefile:1875: initsubmodules] Error 128
> >> +make: *** [Makefile:177: sub-make] Error 2
> >>     0    0    1 /1              sandbox_spl
> >> Completed: 1 total built, 1 newly), duration 0:00:06, rate 0.17
> >> Traceback (most recent call last):
> >>   File "/builds/u-boot/custodians/u-boot-tpm/./tools/binman/binman",
> line 45, in <module>
> >>     from binman import cmdline
> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/cmdline.py",
> line 11, in <module>
> >>     from binman import state
> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/state.py",
> line 14, in <module>
> >>     from dtoc import fdt
> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/dtoc/fdt.py", line
> 14, in <module>
> >>     from libfdt import QUIET_NOTFOUND
> >> ImportError: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown
> location)
> >>
> >> On Tue, 26 Sept 2023 at 20:19, Tom Rini <trini@konsulko.com> wrote:
> >>>
> >>> On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
> >>> > Hi Tom,
> >>> >
> >>> > On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
> >>> > >
> >>> > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
> >>> > > > Hi Maxim,
> >>> > > >
> >>> > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <
> maxim.uvarov@linaro.org> wrote:
> >>> > > > >
> >>> > > > > add external lwIP library as a git submodule.
> >>> > > > > Use STABLE-2_2_0_RELEASE tag.
> >>> > > > >
> >>> > > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> >>> > > > > ---
> >>> > > > >  .gitmodules            | 3 +++
> >>> > > > >  net/lwip/lwip-external | 1 +
> >>> > > > >  2 files changed, 4 insertions(+)
> >>> > > > >  create mode 100644 .gitmodules
> >>> > > > >  create mode 160000 net/lwip/lwip-external
> >>> > >
> >>> > > Do you have comments on the rest of the series?
> >>> >
> >>> > Not yet, but I should be able to review the rest in a few days. My
> >>> > main comments before were minor - return codes, tests, error
> checking.
> >>>
> >>> OK, thanks.  I don't know how exactly I want to proceed with the core
> of
> >>> lwip itself, but that doesn't block reviewing and testing the rest of
> it
> >>> as we'll move forward with it one way or another.
> >>>
> >>> --
> >>> Tom
>
Tom Rini Oct. 4, 2023, 4:02 p.m. UTC | #9
On Wed, Oct 04, 2023 at 01:52:53PM +0600, Maxim Uvarov wrote:
> On Mon, 2 Oct 2023 at 20:46, Simon Glass <sjg@google.com> wrote:
> 
> > Hi Maxim,
> >
> > On Mon, 2 Oct 2023 at 05:23, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
> > >
> > > I found what was missing. (reproduced with CI docker.)
> >
> > How about adding a script that copies in the lwip code needed for
> > U-Boot, that you (or whoever the maintainer is) can run each quarter?
> >
> > Alternatively, I think just sending a patch with the code would be
> > helpful, so we can see what you are wanting to include.
> >
> > Regards,
> > Simon
> >
> 
> Hello Simon,
> 
> That might also work. lwIP is a little bit special library which we can not
> just connect as an external library from the repo, because it has
> platform implementation specifics (U-Boot here).
> At this time I'm trying to pass all CI tests. And even if they pass for me
> locally CI has some interesting combinations where the test fails and I'm
> not even sure that it's related to lwip code.
> Once CI will pass all the things I want to take more attention on submodule
> support or patch support. I really hope that submodule will work for us,
> but that also will require Makefile and CI changes.
> 
> However, review of lwIP code here might be helpful. But I think the mailing
> list will not allow me to send such a big patch, and it's almost impossible
> to do a review project in one email.
> I guess it's better to do a git clone
> https://git.savannah.nongnu.org/git/lwip.git and see what is there.

Yes, the mailing list will hold the message for moderation until I, or
one of the other people with the password approve it.  That's not a
consideration for how we handle the initial lwip integration.  It does
need to be a "just the import" patch as there's no real way to review
the code itself.
Simon Glass Oct. 4, 2023, 4:06 p.m. UTC | #10
Hi Maxim,

On Wed, 4 Oct 2023 at 01:53, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>
>
>
> On Mon, 2 Oct 2023 at 20:46, Simon Glass <sjg@google.com> wrote:
>>
>> Hi Maxim,
>>
>> On Mon, 2 Oct 2023 at 05:23, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>> >
>> > I found what was missing. (reproduced with CI docker.)
>>
>> How about adding a script that copies in the lwip code needed for
>> U-Boot, that you (or whoever the maintainer is) can run each quarter?
>>
>> Alternatively, I think just sending a patch with the code would be
>> helpful, so we can see what you are wanting to include.
>>
>> Regards,
>> Simon
>
>
> Hello Simon,
>
> That might also work. lwIP is a little bit special library which we can not just connect as an external library from the repo, because it has platform implementation specifics (U-Boot here).

Do you mean that it has an adaptation layer that we are using? I'm not
sure what you are getting at.

> At this time I'm trying to pass all CI tests. And even if they pass for me locally CI has some interesting combinations where the test fails and I'm not even sure that it's related to lwip code.
> Once CI will pass all the things I want to take more attention on submodule support or patch support. I really hope that submodule will work for us, but that also will require Makefile and CI changes.

I just hit a roadblock with submodules at the weekend. They are not
properly integrated into git (git fetch, git rebase, etc.). Perhaps
they will never be.

>
> However, review of lwIP code here might be helpful. But I think the mailing list will not allow me to send such a big patch, and it's almost impossible to do a review project in one email.

It just gets held up, but is released by Tom.

Yes, the email piece has its limits. Also I'm not sure how useful it
is to review the lwip code, unless we actually plan to submit fixes
upstream.

> I guess it's better to do a git clone https://git.savannah.nongnu.org/git/lwip.git and see what is there.

OK.

Regards,
Simon


>
> BR,
> Maxim.
>
>
>>
>> >
>> > On Mon, 2 Oct 2023 at 12:34, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>> >>
>> >> Can somebody help me to understand and reproduce CI errors?  I can run locally 'make check' which runs a bunch of local builds with binman and all of them are fine.
>> >> It looks like some dependency is missing or addition 'git config --global --add safe.directory <path>/net/lwip/lwip-external'  is required for the submodule directory.
>> >>
>> >> https://source.denx.de/u-boot/custodians/u-boot-tpm/-/pipelines/17916
>> >>
>> >> Building current source for 1 boards (0 threads, 24 jobs per thread)
>> >>    sandbox:  +   sandbox_spl
>> >> +fatal: not a git repository (or any of the parent directories): .git
>> >> +make[1]: *** [Makefile:1875: initsubmodules] Error 128
>> >> +make: *** [Makefile:177: sub-make] Error 2
>> >>     0    0    1 /1              sandbox_spl
>> >> Completed: 1 total built, 1 newly), duration 0:00:06, rate 0.17
>> >> Traceback (most recent call last):
>> >>   File "/builds/u-boot/custodians/u-boot-tpm/./tools/binman/binman", line 45, in <module>
>> >>     from binman import cmdline
>> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/cmdline.py", line 11, in <module>
>> >>     from binman import state
>> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/binman/state.py", line 14, in <module>
>> >>     from dtoc import fdt
>> >>   File "/builds/u-boot/custodians/u-boot-tpm/tools/dtoc/fdt.py", line 14, in <module>
>> >>     from libfdt import QUIET_NOTFOUND
>> >> ImportError: cannot import name 'QUIET_NOTFOUND' from 'libfdt' (unknown location)
>> >>
>> >> On Tue, 26 Sept 2023 at 20:19, Tom Rini <trini@konsulko.com> wrote:
>> >>>
>> >>> On Tue, Sep 26, 2023 at 08:16:35AM -0600, Simon Glass wrote:
>> >>> > Hi Tom,
>> >>> >
>> >>> > On Tue, 26 Sept 2023 at 07:41, Tom Rini <trini@konsulko.com> wrote:
>> >>> > >
>> >>> > > On Tue, Sep 26, 2023 at 05:37:25AM -0600, Simon Glass wrote:
>> >>> > > > Hi Maxim,
>> >>> > > >
>> >>> > > > On Tue, 26 Sept 2023 at 03:43, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>> >>> > > > >
>> >>> > > > > add external lwIP library as a git submodule.
>> >>> > > > > Use STABLE-2_2_0_RELEASE tag.
>> >>> > > > >
>> >>> > > > > Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
>> >>> > > > > ---
>> >>> > > > >  .gitmodules            | 3 +++
>> >>> > > > >  net/lwip/lwip-external | 1 +
>> >>> > > > >  2 files changed, 4 insertions(+)
>> >>> > > > >  create mode 100644 .gitmodules
>> >>> > > > >  create mode 160000 net/lwip/lwip-external
>> >>> > >
>> >>> > > Do you have comments on the rest of the series?
>> >>> >
>> >>> > Not yet, but I should be able to review the rest in a few days. My
>> >>> > main comments before were minor - return codes, tests, error checking.
>> >>>
>> >>> OK, thanks.  I don't know how exactly I want to proceed with the core of
>> >>> lwip itself, but that doesn't block reviewing and testing the rest of it
>> >>> as we'll move forward with it one way or another.
>> >>>
>> >>> --
>> >>> Tom
diff mbox series

Patch

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000000..245ecff585
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@ 
+[submodule "lwip"]
+	path = net/lwip/lwip-external
+	url = https://git.savannah.nongnu.org/git/lwip.git
diff --git a/net/lwip/lwip-external b/net/lwip/lwip-external
new file mode 160000
index 0000000000..0a0452b2c3
--- /dev/null
+++ b/net/lwip/lwip-external
@@ -0,0 +1 @@ 
+Subproject commit 0a0452b2c39bdd91e252aef045c115f88f6ca773