]> rtime.felk.cvut.cz Git - omk.git/commit
NuttX: link program/application only once into combined system image.
authorPavel Pisa <ppisa@pikron.com>
Mon, 9 Sep 2019 20:44:27 +0000 (22:44 +0200)
committerPavel Pisa <ppisa@pikron.com>
Mon, 9 Sep 2019 20:53:00 +0000 (22:53 +0200)
commit301483213562bc42df74f24da5eca872d3d1f694
tree98d346aae33ffdb852159e2a111f2e9f2e9dc0d9
parent4793b742b506a49be60cfc23669749c68b1e68b1
NuttX: link program/application only once into combined system image.

When given program had been built as builtin command, it was linked
as builtin relocatable object (PBI) which is linked together
with NuttX system libraries and program object files (again) into
target system image. But this way the actual program objects
are linked twice into OS image.

This change ensures that actual program PBI is not linked in
and alias <progname>_main is created to reference main()
from builtin programs table.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
snippets/nuttx-compile.omk