Makefile.include: RIOTNOLINK ensure linking fails#11168
Makefile.include: RIOTNOLINK ensure linking fails#11168cladmi wants to merge 1 commit intoRIOT-OS:masterfrom
Conversation
|
Nice! I suggest only diverting the error output to the file. Then we can add |
| $(ELFFILE).nolink: FORCE | ||
| $(ELFFILE).nolink: $(BASELIBS) | ||
| $(Q)\ | ||
| $(_LINK) -o $(ELFFILE) 2>&1 > $@; \ |
There was a problem hiding this comment.
| $(_LINK) -o $(ELFFILE) 2>&1 > $@; \ | |
| $(_LINK) -o /dev/null 2>&1 > $@; \ |
This way we don't have to worry about cleanup if linking succeeds.
There was a problem hiding this comment.
I left ELFFILE on purpose, because you could check the elffile if it succeeds and you would like to analyze it. All the files from BASELIBS are also still there.
But I can change it if wanted.
This checks that linking correctly fails when it is supposed to. This should help keeping the `BOARD_INSUFFICIENT_MEMORY` list up to date.
50c605f to
3b17337
Compare
|
The solution I would like to do here, would be to have a global or per architecture file of However, this requires communicating with the tests to know if the test must be run or not in |
@kaspar030 would you want to push your suggested change? I can finish the review afterwards. |
|
This one seemed almost ready, but I would rather not have it in since soft feature freeze is already here. So I'm moving the milestone. |
|
There is still one day left to get this into 2020.07 ;-) |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Contribution description
This checks that linking correctly fails when it is supposed to.
This should help keeping the
BOARD_INSUFFICIENT_MEMORYlist up to date.Testing procedure
This verifies the board is indeed not linking:
If the board should not link (here overwritten) but does, it shows an error:
Issues/PRs references
#11128