25 Oct, 2012

1 commit


12 Oct, 2012

1 commit

  • Pull kconfig changes from Michal Marek:
    "kconfig in v3.7 is going to
    - initialize ncurses only once in menuconfig
    - be able to jump to a search result in menuconfig
    - change the misnomer oldnoconfig to a more meaningful name
    olddefconfig, keeping the old name as alias"

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name as an alias
    menuconfig: Assign jump keys per-page instead of globally
    menuconfig: Do not open code textbox scroll up/down
    menuconfig: Add jump keys to search results
    menuconfig: Extend dialog_textbox so that it can return to a scrolled position
    menuconfig: Extend dialog_textbox so that it can exit on arbitrary keypresses
    menuconfig: Remove superfluous conditionnal
    kconfig: document oldnoconfig to what it really does in conf.c
    kconfig/mconf.c: revision of curses initialization.

    Linus Torvalds
     

08 Oct, 2012

1 commit

  • Pull kbuild fixes from Michal Marek:
    "Here are two fixes I intended to send after v3.6-rc7, but failed to do
    so. So please pull them for v3.7-rc1 and they will be picked up by
    stable.

    The first one fixes gcc -x syntax in various build-time
    tests, which icecream and possible other gcc wrappers did not
    understand (and yes, icecream is going to be fixed as well).

    The second one fixes make tar-pkg so that unpacking the tarball does
    not replace the /lib -> /usr/lib symlink on recent Fedora releases."

    * 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kbuild: Fix gcc -x syntax
    kbuild: Do not package /boot and /lib in make tar-pkg

    Linus Torvalds
     

03 Oct, 2012

1 commit

  • The correct syntax for gcc -x is "gcc -x assembler", not
    "gcc -xassembler". Even though the latter happens to work, the former
    is what is documented in the manual page and thus what gcc wrappers
    such as icecream do expect.

    This isn't a cosmetic change. The missing space prevents icecream from
    recognizing compilation tasks it can't handle, leading to silent kernel
    miscompilations.

    Besides me, credits go to Michael Matz and Dirk Mueller for
    investigating the miscompilation issue and tracking it down to this
    incorrect -x parameter syntax.

    Signed-off-by: Jean Delvare
    Acked-by: Ingo Molnar
    Cc: stable@vger.kernel.org
    Cc: Bernhard Walle
    Cc: Michal Marek
    Cc: Ralf Baechle
    Signed-off-by: Michal Marek

    Jean Delvare
     

02 Oct, 2012

1 commit

  • The kbuild target 'localyesconfig' has been same as 'localmodconfig'
    since the commit 50bce3e "kconfig/streamline_config.pl: merge
    local{mod,yes}config". The commit expects this script generates
    different configure depending on target, but it was not yet implemented.

    So I added code that sets to 'yes' when target is 'localyesconfig'.

    Link: http://lkml.kernel.org/r/1349101470-12243-1-git-send-email-yuta.and@gmail.com

    Cc: stable@vger.kernel.org # v3.2
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Yuta Ando
    Signed-off-by: Steven Rostedt

    Yuta Ando
     

28 Sep, 2012

7 commits


31 Aug, 2012

1 commit

  • As 67d34a6a391369269a2e5dba8a5f42cc4cd50231 said, the make target
    'oldnoconfig' is a misnomer. It doesn't set new symbols to 'n', but
    instead sets it to their default values.

    This patch fixes the document in conf.c, and will submit another patch
    to replace 'oldnoconfig' to 'olddefconfig'

    Signed-off-by: Adam Lee
    Signed-off-by: Michal Marek

    Adam Lee
     

30 Aug, 2012

1 commit


17 Aug, 2012

4 commits


31 Jul, 2012

