1. 20 9月, 2010 16 次提交
  2. 08 9月, 2010 1 次提交
  3. 06 9月, 2010 1 次提交
  4. 01 9月, 2010 1 次提交
    • A
      kconfig qconf: port to QT4 · 133c5f7c
      Alexander Stein 提交于
      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: NAlexander Stein <alexander.stein@informatik.tu-chemnitz.de>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      133c5f7c
  5. 31 8月, 2010 1 次提交
  6. 26 8月, 2010 1 次提交
  7. 17 8月, 2010 4 次提交
  8. 15 8月, 2010 2 次提交
    • S
      kconfig: fix segfault when detecting recursive dependency · 3643f849
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      3643f849
    • S
      kconfig: fix savedefconfig with choice marked optional · 84062dd3
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      84062dd3
  9. 13 8月, 2010 3 次提交
  10. 12 8月, 2010 2 次提交
    • S
      kconfig: fix tristate choice with minimal config · a64b44ea
      Sam Ravnborg 提交于
      If a minimal config did not specify the value
      of all choice values, the resulting configuration
      could have wrong values.
      
      Consider following example:
      config M
              def_bool y
              option modules
      choice
              prompt "choice list"
      config A
              tristate "a"
      config B
      	tristate "b"
      endchoice
      
      With a defconfig like this:
      CONFIG_M=y
      CONFIG_A=y
      
      The resulting configuration would have
      
          CONFIG_A=m
      
      which was unexpected.
      
      The problem was not not all choice values were set and thus
      kconfig calculated a wrong value.
      
      The fix is to set all choice values when we
      read a defconfig files.
      
      conf_set_all_new_symbols() is refactored such that
      random choice values are now handled by a dedicated function.
      And new choice values are set by set_all_choice_values().
      
      This was not the minimal fix, but the fix that resulted
      in the most readable code.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reported-by: NArve Hjønnevåg <arve@android.com>
      Tested-by: NArve Hjønnevåg <arve@android.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      a64b44ea
    • S
      kconfig: fix savedefconfig for tristate choices · 801690ca
      Sam Ravnborg 提交于
      savedefconfig failed to save choice symbols equal to 'y'
      for tristate choices.
      This resulted in this value being lost.
      
      In particular is fixes an issue where
      
      	make ARCH=avr32 atngw100_defconfig
      	make ARCH=avr32 savedefconfig
      	cp defconfig arch/avr32/configs/atngw100_defconfig
      	make ARCH=avr32 atngw100_defconfig
      	diff -u .config .config.old
      
      failed to produce an identical .config.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      801690ca
  11. 04 8月, 2010 1 次提交
  12. 03 8月, 2010 7 次提交
    • S
      kconfig: add savedefconfig · 7cf3d73b
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      7cf3d73b
    • S
      kconfig: code refactoring in confdata.c · 49192f26
      Sam Ravnborg 提交于
      Add a a few local functions to avoid some code duplication
      No functional changes.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      49192f26
    • S
      kconfig: refactor code in symbol.c · c252147d
      Sam Ravnborg 提交于
      Move logic to determine default for a choice to
      a separate function.
      No functional changes.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      c252147d
    • S
      kconfig: add alldefconfig · 0748cb3e
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      0748cb3e
    • R
      kconfig: print more info when we see a recursive dependency · d595cea6
      Roman Zippel 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      d595cea6
    • S
      kconfig: save location of config symbols · 59e89e3d
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      59e89e3d
    • S
      kconfig: change nonint_oldconfig to listnewconfig · 861b4ea4
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      Cc: Aristeu Rozanski <aris@redhat.com>
      Acked-by: NAristeu Rozanski <aris@redhat.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      861b4ea4