1. 19 6月, 2013 3 次提交
  2. 16 6月, 2013 2 次提交
    • S
      kconfig/lxdialog: Add definitions for mininimum (re)size values · 851f6657
      Sedat Dilek 提交于
      Commit c8dc68ad ("kconfig/lxdialog: support resize") added support
      for resizing, but forgot to collect all hardcoded values at one single
      place.
      
      Also add a definition for the check for a minimum screen/window size
      of 80x19.
      
      [ ChangeLog v3:
        * Rename MENU_{HEIGTH,WIDTH}_MIN -> MENUBOX_{HEIGTH,WIDTH}_MIN
        ChangeLog v2:
        * Rename WIN_{HEIGTH,WIDTH}_MIN -> WINDOW_{HEIGTH,WIDTH}_MIN
        * Mention the check for a minimum screen/window size in the changelog
        * Add a comment above the block of new definitions ]
      Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com>
      Acked-by: NWang YanQing <udknight@gmail.com>
      Tested-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Reviewed-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      851f6657
    • A
      kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on · fbe98bb9
      Arve Hjønnevåg 提交于
      The defconfig and Kconfig combination below, which is based on 3.10-rc4
      Kconfigs, resulted in several options getting set to "m" instead of "y".
      
      defconfig.choice:
      ---8<---
      CONFIG_MODULES=y
      CONFIG_USB_ZERO=y
      ---8<---
      
      Kconfig.choice:
      ---8<---
      menuconfig MODULES
      	bool "Enable loadable module support"
      
      config CONFIGFS_FS
      	tristate "Userspace-driven configuration filesystem"
      
      config OCFS2_FS
              tristate "OCFS2 file system support"
              depends on CONFIGFS_FS
              select CRC32
      
      config USB_LIBCOMPOSITE
      	tristate
      	select CONFIGFS_FS
      
      choice
      	tristate "USB Gadget Drivers"
      	default USB_ETH
      
      config USB_ZERO
      	tristate "Gadget Zero (DEVELOPMENT)"
      	select USB_LIBCOMPOSITE
      
      config USB_ETH
      	tristate "Ethernet Gadget (with CDC Ethernet support)"
      	select USB_LIBCOMPOSITE
      
      endchoice
      
      config CRC32
              tristate "CRC32/CRC32c functions"
              default y
      
      choice
              prompt "CRC32 implementation"
              depends on CRC32
              default CRC32_SLICEBY8
      
      config CRC32_SLICEBY8
              bool "Slice by 8 bytes"
      
      endchoice
      ---8<---
      
      $ scripts/kconfig/conf --defconfig=defconfig.choice Kconfig.choice
      
      would result in:
      
      .config:
      ---8<---
      CONFIG_MODULES=y
      CONFIG_CONFIGFS_FS=m
      CONFIG_USB_LIBCOMPOSITE=m
      CONFIG_USB_ZERO=m
      CONFIG_CRC32=y
      CONFIG_CRC32_SLICEBY8=y
      ---8<---
      
      when the expected result would be:
      
      .config:
      ---8<---
      CONFIG_MODULES=y
      CONFIG_CONFIGFS_FS=y
      CONFIG_USB_LIBCOMPOSITE=y
      CONFIG_USB_ZERO=y
      CONFIG_CRC32=y
      CONFIG_CRC32_SLICEBY8=y
      ---8<---
      Signed-off-by: NArve Hjønnevåg <arve@android.com>
      [yann.morin.1998@free.fr: add the resulting .config to commit log,
                                remove unneeded USB_GADGET from the defconfig]
      Tested-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Reviewed-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Signed-off-by: NYann E. MORIN <yann.morin.1998@free.fr>
      fbe98bb9
  3. 07 5月, 2013 1 次提交
  4. 01 5月, 2013 1 次提交
  5. 30 4月, 2013 3 次提交
    • S
      localmodconfig: Process source kconfig files as they are found · ced9cb1a
      Steven Rostedt 提交于
      A bug was reported that caused localmodconfig to not keep all the
      dependencies of ATH9K. This was caused by the kconfig file:
      
      In drivers/net/wireless/ath/Kconfig:
      
      ---
      if ATH_CARDS
      
      config ATH_DEBUG
              bool "Atheros wireless debugging"
              ---help---
                Say Y, if you want to debug atheros wireless drivers.
                Right now only ath9k makes use of this.
      
      source "drivers/net/wireless/ath/ath5k/Kconfig"
      source "drivers/net/wireless/ath/ath9k/Kconfig"
      source "drivers/net/wireless/ath/carl9170/Kconfig"
      source "drivers/net/wireless/ath/ath6kl/Kconfig"
      source "drivers/net/wireless/ath/ar5523/Kconfig"
      source "drivers/net/wireless/ath/wil6210/Kconfig"
      
      endif
      ---
      
      The current way kconfig works, it processes new source files after the
      first file is completed. It creates an array of new source config files
      and when the one file is finished, it continues with the next file.
      
      Unfortunately, this means that it loses the fact that the source file is
      within an "if" statement, and this means that each of these source file's
      configs will not have the proper dependencies set.
      
      As ATH9K requires ATH_CARDS set, the localmodconfig did not see that
      dependency, and did not enable ATH_CARDS. When the oldconfig was run, it
      forced ATH9K to be disabled.
      
      Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1304291022320.9234@oneiric
      
      Cc: stable@vger.kernel.org # 3.8+
      Reported-by: NRobert P. J. Day <rpjday@crashcourse.ca>
      Tested-by: NRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      ced9cb1a
    • S
      localmodconfig: Add debug prints for dependencies of module configs · bc20d12e
      Steven Rostedt 提交于
      When a config for a module is added to the list to save in the final
      config file, add a print to show what dependencies are used. This is
      useful to debug when a config is disabled by the make oldconfig after
      localmodconfig is finished.
      
      This print only appears if the environment variable LOCALMODCONFIG_DEBUG
      is defined.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      bc20d12e
    • Y
      kconfig: fix lists definition for C++ · 21ca352b
      Yann E. MORIN 提交于
      The C++ compiler is more strict in that it refuses to assign
      a void* to a struct list_head*.
      
      Fix that by explicitly casting the poisonning constants.
      
      (Tested with all 5 frontends, now.)
      Reported-by: NRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: Benjamin Poirier <bpoirier@suse.de>
      21ca352b
  6. 27 4月, 2013 1 次提交
  7. 25 4月, 2013 5 次提交
    • Y
      kconfig: implement KCONFIG_PROBABILITY for randconfig · e43956e6
      Yann E. MORIN 提交于
      Currently the odds to set each symbol is (rounded):
          booleans:   y: 50%          n: 50%
          tristates:  y: 33%  m: 33%  n: 33%
      
      Introduce a KCONFIG_PROBABILITY environment variable to tweak the
      probabilities (in percentage), as such:
          KCONFIG_PROBABILITY     y:n split           y:m:n split
          -----------------------------------------------------------------
      [1] unset or empty          50  : 50            33  : 33  : 34
      [2] N                        N  : 100-N         N/2 : N/2 : 100-N
          N:M                     N+M : 100-(N+M)      N  :  M  : 100-(N+M)
          N:M:L                    N  : 100-N          M  :  L  : 100-(M+L)
      
      [1] The current behaviour is kept as default, for backward compatibility
      [2] The solution initially implemented by Peter for Buildroot, see:
          http://git.buildroot.org/buildroot/commit/?id=3435c1afb5Signed-off-by: NPeter Korsgaard <jacmet@uclibc.org>
      [yann.morin.1998@free.fr: add to Documentation/]
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      e43956e6
    • Y
      kconfig: allow specifying the seed for randconfig · 0d8024c6
      Yann E. MORIN 提交于
      For reproducibility, it can be useful to be able to specify the
      seed to use to seed the RNG.
      
      Add a new KCONFIG_SEED environment variable which can be set to
      the seed to use:
          $ make KCONFIG_SEED=42 randconfig
          $ sha1sum .config
          70a128c8dcc61303069e1be352cce64114dfcbca  .config
          $ make KCONFIG_SEED=42 randconfig
          $ sha1sum .config
          70a128c8dcc61303069e1be352cce64114dfcbca  .config
      
      It's very usefull for eg. debugging the kconfig parser.
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      0d8024c6
    • Y
      kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG · 422c809f
      Yann E. MORIN 提交于
      Currently, randconfig does randomise choice entries, unless KCONFIG_ALLCONFIG
      is specified.
      
      For example, given those two files (Thomas' test-case):
      
          ---8<--- Config.test.in
          config OPTIONA
              bool "Option A"
      
          choice
              prompt "This is a choice"
      
          config CHOICE_OPTIONA
              bool "Choice Option A"
      
          config CHOICE_OPTIONB
              bool "Choice Option B"
      
          endchoice
      
          config OPTIONB
              bool "Option B"
          ---8<--- Config.test.in
      
          ---8<--- config.defaults
          CONFIG_OPTIONA=y
          ---8<--- config.defaults
      
      And running:
          ./scripts/kconfig/conf --randconfig Config.test.in
      
      does properly randomise the two choice symbols (and the two booleans).
      
      However, running:
          KCONFIG_ALLCONFIG=config.defaults \
          ./scripts/kconfig/conf --randconfig Config.test.in
      
      does *not* reandomise the two choice entries, and only CHOICE_OPTIONA
      will ever be selected. (OPTIONA will always be set (expected), and
      OPTIONB will be be properly randomised (expected).)
      
      This patch defers setting that a choice has a value until a symbol for
      that choice is indeed set, so that choices are properly randomised when
      KCONFIG_ALLCONFIG is set, but not if a symbol for that choice is set.
      
      Also, as a side-efect, this patch fixes the following case:
      
          ---8<---
          choice
          config OPTION_A
              bool "Option A"
          config OPTION_B
              bool "Option B"
          config OPTION_C
              bool "Option C"
          endchoice
          ---8<---
      
      which could previously generate such .config files:
      
          ---8<---                            ---8<---
          CONFIG_OPTION_A=y                   CONFIG_OPTION_A=y
          CONFIG_OPTION_B=y                   # CONFIG_OPTION_B is not set
          # CONFIG_OPTION_C is not set        CONFIG_OPTION_C=y
          ---8<---                            ---8<---
      
      Ie., the first entry in a choice is always set, plus zero or one of
      the other options may be set.
      
      This patch ensures that only one option may be set for a choice.
      Reported-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Arnaud Lacombe <lacombar@gmail.com>
      
      ---
      Changes v2 -> v3
        - ensure only one symbol is set in a choice
      
      Changes v1 -> v2:
        - further postpone setting that a choice has a value until
          one is indeed set
        - do not print symbols that are part of an invisible choice
      422c809f
    • Y
      kconfig: do not override symbols already set · cfa98f2e
      Yann E. MORIN 提交于
      For randconfig, if a list of required symbols is specified with
      KCONFIG_ALLCONFIG, such symbols do not "have a value" as per
      sym_has_value(), but have the "valid" flag set.
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      cfa98f2e
    • Y
      kconfig: fix randconfig tristate detection · 61fa0e17
      Yann E. MORIN 提交于
      Because the modules' symbole (CONFIG_MODULES) may not yet be set when
      we check a symbol's tristate capabilty, we'll always find that tristate
      symbols are booleans, even if we randomly decided that to enable modules:
      sym_get_type(sym) always return boolean for tristates when modules_sym
      has not been previously set to 'y' *and* its value calculated *and* its
      visibility calculated, both of which only occur after we randomly assign
      values to symbols.
      
      Fix that by looking at the raw type of symbols. Tristate set to 'm' will
      be promoted to 'y' when their values will be later calculated.
      Signed-off-by: N"Yann E. MORIN" <yann.morin.1998@free.fr>
      61fa0e17
  8. 17 4月, 2013 3 次提交
  9. 10 4月, 2013 1 次提交
  10. 07 3月, 2013 2 次提交
  11. 19 2月, 2013 1 次提交
  12. 09 2月, 2013 2 次提交
  13. 30 1月, 2013 1 次提交
  14. 24 1月, 2013 1 次提交
  15. 16 1月, 2013 2 次提交
  16. 28 12月, 2012 1 次提交
  17. 26 12月, 2012 1 次提交
  18. 21 12月, 2012 1 次提交
  19. 10 12月, 2012 1 次提交
  20. 20 11月, 2012 6 次提交
  21. 25 10月, 2012 1 次提交