1 commit

  • …/rostedt/linux-kconfig

    Pull localmodconfig updates from Steven Rostedt:
    "Improve localmodconfig to remove even more unused module configs.

    These changes drastically improve the amount of module configs removed
    from a config file. It also adds some debug that I can have users
    easily enable if things do not work for them."

    * tag 'localmodconfig-v3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
    localmodconfig: Add debug environment variable LOCALMODCONFIG_DEBUG
    localmodconfig: Check if configs are already set for selects
    localmodconfig: Read in orig config file to avoid extra processing
    localmodconfig: Comments and cleanup for streamline_config.pl

    Linus Torvalds
     

26 Jul, 2012

3 commits

  • The make target 'oldnoconfig' is a misnomer. It doesn't set new symbols
    to 'n', but instead sets it to their default values.

    Unfortunately, assuming that it actually did this, broke ktest in some
    of its tests. For example, the tests to create a minimum config and even
    a config bisect, depends on removing various configs and using
    oldnoconfig to get rid of other configs that may have depended on it.

    But because some configs that it was trying to disable, were in fact
    default enabled, this caused those configs to re-enable and corrupt the
    test.

    I thought about fixing oldnoconfig, but I'm afraid that people are
    already dependent on its current behavior. Instead, I'm just updating
    the documentation to state that it sets the new symbols to their default
    values and not to 'n'.

    Ideally, this would be called, 'olddefconfig' and we have an
    'oldnoconfig' that actually disables the new symbols. But it's useless
    for me now. If it changed, ktest would need to be consistent between
    each version, and that would be to difficult to detect. I'll handle this
    issue with ktest with other means.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Michal Marek

    Steven Rostedt
     
  • They function just like they do in less(1).
    Also correct some discrepancy between the help text and the code wrt
    function keys.

    Signed-off-by: Benjamin Poirier
    Signed-off-by: Michal Marek

    Benjamin Poirier
     
  • They function just like they do in less(1).

    Signed-off-by: Benjamin Poirier
    Signed-off-by: Michal Marek

    Benjamin Poirier
     

14 Jul, 2012

2 commits


13 Jul, 2012

3 commits


05 Jul, 2012

3 commits

  • Import libraries on Cygwin and MinGW/MSYS use the .dll.a suffix, so
    checking this suffix is necessary to make sure ncurses will still be
    found when built without static libraries.

    Signed-off-by: Yaakov Selkowitz
    Signed-off-by: Michal Marek

    Yaakov Selkowitz
     
  • Commit 8c41e5e363db55d91aa3b1cdce4ab02ad9821de7 added a check for
    ncursesw/curses.h for the case where ncurses and ncursesw are build
    separately but only one is installed. But if both are installed,
    the headers ncurses/curses.h and ncursesw/curses.h differ, and since
    libncursesw will be found first, so should ncursesw/curses.h.

    Signed-off-by: Yaakov Selkowitz
    Signed-off-by: Michal Marek

    Yaakov Selkowitz
     
  • ESCDELAY is a global variable which is replaced by getter and setter
    functions with NCURSES_REENTRANT. This fixes the following error:

    nconf.c: In function ‘main’:
    nconf.c:1506:2: error: lvalue required as left operand of assignment

    Signed-off-by: Yaakov Selkowitz
    Signed-off-by: Michal Marek

    Yaakov Selkowitz
     

20 Jun, 2012

