[PATCHv10 01/15] submodule: add lwIP as git submodule
Simon Glass
sjg at google.com
Wed Oct 4 18:06:22 CEST 2023
Hi Maxim,
On Wed, 4 Oct 2023 at 01:53, Maxim Uvarov <maxim.uvarov at linaro.org> wrote:
>
>
>
> On Mon, 2 Oct 2023 at 20:46, Simon Glass <sjg at google.com> wrote:
>>
>> Hi Maxim,
>>
>> On Mon, 2 Oct 2023 at 05:23, Maxim Uvarov <maxim.uvarov at 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 at 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 at 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 at 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 at 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 at 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
More information about the U-Boot
mailing list