lkml.org 
[lkml]   [2009]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Kconfig, Makefile and ifdef: mod as yes vs. no?
    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


    \
     
     \ /
      Last update: 2009-07-12 00:03    [W:0.020 / U:30.324 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site