cpu/esp32: fixes LINKFLAGS in Makefile.include#10460
cpu/esp32: fixes LINKFLAGS in Makefile.include#10460gschorcht merged 2 commits intoRIOT-OS:masterfrom
Conversation
This commit adds the ESP32 vendor libraries for WLAN to the BASELIBS variable. This avoids having to define an additional archive group in the LINKGFLAGS variable which contains these vendor libraries and again RIOT module archive files with the symbols that are refered by these vendor libraries.
|
I cannot really review the test command but I tested executing the compile command with docker. Compiling works both with this PR: and master: The size increased a little bit a show in the output, but I get the same output for the symbols in master and this PR using the following debug command (the one used to debug the @gschorcht Did you tried running the firmware and check if the behavior was still ok ? |
|
@cladmi Yes, of course 😄 |
|
By taking into account this comment explaining why it was there (#10362 (comment)) I agree with the change. I only have a last curiosity question to try understanding, do you know why does not need to be put in BASELIBS ? https://github.com/RIOT-OS/RIOT/pull/10460/files#diff-a264f1e32b7ec79a7db68441a4a75e90R127 |
|
@cladmi Double checked it has not to be in the group. Archive groups have to be defined to be able to resolve circular references. The linker goes through all archives of a group again and again until it can resolve the symbols. So I think, as long as all symbols are defined in the BTW, I realized that contained |
|
@gschorcht thanks for the update, my goal is to have a reason in case someone ends up here in the future. When I tested in #10362 (comment) it also did not compile when putting them in You currently have two commits with the same commit message, which is disturbing for me, and the second has no description. I will approve after this. |
|
@cladmi The second just removes the double entry of |
|
@gschorcht I would prefer a second commit with its own description. |
removes the duplicate entry of -lg in LINKFLAGS
bf59def to
0c289a8
Compare
|
@cladmi Done |
|
@gschorcht Thank you, I re-triggered murdock due to an unrelated failure. |
cladmi
left a comment
There was a problem hiding this comment.
ACK, agree with the changes and justifications. I only tested compiling but as the maintainer of the board tested it is good for me :)
You can merge when murdock is green.
|
Thank you for doing the fix and following the review :) |
Contribution description
This PR adds the ESP32 vendor libraries for WLAN to the BASELIBS variable. This avoids having to define in the variable LINKFLAGS an additional archive group containing these vendor libraries and again the RIOT module archive files with symbols referenced by these vendor libraries.
Testing procedure
Testing is done just by compiling an application that is using networkting
The compilation has to be successful.