lkml.org 
[lkml]   [2013]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] build some drivers only when compile-testing
    On 18/06/13 07:51, Michal Marek wrote:

    >> Sam Ravnborg (the kconfig ex-maintainer) once wrote that he doesn't want
    >> to extend the kconfig language for this purpose (which I support). That
    >> a config option is fine and sufficient in this case [1]. Except he
    >> called the config option "SHOW_ALL_DRIVERS". Adding the current
    >> maintainer to CCs ;).
    >
    > I agree with Sam. 'depends on XY || COMPILE_TEST' is quite
    > self-explanatory. And even if it's not, you can look up the help text
    > for COMPILE_TEST. With "archdepends on" or "available on", you need to
    > know what to look for to override the dependency.

    I would rather have "depends on", when the code actually depends on
    something (i.e. you can't compile/load the code otherwise), and "used
    on"/"available on" when the code is just normally not used except on the
    listed platforms (but nothing prevents from compiling and using the code
    on all platforms).

    But I'm fine with COMPILE_TEST or similar, I guess it's an acceptable
    compromise and trivial to implement. Even if we had "used on" we'd still
    need to update the Kconfig file when the code is being used on a new
    platform, just like with COMPILE_TEST.

    Tomi


    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2013-06-18 11:21    [W:2.534 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site