1. 29 1月, 2008 9 次提交
    • E
      kconfig: update-po-config info · 1020026f
      EGRY Gabor 提交于
      This patch adds tracking messages.
      Signed-off-by: NEgry Gabor <gaboregry1@t-online.hu>
      Reviewed-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      1020026f
    • L
      kconfig: use C89 random functions in conf.c · 07f76688
      Ladislav Michl 提交于
      rand and srand functions conform also to C89 in addition to POSIX.1-2001,
      which makes them a bit more portable (work also on MinGW host). Linux man
      page also says:
      "The versions of rand() and srand() in the Linux C Library use the same
      random number generator as random() and srandom()".
      
      * Use C89 conformant functions rand() and srand()
      Signed-off-by: NLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      07f76688
    • L
      kconfig: fix whitespace and sort includes in conf.c · 75ff4309
      Ladislav Michl 提交于
      Sort includes and remove leading whitespace.
      Signed-off-by: NLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org
      75ff4309
    • S
      kconfig: delete unused FILE_ and SYMBOL_ flags · de83cf14
      Sam Ravnborg 提交于
      The *_PRINTED flags were never used - so delete them.
      Do we need them later then we can re-add them.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      de83cf14
    • S
      kconfig: rename E_OR & friends to avoid name clash · d6ee3576
      Sam Ravnborg 提交于
      We had macros named the same as a set of enumeration values.
      It is legal code but very confusing to read - so rename
      the macros from E_* to EXPR_*
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      d6ee3576
    • J
      kconfig: allow overriding symbols · d84876f9
      Jan Engelhardt 提交于
      Allow config variables in .config to override earlier ones in the same
      file. In other words,
      
      	# CONFIG_SECURITY is not defined
      	CONFIG_SECURITY=y
      
      will activate it. This makes it a bit easier to do
      
      cat original-config myconfig myconfig2 ... >.config;
      and run *config as expected.
      Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      d84876f9
    • L
      kconfig: make kconfig MinGW friendly · 09af091f
      Ladislav Michl 提交于
      Kconfig is powerfull tool. So powerfull that more and more software
      projects are using it for configuration. So instead of fixing some of
      them one by one, lets fix it in kernel and wait for sync.
      
      This work was originaly done for PTXdist - GPL licensed build system for
      userlands and cross-compilers, but it will not hurt kernel kconfig
      either. PTXdist menuconfig now works on Windows linked with PDCurses and
      compiled using MinGW - there is no termios and signals.
      
      * Do not include <sys/wait.h> and <signal.h> (comes from times when
        lxdialog was separate process)
      * Do not mess with termios directly and let curses tell screen size.
        Comment to commit c8dc68ad says
        check for screen size could be removed later, but because it didn't
        happen for more than year I left it here as well.
      * Save cursor position added by Sam
      Signed-off-by: NLadislav Michl <ladis@linux-mips.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      09af091f
    • A
      kconfig: use getopt() in conf.c for handling command line arguments · 2f4b489b
      Andres Salomon 提交于
      Switch from doing our own parsing of command line arguments to
      using getopt(3) to do it.  Aside from simplifying things, this allows us to
      specify multiple arguments; the old code could only accept two arguments
      (input_mode and kconfig name).
      
      Note some subtle changes:
       - The argument '-?' is no longer supported.
       - '-h' is not treated as an error, so output goes to stdout, and we
         exit with '0'.
       - There is no compatibility checking amongst arguments; the last option
         will simply override earlier options.  For example, 'conf -n -y foo'
         is perfectly valid now (input_mode will be set_yes).  Previously, that
         would have been an error ("can't find file -y").
      Signed-off-by: NAndres Salomon <dilinger@debian.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      2f4b489b
    • S
      kconfig: if ncurses-devel is missing then say so · 6e588f6d
      Sam Ravnborg 提交于
      With this patch when ncurses-devel (or whatever it is named)
      is missing trying to run menuconfig will result in this:
      
      $ make menuconfig
        HOSTCC  scripts/kconfig/conf.o
        HOSTCC  scripts/kconfig/kxgettext.o
       *** Unable to find the ncurses libraries or the
       *** required header files.
       *** 'make menuconfig' requires the ncurses libraries.
       ***
       *** Install ncurses (ncurses-devel) and try again.
       ***
      make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
      make: *** [menuconfig] Error 2
      
      Much better than before where we just listed some build errors.
      The other *config targets will work indepenednt on ncurses
      being present or not.
      
      Includes improvements suggested by: Frans Pop <elendil@planet.nl>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Frans Pop <elendil@planet.nl>
      6e588f6d
  2. 24 12月, 2007 1 次提交
  3. 18 11月, 2007 2 次提交
    • S
      x86: simplify "make ARCH=x86" and fix kconfig all.config · 6840999b
      Sam Ravnborg 提交于
      Simplify "make ARCH=x86" and fix kconfig so we again can set 64BIT in
      all.config.
      
      For a fix the diffstat is nice:
       6 files changed, 3 insertions(+), 36 deletions(-)
      
      The patch reverts these commits:
       - 0f855aa6 ("kconfig: add helper to set
         config symbol from environment variable")
       - 2a113281 ("kconfig: use $K64BIT to
         set 64BIT with all*config targets")
      
      Roman Zippel pointed out that kconfig supported string compares so
      the additional complexity introduced by the above two patches were
      not needed.
      
      With this patch we have following behaviour:
      
        # make {allno,allyes,allmod,rand}config [ARCH=...]
        option \ host arch      | 32bit         | 64bit
        =====================================================
        ./.                     | 32bit         | 64bit
        ARCH=x86                | 32bit         | 32bit
        ARCH=i386               | 32bit         | 32bit
        ARCH=x86_64             | 64bit         | 64bit
      
      The general rule are that ARCH= and native architecture takes
      precedence over the configuration.
      
      So make ARCH=i386 [whatever] will always build a 32-bit kernel
      no matter what the configuration says.  The configuration will
      be updated to 32-bit if it was configured to 64-bit and the
      other way around.
      
      This behaviour is consistent with previous behaviour so no
      suprises here.
      
      make ARCH=x86 will per default result in a 32-bit kernel but as
      the only ARCH= value x86 allow the user to select between 32-bit
      and 64-bit using menuconfig.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Andreas Herrmann <aherrman@arcor.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6840999b
    • S
      x86: simplify "make ARCH=x86" and fix kconfig all.config · 80ef88d6
      Sam Ravnborg 提交于
      Simplify "make ARCH=x86" and fix kconfig so we again
      can set 64BIT in all.config.
      
      For a fix the diffstat is nice:
       6 files changed, 3 insertions(+), 36 deletions(-)
      
      The patch reverts these commits:
      0f855aa6
      -> kconfig: add helper to set config symbol from environment variable
      
      2a113281
      -> kconfig: use $K64BIT to set 64BIT with all*config targets
      
      Roman Zippel pointed out that kconfig supported string
      compares so the additional complexity introduced by the
      above two patches were not needed.
      
      With this patch we have following behaviour:
      
      # make {allno,allyes,allmod,rand}config [ARCH=...]
      option \ host arch      | 32bit         | 64bit
      =====================================================
      ./.                     | 32bit         | 64bit
      ARCH=x86                | 32bit         | 32bit
      ARCH=i386               | 32bit         | 32bit
      ARCH=x86_64             | 64bit         | 64bit
      
      The general rule are that ARCH= and native architecture
      takes precedence over the configuration.
      So make ARCH=i386 [whatever] will always build a 32-bit
      kernel no matter what the configuration says.
      The configuration will be updated to 32-bit if it was
      configured to 64-bit and the other way around.
      
      This behaviour is consistent with previous behaviour so
      no suprises here.
      
      make ARCH=x86 will per default result in a 32-bit kernel
      but as the only ARCH= value x86 allow the user to select
      between 32-bit and 64-bit using menuconfig. 
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Andreas Herrmann <aherrman@arcor.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      80ef88d6
  4. 13 11月, 2007 4 次提交
    • S
      x86: enable "make ARCH=x86" · daa93fab
      Sam Ravnborg 提交于
      After unification of the Kconfig files and
      introducing K64BIT support in kconfig
      it required only trivial changes to enable
      "make ARCH=x86".
      
      With this patch you can build for x86_64 in several ways:
      1) make ARCH=x86_64
      2) make ARCH=x86 K64BIT=y
      3) make ARCH=x86 menuconfig
         => select 64-bit
      
      Likewise for i386 with the addition that
      i386 is default is you say ARCH=x86.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      daa93fab
    • S
      kconfig: use $K64BIT to set 64BIT with all*config targets · 2a113281
      Sam Ravnborg 提交于
      The variable K64BIT can now be used to select the
      value of CONFIG_64BIT.
      
      This is for example useful for powerpc to generate
      allmodconfig for both bit sizes - like this:
      make ARCH=powerpc K64BIT=y
      make ARCH=powerpc K64BIT=n
      
      To use this the Kconfig file must use "64BIT" as the
      config value to select between 32 and 64 bit.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      2a113281
    • S
      kconfig: add helper to set config symbol from environment variable · 0f855aa6
      Sam Ravnborg 提交于
      Add conf_set_env_sym() that can set an already defined symbol
      based on the value of an environment variable.
      
      Unknown symbols are silently ignored.
      A warning is printed if the value of the environment variable
      is unexpected.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      0f855aa6
    • S
      kconfig: factor out code in confdata.c · 9c900a9c
      Sam Ravnborg 提交于
      This patch introduce no functional changes.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      9c900a9c
  5. 26 10月, 2007 3 次提交
  6. 21 10月, 2007 1 次提交
  7. 20 10月, 2007 1 次提交
    • L
      Revert "kconfig: tristate choices with mixed tristate and boolean values" · e8b8c977
      Linus Torvalds 提交于
      This reverts commit a5bf3d89.
      
      David Brownell notes that this causes a regression visible in the
      drivers/usb/gadget Kconfig file:
      
        "That Kconfig hasn't changed (other than adding new drivers), and it's
         worked that way for several years now ...  so the issue seems to be
         changes in menuconfig/kconfig/etc semantics.
      
         The issue is that when USB_GADGET=m, it's no longer possible to
         configure peripheral controller drivers as modules ...  the
         controller drivers can now only be configured for static linkage.
      
         It should be making a choice of one of the controller drivers which
         could work on the target system, and allow that driver to be linked
         either as a module (ok iff USB_GADGET=m) or statically."
      
      Reverting this commit resolves the problem, and also fixes a second
      problem that David noticed: various dependent options couldn't be enabled.
      Tested-and-reported-by: NDavid Brownell <david-b@pacbell.net>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Jan Beulich <jbeulich@novell.com>,
      Cc: Andrew Morton <akpm@linux-foundation.org>,
      Cc: Sam Ravnborg <sam@ravnborg.org>,
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e8b8c977
  8. 18 10月, 2007 1 次提交
  9. 13 10月, 2007 7 次提交
  10. 01 9月, 2007 1 次提交
  11. 26 7月, 2007 2 次提交
  12. 17 7月, 2007 4 次提交
  13. 19 5月, 2007 1 次提交
  14. 06 5月, 2007 2 次提交
  15. 03 5月, 2007 1 次提交