1. 12 12月, 2009 3 次提交
  2. 04 12月, 2009 1 次提交
  3. 20 11月, 2009 1 次提交
  4. 16 11月, 2009 1 次提交
  5. 16 10月, 2009 1 次提交
    • J
      kconfig: Make zconf.y work with current bison · 1456edbb
      Josh Triplett 提交于
      zconf.y includes zconf.hash.c from the initial code section.
      zconf.hash.c references the token constants from zconf.y.  However,
      current bison defines the token constants after the initial code
      section, making zconf.hash.c fail to compile.  Move the include of
      zconf.hash.c later in zconf.y, so bison puts it after the token
      constants.
      Signed-off-by: NJosh Triplett <josh@joshtriplett.org>
      1456edbb
  6. 20 9月, 2009 8 次提交
  7. 22 8月, 2009 1 次提交
    • S
      kconfig: add missing dependency of conf to localyesconfig · 48586218
      Steven Rostedt 提交于
      There's a dependency missing.
      
      $ make localyesconfig
        HOSTCC  scripts/basic/fixdep
        HOSTCC  scripts/basic/docproc
        HOSTCC  scripts/basic/hash
      using config: '/boot/config-2.6.27.25-78.2.56.fc9.x86_64'
      /bin/sh: line 8: scripts/kconfig/conf: No such file or directory
      make[1]: *** [localyesconfig] Error 127
      make: *** [localyesconfig] Error 2
      
      Thus the script failed to run. But the sed command that converts the '=m'
      to '=y' still ran. This gives us a distro config with all modules
      converted to built in!
      
      The missing dependency was for conf for localyesconfig. This
      dependency was already set for localmodconfig.
      Reported-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      48586218
  8. 19 8月, 2009 11 次提交
    • S
      kconfig: test if a .config already exists · a7c02602
      Steven Rostedt 提交于
      If one were to run localmodconfig or localyesconfig without having
      a .config already in the file, then the end of the process would give
      a warning when it tries to move the old .config to .config.old.
      
      This patch adds a test to check if .config exists and avoid the moves
      if it does not.
      
      [ Impact: remove warning after make localmodconfig ]
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      a7c02602
    • S
      kconfig: make local .config default for streamline_config · a9024838
      Steven Rostedt 提交于
      As Andi Kleen pointed out, most people would expect that the local .config
      file to be based for a streamline config. This patch changes the order
      of searching for a config file to consider the .config in the local
      directory first.
      Reported-by: NAndi Kleen <andi@firstfloor.org>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      a9024838
    • S
      kconfig: test for /boot/config-uname after /proc/config.gz in localconfig · 810b2be6
      Steven Rostedt 提交于
      Many distros put their config in /boot/config-`uname -r`, add a check
      for that right after /proc/config.gz
      Reported-by: NAlan Jenkins <sourcejedi.lkml@googlemail.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      810b2be6
    • S
      kconfig: unset IKCONFIG_PROC and clean up nesting · d08ca277
      Steven Rostedt 提交于
      Due to cut and paste error IKCONFIG was both set and cleared.
      It was suppose to be IKCONFIG_PROC to be cleared.
      
      Also cleaned up if nesting.
      Reported-by: NAlan Jenkins <sourcejedi.lkml@googlemail.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d08ca277
    • S
      kconfig: search for a config to base the local(mod|yes)config on · cdfc4795
      Steven Rostedt 提交于
      Instead of using the .config in the local directory. This patch
      changes streamline_config.pl to search various locations for a config.
      
      Here's the list and order of search:
      
        /proc/config.gz
        /boot/vmlinuz-`uname -r`
        vmlinux  # local to the directory
        /lib/modules/`uname -r`/kernel/kernel/configs.ko
        kernel/configs.ko
        kernel/configs.o
        .config
      
      Once it finds a file that contains a config (it checks if the binary
      objects have configs first) it then uses it to create the .config
      with minimum modules needed.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      cdfc4795
    • S
      kconfig: enable CONFIG_IKCONFIG from streamline_config.pl · 744ffcbe
      Steven Rostedt 提交于
      Ingo Molnar suggested that the streamline_config.pl should enable
      CONFIG_IKCONFIG to keep the current config in the kernel.
      Then we can use scripts/extract-ikconfig to find the current
      modules.
      
      This patch changes streamline_config.pl to check if CONFIG_IKCONFIG
      is not set, and if it is not, it enables it to be a module.
      
      [ Impact: make current config options easier to find ]
      Reported-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      744ffcbe
    • S
      kconfig: do not warn about modules built in · ea2c1894
      Steven Rostedt 提交于
      The streamline_config.pl finds all the configs that are needed to
      compile the currently loaded modules. After it creates the .config
      file, it tests to make sure all the configs that are needed were
      set.
      
      It only looks at the configs that are modules, it does not look
      at the builtin configs. This causes unnecessary warnings about modules
      not being covered.
      Reported-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      ea2c1894
    • S
      kconfig: streamline_config.pl do not stop with no depends · 74398d32
      Steven Rostedt 提交于
      If a config does not have a prompt, it must be selected.
      streamline_config.pl keeps track of all configs that select other configs.
      If a config that does not have a prompt needs to be set to enable a
      current module, it will include all configs that select it.
      Note, streamline_config.pl does not enable modules that are not already
      enabled. It only keeps enabled those that were enabled and might be
      needed to compile the current modules.
      
      The code to find the selects of a config is after the code that
      adds the depends. But if a config needed selects but had no dependencies,
      it would not be set. Because the code would stop before getting to
      the select.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      74398d32
    • S
      kconfig: add make localyesconfig option · 281c9dad
      Steven Rostedt 提交于
      This adds the option localyesconfig to make. This is similar to
      localmodconfig, but after it removes unnecessary modules it runs
      
        sed -i s/=m/=y/
      
      on the .config file. It then runs "make silentoldconfig" to fix any
      wholes that were created by the conversion of modules to core.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      281c9dad
    • S
      kconfig: make localmodconfig to run streamline_config.pl · 03fa25da
      Steven Rostedt 提交于
      Running the streamline_config.pl script manually can still be confusing
      for some users. This patch adds the localmodconfig option. This will
      automatically run streamline_config.pl on the current .config and
      then run "make silentoldconfig" to fix any wholes that might have been
      created.
      
       $ make localmodconfig
      
      This will remove any module configurations in .config that are not needed
      to compile the modules that are loaded.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      03fa25da
    • S
      kconfig: add streamline_config.pl to scripts · dcc60243
      Steven Rostedt 提交于
      streamline_config.pl is a very powerful tool. For those that install
      a kernel to a new box using the config file from the distribution know that
      it can take forever to compile the kernel.
      
      Making a custom config file that will still boot your box, but bring
      down the compile time of the kernel can be quit painful, and to ask
      someone that reported a bug to do this can be a large burdon since that
      person may not even know how to build a kernel.
      
      This script will perform "lsmod" to find all the modules loaded on the
      current running system. It will read all the Makefiles to map which
      CONFIG enables a module. It will read the Kconfig files to find the
      dependencies and selects that may be needed to support a CONFIG.
      Finally, it reads the .config file and removes any module "=m" that is
      not needed to enable the currently loaded modules. The output goes to
      standard out.
      
      Here's a way to run the script. From the Linux directory that holds
      a distribution .config.
      
       $ scripts/kconfig/streamline_config.pl arch/x86/Kconfig > config-sl
       $ mv .config config-save
       $ mv config-sl .config
       $ make oldconfig
      
      Now you have a .config that will still build all your modules, but also
      take much less time to build the kernel.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      dcc60243
  9. 18 7月, 2009 2 次提交
  10. 10 6月, 2009 10 次提交
  11. 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