]> rtime.felk.cvut.cz Git - frescor/frsh-forb.git/commit
Prepare for compiling FORB "components" for RTEMS
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 18 Apr 2011 22:27:25 +0000 (00:27 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 18 Apr 2011 22:27:25 +0000 (00:27 +0200)
commit31cd1c465bd9a6c890542f7137efdf328dc3cdba
treeca9fb0a61648e439ec58a375d6ffb681001487f6
parentd8df8e8dc6e3445c412cf94fb16af70f30f15b48
Prepare for compiling FORB "components" for RTEMS

On Linux, FORB modules are normal shared libraries. The RTEMS support
for shared libraries does not seem to be mature so we use static libraries
for the components. These will have to be linked manually to the final
application.

The FORB components should use FORB_MAIN macro to define their main
function (previously called forb_main).

In this commit I only convert dummy resource to this new syntax. The rest
is leaved for Petr :-)

It will be necessary to implement an equivalent of forbrun for RTEMS. My
idea is to introduce a special ELF section with pointers to FORB_MAIN
functions and these functions will be called at the end of forb_init().
build/aquosa/config.target
build/rtems/config.target
src/forb/src/forb.h
src/frsh/resources/dummy/Makefile.omk
src/frsh/resources/dummy/frm_dummy.c