09 Sep, 2011

1 commit


08 Aug, 2011

1 commit


13 Jul, 2011

4 commits

  • After the test

    if (!submenu || ...)
    continue;

    the variable `submenu' can _not_ be NULL, so do not test for this
    situation.

    Cc: Nir Tzachar
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • nconf does not check the validity of the current menu when help is
    requested (with either , '?' or 'h'). This leads to a NULL pointer
    dereference when an empty menu is encountered.

    The following reduced testcase exposes the problem:

    config DEP
    bool

    menu "FOO"

    config BAR
    bool "BAR"
    depends on DEP

    endmenu

    Issue will happen when entering menu "FOO" and requesting help.

    nconf is the only front-end which do not filter the validity of the
    current menu. Such filter can not really happen beforehand as other key
    which does not deals with the current menu might be entered by the user,
    so just bails out earlier if we encounter an invalid menu.

    Cc: Nir Tzachar
    Cc: Andrej Gelenberg
    Reported-by: Andrej Gelenberg
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • nconf is the only front-end which does not use this helper, but prefer
    to copy/paste the code. The test wrt. menu validity added in this
    version of the code is bogus anyway as an invalid menu will get
    dereferenced a few line below by calling menu_get_prompt().

    For now, convert nconf to use menu_get_ext_help(), as do every other
    front-end. We will deals with menu validity checks properly in a
    separate commit.

    Cc: Nir Tzachar
    Cc: Andrej Gelenberg
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • I am seeing Wunused-but-set warning while make nconfig. Looks like
    active_menu is not used. Removing it fixes the warning.

    Signed-off-by: Raghavendra D Prabhu
    Acked-by: WANG Cong
    Signed-off-by: Michal Marek

    Raghavendra D Prabhu
     

07 Jun, 2011

1 commit


19 Apr, 2011

1 commit

  • Ignore the return value from wattrset since we ignore the return
    value in nconf.gui.c as well.

    scripts/kconfig/nconf.c: In function 'print_function_line':
    scripts/kconfig/nconf.c:376: warning: value computed is not used
    scripts/kconfig/nconf.c:380: warning: value computed is not used
    scripts/kconfig/nconf.c:387: warning: value computed is not used
    scripts/kconfig/nconf.c: In function 'show_menu':
    scripts/kconfig/nconf.c:956: warning: value computed is not used
    scripts/kconfig/nconf.c:961: warning: value computed is not used
    scripts/kconfig/nconf.c:963: warning: value computed is not used
    scripts/kconfig/nconf.c:965: warning: value computed is not used

    Cc: Nir Tzachar
    Signed-off-by: Stephen Boyd
    Signed-off-by: Michal Marek

    Stephen Boyd
     

07 Jan, 2011

1 commit

  • Equivalent to af6c1598 (kconfig: handle comment entries within
    choice/endchoice), but for nconfig instead.

    Implement support for comment entries within choice groups. Comment entries
    are displayed visually distinct from normal configs, and selecting them is
    a no-op.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Michal Marek

    Peter Korsgaard
     

15 Dec, 2010

1 commit


28 Oct, 2010

1 commit


28 Sep, 2010

1 commit

  • …nux-2.6 into kbuild/kconfig

    * 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6:
    kbuild: migrate all arch to the kconfig mainmenu upgrade
    kconfig: expand file names
    kconfig: use the file's name of sourced file
    kconfig: constify file name
    kconfig: don't emit warning upon rootmenu's prompt redefinition
    kconfig: replace KERNELVERSION usage by the mainmenu's prompt
    kconfig: delay gconf window initialization
    kconfig: expand by default the rootmenu's prompt
    kconfig: add a symbol string expansion helper
    kconfig: regen parser
    kconfig: implement the `mainmenu' directive
    kconfig: allow PACKAGE to be defined on the compiler's command-line
    kconfig: rephrase help texts/comments not to include the package name
    kconfig: allow build-time definition of the internal config prefix
    kconfig: rephrase help text not to mention the internal prefix
    kconfig: replace a `switch()' statement by a more flexible `if()' statement

    Michal Marek
     

