1. 10 6月, 2009 10 次提交
  2. 11 4月, 2009 1 次提交
    • S
      kconfig: fix update-po-config to accect backslash in input · 612c280e
      Sam Ravnborg 提交于
      Massimo Maiurana reported (slightly edited):
      
      =====
      In latest 2.6.29 "make update-po-config" fails at msguniq invocation
      with an "invalid control sequence" error.
      The offending string is the following, and it's located in
      drivers/staging/panel/Kconfig:72:
      
          "'\e[L' which are specific to the LCD, and a few ANSI codes. The"
      
      looks to me like gettext expects strings in printf format, so in
      this case it thinks "\e" is a control sequence but doesn't recognise
      it as a valid one.
      
      A valid solution would be to tell kxgettext to automatically
      escape this kind of strings in the */config.pot he produces, so that
      msguniq would not complain.
      =====
      
      This patch implements the suggested escaping.
      Reported-by: NMassimo Maiurana <maiurana@gmail.com>
      Tested-by: NMassimo Maiurana <maiurana@gmail.com>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      612c280e
  3. 16 3月, 2009 2 次提交
    • I
      kconfig: improve seed in randconfig · b0fe5510
      Ingo Molnar 提交于
      'make randconfig' uses glibc's rand function, and the seed of
      that PRNG is set via:
      
      			srand(time(NULL));
      
      But 'time()' only increases once every second - freezing the
      randconfig result within a single second.
      
      My Nehalem testbox does randconfig much faster than 1 second
       and i have a few scripts that do 'randconfig until condition X'
      loops.
      
      Those scripts currently waste a lot of CPU time due to randconfig
      changing its seed only once per second currently.
      
      Change the seed to be micrseconds based. (I checked the statistical
      spread of the seed - the now.tv_sec*now.tv_usec multiplication
      there further improves it.)
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      [sam: fix for systems where usec is zero - noticed by Geert Uytterhoeven]
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      b0fe5510
    • S
      kconfig: fix randconfig for choice blocks · 184832c9
      Sam Ravnborg 提交于
      Ingo Molnar reported that 'make randconfig' was not covering
      choice blocks properly, resulting in certain config options
      being left out of randconfig testing altogether.
      
      With the following patch we:
      - properly randomize choice value for normal choice blocks
      - properly randomize for multi choice blocks
      - added several comments to explain what is going on
      
      The root cause of the bug was that SYMBOL_VALID was set on the
      symbol representing the choice block so clearing this did
      the trick initially.
      But testign revealed a few more issues that is now fixed.
      Reported-by: NIngo Molnar <mingo@elte.hu>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      184832c9
  4. 03 1月, 2009 4 次提交
  5. 04 12月, 2008 1 次提交
  6. 27 10月, 2008 1 次提交
    • A
      fix allmodconfig breakage · ce97e13e
      Al Viro 提交于
      If you use KCONFIG_ALLCONFIG (even with empty file) you get broken
      allmodconfig/allyesconfig; CONFIG_MODULES gets turned off, with obvious
      massive fallout.
      
      Breakage had been introduced when conf_set_all_new_symbols() got used
      for allmodconfig et.al.
      
      What happens is that sym_calc_value(modules_sym) done in
      conf_read_simple() sets SYMBOL_VALID on both modules_sym and MODULES.
      When we get to conf_set_all_new_symbols(), we set sym->def[S_DEF_USER]
      on everything, but it has no effect on sym->curr for the symbols that
      already have SYMBOL_VALID - these are stuck.
      
      Solution: use sym_clear_all_valid() in there.  Note that it makes
      reevaluation of modules_sym redundant - sym_clear_all_valid() will do
      that itself.
      
      [ Fixes http://bugzilla.kernel.org/show_bug.cgi?id=11512, says Alexey ]
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ce97e13e
  7. 23 10月, 2008 1 次提交
  8. 29 9月, 2008 2 次提交
  9. 05 8月, 2008 2 次提交
  10. 31 7月, 2008 1 次提交
  11. 26 7月, 2008 4 次提交
    • S
      kconfig: make defconfig is no longer chatty · 09748e17
      Sam Ravnborg 提交于
      make defconfig generated a lot of output
      then noone actually read.
      Use conf_set_all_new_symbols() to generate the default
      configuration and avoid the chatty output.
      
      A typical run now looks like this:
      $ make  defconfig
      *** Default configuration is based on 'i386_defconfig'
      arch/x86/configs/i386_defconfig:13:warning: trying to assign nonexistent symbol SEMAPHORE_SLEEPERS
      arch/x86/configs/i386_defconfig:176:warning: trying to assign nonexistent symbol PREEMPT_BKL
      ...
      arch/x86/configs/i386_defconfig:1386:warning: trying to assign nonexistent symbol INSTRUMENTATION
      $
      
      As an added benefit we now clearly see the warnings generated
      in the start of the process.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      09748e17
    • S
      kconfig: make oldconfig is now less chatty · cd9140e1
      Sam Ravnborg 提交于
      Previously when running "make oldconfig" we saw all the propmt lines
      from kconfig and noone actully read this.
      
      With this patch the user will only see output if there is new symbols.
      This will be seen as "make oldconfig" runs which does not generate any output.
      
      A typical run now looks like this:
      
      $ make oldconfig
      scripts/kconfig/conf -o arch/x86/Kconfig
      $
      
      If a new symbol is found then we restart the config process like this:
      $ make oldconfig
      scripts/kconfig/conf -o arch/x86/Kconfig
      *
      * Restart config...
      *
      *
      * General setup
      *
      Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
      Local version - append to kernel release (LOCALVERSION) []
      ...
      
      The bahaviour is similar to what we know when running the implicit
      oldconfig target "make silentoldconfig".
      "make silentoldconfig" are run as part of the kernel build process
      if the configuration has changed.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      cd9140e1
    • S
      kconfig: speed up all*config + randconfig · f443d2ec
      Sam Ravnborg 提交于
      Drop the chatty mode when we generate the all*config, randconfig
      configurations.
      Ths speeds up the process considerably and noone looked
      at the output anyway.
      This patch uses the conf_set_all_new_symbols() function
      just added to kconfig.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      f443d2ec
    • R
      kconfig: set all new symbols automatically · dc7862e5
      Roman Zippel 提交于
      Add conf_set_all_new_symbols() which set all symbols (which don't have a
      value yet) to a specifed value.
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      dc7862e5
  12. 20 5月, 2008 1 次提交
  13. 05 5月, 2008 1 次提交
  14. 02 5月, 2008 1 次提交
  15. 29 4月, 2008 3 次提交
  16. 26 4月, 2008 1 次提交
  17. 14 2月, 2008 1 次提交
    • R
      kconfig: fix select in combination with default · 587c9061
      Roman Zippel 提交于
      > The attached .config (with current -git) results in a compile
      > error since it contains:
      >
      > CONFIG_X86=y
      > # CONFIG_EMBEDDED is not set
      > CONFIG_SERIO=m
      > CONFIG_SERIO_I8042=y
      >
      > Looking at drivers/input/serio/Kconfig I simply don't get how this
      > can happen.
      
      You've hit the rather subtle rules of select vs default. What happened is
      that SERIO is selected to m, but SERIO_I8042 isn't selected so the default
      of y is used instead.
      We already had the problem in the past that select and default don't work
      well together, so this patch cleans this up and makes the rule hopefully
      more straightforward. Basically now the value is calculated like this:
      
      	(value && dependency) || select
      
      where the value is the user choice (if available and the symbol is
      visible) or default.
      
      In this case it means SERIO and SERIO_I8042 are both set to y due to their
      default and if SERIO didn't had the default, then the SERIO_I8042 value
      would be limited to m due to the dependency.
      
      I tested this patch with more 10000 random configs and above case is the
      only the difference that showed up, so I hope there is nothing that
      depended on the old more complex and subtle rules.
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Tested-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      587c9061
  18. 03 2月, 2008 2 次提交
    • S
      kconfig: ignore select of unknown symbol · 603d4988
      Sam Ravnborg 提交于
      We have had warnings for a long time about select of unknow symbol
      but the warnings does not really makes sense since we may
      select a symbol that is relevant and defined in one
      arch but not in another arch.
      And as long as we do not use a common set of Kconfig files
      for all archs lets just ignore this case.
      
      Previously we have used this to find bad uses of
      select but we need a more relaible method to do so.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      603d4988
    • S
      kconfig: mark config as changed when loading an alternate config · 36ef805b
      Sam Ravnborg 提交于
      Michal Zachar <mgzachar@mail.t-com.sk> reported that
      menuconfig did not save the new config when loading
      an alternate config unless he altered it manually.
      
      Mark config as changed upon load of alternate config fixed this.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Roman Zippel <zippel@linux-m68k.org>
      36ef805b
  19. 29 1月, 2008 1 次提交
    • J
      kconfig: tristate choices with mixed tristate and boolean values · f5eaa323
      Jan Beulich 提交于
      Change kconfig behavior so that mixing bool and tristate config
      settings in a choice is possible and has the desired effect of offering
      just the tristate options individually if the choice gets set to M, and
      a normal boolean selection if the choice gets set to Y.
      
      Also fix scripts/kconfig/conf's handling of children of choice values -
      there may be more than one immediate child, and all of them need to be
      processed.
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Cc: "Roman Zippel" <zippel@linux-m68k.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      f5eaa323