tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lua(4), non-invasive and invasive parts



> On Fri, Dec 28, 2012 at 10:05:36AM +0100, Marc Balmer wrote:
>> Using a kernel module is not possible in all cases.
> 
> By a closer look, you have:
> 
>       +#ifdef LUA
>       +MODULE(MODULE_CLASS_DRIVER, gpiosim, "gpio,lua");
>       +#else
>        MODULE(MODULE_CLASS_DRIVER, gpiosim, "gpio");
>       -
>       +#endif
>        #ifdef _MODULE
> 
> What does this mean? Also the kernel modules using lua(4) will be
> conditionally compiled? I think this is fairly strongly against the design
> principles of module(7).

This means that gpiosim(4) can be compiled with Lua support, if 'options LUA' 
is defined in the kernel configuration.  As Lua in the kernel is experimental, 
such a guard makes sense.


Home | Main Index | Thread Index | Old Index