1. 20 Sep, 2010 7 commits
  2. 19 Sep, 2010 9 commits
  3. 08 Sep, 2010 1 commit
  4. 06 Sep, 2010 1 commit
  5. 01 Sep, 2010 1 commit
    • Alexander Stein's avatar
      kconfig qconf: port to QT4 · 133c5f7c
      Alexander Stein authored
      A straight forward port to QT4 using qt3to4 and compiling against
        qt3support
      
      * Use pkg-config to detect QT4 which is hopefully portable enough
      * If no QT4, QT3 will by tried instead
      * Classes renamed using qt3to4
        * If build using QT3 renamed to QT3 class names using defines
      * ConfigInfoView::menu has to be renamed as QT4 moc strips struct from
        struct menu and creates a name conflict
      * QT2 support has been dropped
      * The hidden options inserted in 39a4897c
        are use in native API
      Signed-off-by: 's avatarAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      133c5f7c
  6. 31 Aug, 2010 1 commit
  7. 26 Aug, 2010 1 commit
  8. 17 Aug, 2010 3 commits
  9. 16 Aug, 2010 1 commit
    • Nir Tzachar's avatar
      nconfig: add search support · a72f3e2b
      Nir Tzachar authored
      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: 's avatarNir Tzachar <nir.tzachar@gmail.com>
      Acked-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      a72f3e2b
  10. 14 Aug, 2010 2 commits
    • Sam Ravnborg's avatar
      kconfig: fix segfault when detecting recursive dependency · 3643f849
      Sam Ravnborg authored
      Following sample Kconfig generated a segfault:
      
      config FOO
              bool
              select PERF_EVENTS if HAVE_HW_BREAKPOINT
      
      config PERF_EVENTS
              bool
      
      config HAVE_HW_BREAKPOINT
              bool
              depends on PERF_EVENTS
      
      Fix by reverting back to a valid property if there was no
      property on the stack of symbols.
      
      The above pattern were seen in sh Kconfig.
      A fix for the Kconfig file has been sent to the sh folks.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      3643f849
    • Sam Ravnborg's avatar
      kconfig: fix savedefconfig with choice marked optional · 84062dd3
      Sam Ravnborg authored
      savedefconfig failed to save the correct minimal config
      when it encountered a choice marked optional.
      
      Consider following minimal configuration:
      $cat Kconfig
      choice
      	prompt "choice"
      	optional
      
      config A
      	bool "a"
      
      config B
      	bool "b"
      
      endchoice
      
      $cat .config | grep -v ^#
      CONFIG_A=y
      
      $conf --savedefconfig=defconfig Kconfig
      
      would before this fix result in an empty file, because
      kconfig would assume that CONFIG_A=y is a default value.
      But because the choice is optional the default is that
      both A and B are =n.
      
      Fix so we handle optional choices correct.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      84062dd3
  11. 12 Aug, 2010 5 commits
  12. 04 Aug, 2010 1 commit
  13. 03 Aug, 2010 7 commits
    • Sam Ravnborg's avatar
      kconfig: add savedefconfig · 7cf3d73b
      Sam Ravnborg authored
      savedefconfig will save a minimal config to a file
      named "defconfig".
      
      The config symbols are saved in the same order as
      they appear in the menu structure so it should
      be possible to map them to the relevant menus
      if desired.
      
      The implementation was tested against several minimal
      configs for arm which was created using brute-force.
      
      There was one regression related to default numbers
      which had their valid range further limited by another symbol.
      
      Sample:
      
      config FOO
      	int "foo"
      	default 4
      
      config BAR
      	int "bar"
      	range 0 FOO
      
      If FOO is set to 3 then BAR cannot take a value higher than 3.
      But the current implementation will set BAR equal to 4.
      
      This is seldomly used and the final configuration is OK,
      and the fix was non-trivial.
      So it was documented in the code and left as is.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Acked-by: 's avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      7cf3d73b
    • Sam Ravnborg's avatar
      kconfig: code refactoring in confdata.c · 49192f26
      Sam Ravnborg authored
      Add a a few local functions to avoid some code duplication
      No functional changes.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      49192f26
    • Sam Ravnborg's avatar
      kconfig: refactor code in symbol.c · c252147d
      Sam Ravnborg authored
      Move logic to determine default for a choice to
      a separate function.
      No functional changes.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      c252147d
    • Sam Ravnborg's avatar
      kconfig: add alldefconfig · 0748cb3e
      Sam Ravnborg authored
      alldefconfig create a configuration with all values set
      to their default value (form the Kconfig files).
      
      This may be useful when we try to use more sensible default
      values and may also be used in combination with
      the minimal defconfigs.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      0748cb3e
    • Roman Zippel's avatar
      kconfig: print more info when we see a recursive dependency · d595cea6
      Roman Zippel authored
      Consider following kconfig file:
      
      config TEST1
      	bool "test 1"
      	depends on TEST2
      
      config TEST2
      	bool "test 2"
      	depends on TEST1
      
      Previously kconfig would report:
      
      foo:6:error: found recursive dependency: TEST2 -> TEST1 -> TEST2
      
      With the following patch kconfig reports:
      foo:5:error: recursive dependency detected!
      foo:5:  symbol TEST2 depends on TEST1
      foo:1:  symbol TEST1 depends on TEST2
      
      Note that we now report where the offending symbols are defined.
      This can be a great help for complex situations involving
      several files.
      
      Patch is originally from Roman Zippel with a few adjustments by Sam.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      d595cea6
    • Sam Ravnborg's avatar
      kconfig: save location of config symbols · 59e89e3d
      Sam Ravnborg authored
      When we add a new config symbol save the file/line
      so we later can refer to their location.
      
      The information is saved as a property to a config symbol
      because we may have multiple definitions of the same symbol.
      
      This has the side-effect that a symbol always has
      at least one property.
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      59e89e3d
    • Sam Ravnborg's avatar
      kconfig: change nonint_oldconfig to listnewconfig · 861b4ea4
      Sam Ravnborg authored
      Rename to a name that better match the other kconfig targets.
      
      listnewconfig shall read as:
      
      - list new options compared to current configuration
      
      New options are now written to stdout so one can redirect the output.
      
      Do not exit with an error code if there is new options.
      
      These are feature changes compared to the original
      nonint_oldconfig - but as this feature has not yet been in a
      released kernel it should not matter.
      
      It is still possible to do:
      
      make listnewconfig
      lookup new config options in Kconfig*
      edit .config
      Signed-off-by: 's avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Aristeu Rozanski <aris@redhat.com>
      Acked-by: 's avatarAristeu Rozanski <aris@redhat.com>
      Signed-off-by: 's avatarMichal Marek <mmarek@suse.cz>
      861b4ea4