4 commits

  • If the environment variable LOCALMODCONFIG_DEBUG is set, then debug output
    will appear in the make localmodconfig. This will simplify debugging what
    people get with their output, as I can just tell people to do:

    LOCALMODCONFIG_DEBUG=1 make localmodconfig 2>out.txt

    and have them send me the out.txt. I'll be able to see why things are not
    working as they think it should be.

    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • There are some cases that a required module does not have a prompt
    and needs to have another module enabled that selects it to be set.
    As localmodconfig is conservative and tries to make the minimum config
    without breaking the user's kernel, or keeping the user from using
    devices that were loaded when the lsmod was done, all modules that
    select this module will also be enabled.

    If you needed module A, but module A did not have a prompt but needed
    module B to be selected, localmodconfig would make sure B was still
    enabled. If not only B selected A, but C, D, E, F, and G also
    selected A, then all of those would also be included, as well as the
    modules they depend on. This ballooned the number of configs that
    localmodconfig would keep.

    The fix here is to process the depends first, and then record those
    configs that did not have a prompt and needed to be selected.
    After the depends are done, check what configs are needed to select
    the configs in the list, and if a config that selects it is already
    set, then we don't need to do anything else.

    If no config that selects the config is set, then just pick one and
    try again.

    This change brought down the number of selected modules from 290
    to 67! Both before and after were run against a config that had 3095
    modules enabled.

    Tested-by: John David Yost # AlleyTrotter
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • Read in the entire config file. If there's a config that we depend on
    that happens to be in the core set (not a module) then we do not need
    to process it as a module.

    Currently, we follow the entire depend and selects even if they
    are enabled as core and not modules. By checking to make sure that we
    only look at modules we can drop the count a little.

    From one of my tests, localmodconfig went from taking 3095 set modules
    down to 356 before this patch, and down to 290 modules after the change.

    Tested-by: John David Yost # AlleyTrotter
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • Added some more comments and cleaned up part of the the code to use
    a named variable instead of one of the special $1 perl variables.

    No functional changes.

    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

29 May, 2012

1 commit

  • Pull kconfig changes from Michal Marek:

    - Error handling for make KCONFIG_ALLCONFIG= all*config plus a fix
    for a bug that was exposed by this

    - Fix for the script/config utility.

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    scripts/config: properly report and set string options
    kbuild: all{no,yes,mod,def,rand}config only read files when instructed to.
    kconfig: Add error handling to KCONFIG_ALLCONFIG

    Linus Torvalds
     

18 May, 2012

1 commit

  • Hardware with MCA bus is limited to 386 and 486 class machines
    that are now 20+ years old and typically with less than 32MB
    of memory. A quick search on the internet, and you see that
    even the MCA hobbyist/enthusiast community has lost interest
    in the early 2000 era and never really even moved ahead from
    the 2.4 kernels to the 2.6 series.

    This deletes anything remaining related to CONFIG_MCA from core
    kernel code and from the x86 architecture. There is no point in
    carrying this any further into the future.

    One complication to watch for is inadvertently scooping up
    stuff relating to machine check, since there is overlap in
    the TLA name space (e.g. arch/x86/boot/mca.c).

    Cc: Thomas Gleixner
    Cc: James Bottomley
    Cc: x86@kernel.org
    Acked-by: Ingo Molnar
    Acked-by: H. Peter Anvin
    Signed-off-by: Paul Gortmaker

    Paul Gortmaker
     

08 May, 2012

1 commit

  • Prevent subtle surprises to both people working on the kconfig code
    and people using make allnoconfig allyesconfig allmoconfig and
    randconfig by only attempting to read a config file if
    KCONFIG_ALLCONFIG is set.

    Common sense suggests attempting to read the extra config files does
    not make sense unless requested. The documentation says the code
    won't attempt to read the extra config files unless requested.
    Current usage does not appear to include people depending on the code
    reading the config files without the variable being set So do the
    simple thing and stop reading config files when passed
    all{no,yes,mod,def,rand}config unless KCONFIG_ALLCONFIG environment
    variable is set.

    Signed-off-by: Eric W. Biederman
    Reported-by: Stephen Rothwell
    Signed-off-by: Michal Marek

    Eric W. Biederman
     

05 May, 2012

1 commit

  • - Only try to read the file specified if KCONFIG_ALL_CONFIG is set to
    something other than the empty string or "1".

    - Don't use stat to check the name passed to conf_read_simple so that
    zconf_fopen can find the file in the current directory or in SRCTREE
    removing a extremely source of confusing failure, where KCONFIG_ALL_CONFIG
    was not interpreted with respect to the directory make was called in.

    - If conf_read_simple fails complain clearly and stop processing.
    Allowing the simple debugging of typos.

    - Clearly document the behavior so it is clear to users which
    values are treated as flags and which values are treated as
    filenames.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Michal Marek

    Eric W. Biederman
     

13 Apr, 2012

2 commits