import/mk: Update ELF flags to represent build configuration type.#1810
Conversation
Allows board configuration to select the output ELF format for application built using the `make import` target.
|
Hi @g2gps thanks for fixing it. Someone ping me few days ago saying that running external ELF binaries on NuttX as explained on my video: https://www.youtube.com/watch?v=oL6KAgkTb8M is failing. Then I rested on versions: 12.1, 9.1 and 7.25 (that was used in the video). Only version 7.25 is working. Probably some modification after version 7.25 broke it and nobody paid attention. I think we need to move the scripts from https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=139629542 to apps/ to let people to test it easily. Something I noticed is that the addon/Makefile looks for nuttx-export/System.map that is not exported anymore. Neale is also fixing the issues on his ET_DYN Loader PR: apache/nuttx#7202 |
|
Hi @acassis,
I added #1816, which adds the System.map file back into the I had a look through your video, and it actually helped clarify a few things about the different ways Nuttx support building and launching applications. As a brief summary (more for my understanding):
I've been chipping away at adding support for (3) over the last couple of months, as the drawbacks of (2) were too much for our current application. As far as I know, the arty_a7 is the only platform which supports building applications in this manor. Loading fully linked applications should be supported generically.
I agree. The full extent of Nuttx's capability is not obvious, especially to a new-comer. Perhaps the first step would be to add a brief outline of the currently supported options to the Documentation, with an example of a board configuration which supports it? |
|
@g2gps I think we could move this discussion to the mailing list to let more people to participate and then I can create a summary to include as Documentation here: https://nuttx.apache.org/docs/latest/components/binfmt.html# |
Summary
Allows board configuration to select the output ELF format for applications built using the
make importtarget.This PR should be paired with #9635, from the NuttX main repository.
Impact
The format of application ELFs built through
make importcan be set by board configuration.Testing
Copied from #9635: