Re: Kconfig, Makefile and ifdef: mod as yes vs. no?

From: Kyle McMartin
Date: Sat Jul 11 2009 - 17:54:10 EST


On Sun, Jul 12, 2009 at 12:06:25AM +0300, Pekka Paalanen wrote:
> +#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
>

You need to test _MODULE for the symbol too... since it's necessary to
be able to distinguish between symbols which exist in the vmlinux, and
symbols which require a module to be loaded.

#if defined(CONFIG_BACKLIGHT_CLASS_DEVICE) &&
defined(CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE)

should work.

regards, Kyle
--
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/