20 Sep, 2010

4 commits


13 Sep, 2010

1 commit

  • When getting the help for a choice menu with a help section (for example
    the "Choose SLAB allocator" menu) nconfig pops up a window with nothing
    inside it. This is due to show_help() passing an empty string to
    show_scroll_win()'s 3rd argument. The option really does have help
    though, but it isn't a config symbol, so just add the help text for
    the option, and don't try to add anything else like the config option
    name.

    Signed-off-by: Stephen Boyd
    Acked-by: Nir Tzachar
    Signed-off-by: Michal Marek

    Stephen Boyd
     

17 Aug, 2010

2 commits

  • Signed-off-by: Michal Marek

    Michal Marek
     
  • Remove the old hotkeys feature, and replace it by an interactive string
    search.
    From nconfig help:

    Searching: pressing '/' triggers interactive search mode.
    nconfig performs a case insensitive search for the string
    in the menu prompts (no regex support).
    Pressing the up/down keys highlights the previous/next
    matching item. Backspace removes one character from the
    match string. Pressing either '/' again or ESC exits
    search mode. All other keys behave normally.

    Miscellaneous other changes (including Rundy's and Justin's input).

    Signed-off-by: Nir Tzachar
    Acked-by: Sam Ravnborg
    Signed-off-by: Michal Marek

    Nir Tzachar
     

13 Aug, 2010

1 commit


02 Feb, 2010

3 commits

  • This patch fixes two problems reported by Jan Engelhardt:
    1) Border is now properly placed, to always be visible
    2) Long menu items are properly displayed

    Reported-by: Jan Engelhardt
    Signed-off-by: Nir Tzachar
    Signed-off-by: Michal Marek

    Nir Tzachar
     
  • scripts/kconfig/nconf.gui.c:23: warning: no previous prototype for 'set_normal_colors'
    scripts/kconfig/nconf.gui.c:68: warning: no previous prototype for 'normal_color_theme'
    scripts/kconfig/nconf.gui.c:100: warning: no previous prototype for 'no_colors_theme'
    scripts/kconfig/nconf.c:455: warning: no previous prototype for 'process_special_keys'
    scripts/kconfig/nconf.c:487: warning: no previous prototype for 'get_next_hot'
    scripts/kconfig/nconf.c:506: warning: no previous prototype for 'canbhot'
    scripts/kconfig/nconf.c:514: warning: no previous prototype for 'is_hot'
    scripts/kconfig/nconf.c:522: warning: no previous prototype for 'make_hot'
    scripts/kconfig/nconf.c:582: warning: no previous prototype for 'item_make'
    scripts/kconfig/nconf.c:626: warning: no previous prototype for 'item_add_str'
    scripts/kconfig/nconf.c:656: warning: no previous prototype for 'item_tag'
    scripts/kconfig/nconf.c:668: warning: no previous prototype for 'curses_item_index'
    scripts/kconfig/nconf.c:673: warning: no previous prototype for 'item_data'
    scripts/kconfig/nconf.c:684: warning: no previous prototype for 'item_is_tag'
    scripts/kconfig/nconf.c:691: warning: no previous prototype for 'set_config_filename'

    Signed-off-by: Michal Marek

    Michal Marek
     
  • This patch was inspired by the kernel projects page, where an ncurses
    replacement for menuconfig was mentioned (by Sam Ravnborg).

    Building on menuconfig, this patch implements a more modern look
    interface using ncurses and ncurses' satellite libraries (menu, panel,
    form). The implementation does not depend on lxdialog, which is
    currently distributed with the kernel.

    Signed-off-by: Nir Tzachar
    Signed-off-by: Michal Marek

    nir.tzachar@gmail.com