[lkml]   [2011]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH v2] kconfig: autogenerated config_is_xxx macro
    On Fri, May 06, 2011 at 07:03:49AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
    > this will allow to use to use
    > if(config_is_xxx())
    > if(config_is_xxx_module())
    > in the code instead of
    > #ifdef CONFIG_xxx
    > #ifdef CONFIG_xxx_MODULE
    > and now let the compiler remove the non usefull code and not the
    > pre-processor
    > as done in the mach-types for arm as exmaple
    > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <>

    I pushed this to kbuild-2.6.git#kconfig, but I found an issue that needs
    to be fixed before we start using this feature: scripts/basic/fixdep
    scans source files for occurences of CONFIG_xxx and adds dependencies on
    include/config/xxx. It needs to be taught to match config_is_xxx as


     \ /
      Last update: 2011-05-17 16:47    [W:0.020 / U:12.516 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site