Re: MODULE_LICENSE("GPL") not working for me

From: Sam Ravnborg
Date: Sun Oct 09 2011 - 04:17:28 EST


On Fri, Oct 07, 2011 at 05:36:22PM -0700, Stephen Williams wrote:
> I've attached the Makefile as I have it so far, and I've also attached the
> output from make ... V=2. The Makefile is a canonical multi-object-file
> module makefile, with some extra trappings for version stamping
> and my source code management.
>
> When I look at the object files, NONE of the generated *.o files contains
> a .modinfo section, even though there are MODULE_LICENSE("GPL");
> lines in the linux.c source file.
>
> Incidentally, the source files in the ../libvidforio directory are generic,
> so do not include any kernel header files.

Looks like you do not have CONFIG_MODULE defined in you kernel config.
When using external modules there is today no consistency check that
CONFIG_MODULE is set when building a module.

Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/