[LITMUS^RT] [PATCH 0/2] Add module functionality to liblitmus

Björn Brandenburg bbb at mpi-sws.org
Tue Feb 4 07:42:21 CET 2014


On 04 Feb 2014, at 03:20, Manohar Vanga <mvanga at mpi-sws.org> wrote:
> 
> These two patches add support for building LITMUS^RT tasks as out-of-tree
> modules using kernel-style Makefiles. The first patch adds a 'modules'
> rule to the liblitmus Makefile and the second patch adds a simple task
> skeleton folder consisting of a copy of base_task.c and an appropriate
> Makefile.


Hi Manohar,

thanks a lot for your patches. I’m not quite sure I understand their purpose, though. It’s already possible to build tasks using liblitmus outside of the liblitmus tree. That’s why we have the auto-generated files in the inc/folder. For example, the feather-trace-tools project uses this:

	https://github.com/LITMUS-RT/feather-trace-tools/blob/master/Makefile#L12

The way to start develop out of tree is basically:

1) Copy the basic task skeleton somewhere.

2) Create a local Makefile and include ${LIBLITMUS}/inc/config.makefile at the top.

3) If you want dependency tracking (ie., that changes in headers cause recompilation), include ${LIBLITMUS}/inc/depend.makefile.

Maybe I’m missing the point, but are your patches enabling something that the existing include-based approach doesn’t cover yet?

Thanks,
Björn







More information about the litmus-dev mailing list