1. 09 2月, 2011 1 次提交
  2. 29 10月, 2010 5 次提交
    • S
      kconfig: Have streamline_config process menuconfigs too · 8ef17fa2
      Steven Rostedt 提交于
      Some menuconfigs in the Kconfig files have prompts and dependencies.
      Currently, streamline_config misses these, and this can cause
      streamline_config to keep modules enabled that should not be, and
      even worse, not enable those that should.
      
      This patch makes streamline_config process menuconfigs just like it
      would process a config.
      Reported-by: Nmember graysky <graysky@archlinux.us>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      8ef17fa2
    • S
      kconfig: Fix streamline_config to read multi line deps in Kconfig files · 20d19047
      Steven Rostedt 提交于
      I noticed that some Kconfig files have multi line dependencies
      that continue with a backslash. Those dependencies on the next
      line will be missed by streamline_config.
      
      For example:
      
      config CS89x0
      	tristate "CS89x0 support"
      	depends on NET_ETHERNET && (ISA || EISA || MACH_IXDP2351 \
      		|| ARCH_IXDP2X01 || MACH_MX31ADS)
      
      The "|| ARCH_IXDP2X01 || MACH_MX31ADS)" will not be processed.
      
      This patch adds code to handle this case.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      20d19047
    • H
      kconfig: Fix missing declaration of variable $dir in streamline_config.pl · cf5a189d
      hiromu 提交于
      On Fri, Aug 17, 2010 at 01:43PM +0800, Américo Wang wrote:
      > Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
      >
      > BTW, I think we should add "use strict;" too.
      
      Then I added "use strict;" to streamline_config.pl, I saw another
      warning.
      
      > Global symbol "$dir" requires explicit package name at
      scripts/kconfig/streamline_config.pl line 286.
      > Global symbol "$dir" requires explicit package name at
      scripts/kconfig/streamline_config.pl line 287.
      > Global symbol "$dir" requires explicit package name at
      scripts/kconfig/streamline_config.pl line 288.
      
      Then I added "my $dir;" to line 285.
      
      Cc: Américo Wang <xiyou.wangcong@gmail.com>
      Cc: Toralf Foerster <toralf.foerster@gmx.de>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NHiromu Yakura <hiromu1996@gmail.com>
      LKML-Reference: <1282042158.7160.9.camel@hiromu-Macbook>
      
      [ changed to just add my in front of $dir instead of new line ]
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      cf5a189d
    • H
      kconfig: Fix variable name typo %prompts in streamline_config.pl · ccece60a
      hiromu yagura 提交于
      When I added "use strict;" to streamline_config.pl, I saw the following
      warnings:
      
      > Global symbol "%prompt" requires explicit package name at
      scripts/kconfig/streamline_config.pl line 183.
      > Global symbol "%prompt" requires explicit package name at
      scripts/kconfig/streamline_config.pl line 368.
      
      The declaration of %prompt was incorrect, and should have been %prompts.
      
      Cc: Toralf Foerster <toralf.foerster@gmx.de>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
      Signed-off-by: NHiromu Yakura <hiromu1996@gmail.com>
      LKML-Reference: <1281845597.11566.5.camel@camp10-laptop>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      ccece60a
    • S
      kconfig: Make localmodconfig handle environment variables · 4908980b
      Steven Rostedt 提交于
      The commit 838a2e55
       kbuild: migrate all arch to the kconfig mainmenu upgrade
      
      Broke make localmodconfig. The reason was that it added a
      environment variable to the kconfig source, which the
      streamline_config.pl could not handle.
      
      This patch changes streamline_config.pl to handle kconfig sources
      using environment variables in their names.
      
      Cc: Arnaud Lacombe <lacombar@gmail.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Michal Marek <mmarek@suse.cz>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4908980b
  3. 28 5月, 2010 3 次提交
  4. 03 2月, 2010 2 次提交
    • S
      kconfig: Add LSMOD=file to override the lsmod for localmodconfig · 615f0833
      Steven Rostedt 提交于
      Doing the following:
      
      	make LSMOD=file localmodconfig
      
      Will make the streamline-config code use the given file instead of
      lsmod. If the file is an executable, it will execute it, otherwise
      it will read it as text.
      
      	make LSMOD=/my/local/path/lsmod localmodconfig
      
      The above will execute the lsmod in /my/local/path instead of the
      lsmods that may be located elsewhere.
      
      	make LSMOD=embedded_board_lsmod localmodconfig
      
      The above will read the "embedded_board_lsmod" as a text file. This
      is useful if you are doing a cross compile and need to run the
      config against modules that exist on an embedded device.
      
      Note, if the LSMOD= file does is not a path, it will add the
      path to the object directory. That is, the above example will look
      for "embedded_board_lsmod" in the directory that the binary will
      be built in (the O=dir directory).
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      
       On branch config/linus
      615f0833
    • S
      kconfig: Look in both /bin and /sbin for lsmod in streamline_config.pl · 88f66ea9
      Steven Rostedt 提交于
      Distributions now have lsmod in /bin instead of /sbin. But to handle
      both cases, we look for it in /sbin /bin /usr/bin and /usr/sbin.
      If lsmod is not found in any of those paths, it defaults to use
      just lsmod and hopes that it lies in the path of the user.
      Tested-by: NXavier Chantry <shiningxc@gmail.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      88f66ea9
  5. 07 1月, 2010 1 次提交
  6. 20 11月, 2009 1 次提交
  7. 19 8月, 2009 8 次提交
    • 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 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