lkml.org 
[lkml]   [2001]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] Re: 2.4.6p6: dep_{bool,tristate} $CONFIG_ARCH_xxx bugs
    >On Sun, 1 Jul 2001 21:46:04 -0700, 
    >"Adam J. Richter" <adam@yggdrasil.com> wrote:
    >>Can you even write a hypothetical example?

    >if [ "$CONFIG_foo" = "n" -a "$CONFIG_bar" = "n" ]; then
    > define_bool "$CONFIG_ALLOW_foo_bar n
    >fi
    >....
    >dep_tristate CONFIG_baz $CONFIG_ALLOW_foo_bar

    In linux-2.4.6-pre8, there are only three configuration variables
    that are defined with an indented 'define_bool' statement
    (CONFIG_BLK_DEV_IDE{DMA,PCI}, and CONFIG_PCI), and the conditional
    code execute by all "if" statements in all of the config.in files
    appears to be indented (or at least the first statement in the block
    is indented). None of these three variables has the semantics that
    I think you you described above.

    If you want to check, I determined this by the following shell
    commands:

    % find . -iname config.in | xargs egrep dep_tristate | tr ' ' '\n\n' | egrep '^\$CONFIG_' | sort -u > /tmp/config-dependencies
    % find . -iname config.in | xargs egrep '^[ ].*define_bool' | fgrep -f /tmp/config-dependencies | awk '{print $(NF-1)}' | sort -u
    CONFIG_BLK_DEV_IDEDMA
    CONFIG_BLK_DEV_IDEPCI
    CONFIG_PCI
    % find /usr/src/linux/ -iname config.in | xargs egrep -A 2 ^if | egrep -v -e -- | egrep '^-[^ ]'
    %


    Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
    adam@yggdrasil.com \ / San Jose, California 95129-1034
    +1 408 261-6630 | g g d r a s i l United States of America
    fax +1 408 261-6631 "Free Software For The Rest Of Us."
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:55    [W:0.024 / U:150.360 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site