]> rtime.felk.cvut.cz Git - omk.git/commit
Initial support for NuttX user-space programs build.
authorPavel Pisa <ppisa@pikron.com>
Fri, 23 Aug 2019 14:27:11 +0000 (16:27 +0200)
committerPavel Pisa <ppisa@pikron.com>
Fri, 23 Aug 2019 14:27:11 +0000 (16:27 +0200)
commit0b5a89f3becad55736a53fa82581b5384a05328b
tree6f88751a614531f4874539c2fa911f0085e2e98b
parent35198a45d413a04eba1ffa4ca00b96a3c52dd82f
Initial support for NuttX user-space programs build.

bin_PROGRAMS and test_PROGRAMS are build in multiple variants:
 - they are build as standalone loadable ELF programs
   which start from program provided main() symbol
 - then each program is linked with NuttX libraries
   which for NuttX flat target creates complete
   system image, main() can be configured as startup
   symbol in CONFIG_USER_ENTRYPOINT

bin_PROGRAMS are in addition build as objects with
symbols stripped and main() renamed to program_name_main().
The objects are added into registry and if some of programs
specifies list of commands (prgram_name_PROGBUILTIN)
which should be linked into final executable then these
programs are available in binfs image. If the "all" symbol
is used instead of individual programs then all programs
from the build are linked into system image. External registry
can be specified as well by NUTTXREGISTRY define.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
snippets/Makefile.rules.nuttx [new file with mode: 0644]
snippets/base.omk
snippets/nuttx-bin.omk [new file with mode: 0644]
snippets/nuttx-compile.omk [new file with mode: 0644]