1. 11 9月, 2012 1 次提交
    • J
      kbuild: add symbol prefix arg to kallsyms · 6895f97e
      James Hogan 提交于
      Commit 1f2bfbd0 ("kbuild: link of
      vmlinux moved to a script") introduced in v3.5-rc1 broke kallsyms on
      architectures which have symbol prefixes.
      
      The --symbol-prefix argument used to be added to the KALLSYMS command
      line from the architecture Makefile, however this isn't picked up by the
      new scripts/link-vmlinux.sh. This resulted in symbols like
      kallsyms_addresses being added which weren't correctly overriding the
      weak symbols such as _kallsyms_addresses. These could then trigger
      BUG_ONs in kallsyms code.
      
      This is fixed by removing the KALLSYMS addition from the architecture
      Makefile, and using CONFIG_SYMBOL_PREFIX in the link-vmlinux.sh script
      to determine whether to add the --symbol-prefix argument.
      Signed-off-by: NJames Hogan <james.hogan@imgtec.com>
      Signed-off-by: NBob Liu <lliubbo@gmail.com>
      6895f97e
  2. 30 8月, 2012 1 次提交
    • M
      firmware: fix directory creation rule matching with make 3.82 · 6c7080a6
      Mark Asselstine 提交于
      Attempting to run 'firmware_install' with CONFIG_USB_SERIAL_TI=y when
      using make 3.82 results in an error
      
      make[2]: *** No rule to make target `/lib/firmware/./', needed by
      `/lib/firmware/ti_3410.fw'.  Stop.
      
      It turns out make 3.82 is picky when matching directory names with
      trailing slashes as a result, where make 3.81 would handle this
      correctly make 3.82 does not find the rule needed to create the
      directory.
      
      The './' seen in the error is added by $(dir) for firmware which
      resides in the base firmware src directory, such as
      ti_3410.fw.ihex. By performing $(dir) after we prepend the
      $(INSTALL_FW_PATH) we can ensure we don't end up with a './' in the
      middle of the path and the directory will be properly created.
      
      This change works with make 3.81 and should work with previous
      versions as well.
      Signed-off-by: NMark Asselstine <mark.asselstine@windriver.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      6c7080a6
  3. 22 8月, 2012 1 次提交
  4. 18 8月, 2012 1 次提交
  5. 17 8月, 2012 1 次提交
    • B
      scripts/decodecode: Fixup trapping instruction marker · 2a95e37c
      Borislav Petkov 提交于
      When dumping "Code: " sections from an oops, the trapping instruction
      %rip points to can be a string copy
      
        2b:*  f3 a5                   rep movsl %ds:(%rsi),%es:(%rdi)
      
      and the line contain a bunch of ":".  Current "cut" selects only the and
      the second field output looks funnily overlaid this:
      
        2b:*  f3 a5                   rep movsl %ds     <-- trapping instruction:(%rsi),%es:(%rdi
      
      Fix this by selecting the remaining fields too.
      
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: linux-kbuild@vger.kernel.org
      Signed-off-by: NBorislav Petkov <borislav.petkov@amd.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2a95e37c
  6. 10 8月, 2012 1 次提交
  7. 31 7月, 2012 5 次提交
  8. 26 7月, 2012 6 次提交
  9. 20 7月, 2012 1 次提交
  10. 14 7月, 2012 3 次提交
  11. 13 7月, 2012 4 次提交
  12. 08 7月, 2012 1 次提交
  13. 05 7月, 2012 3 次提交
  14. 28 6月, 2012 6 次提交
  15. 21 6月, 2012 1 次提交
  16. 20 6月, 2012 4 次提交
    • S
      localmodconfig: Add debug environment variable LOCALMODCONFIG_DEBUG · 4503379c
      Steven Rostedt 提交于
      If the environment variable LOCALMODCONFIG_DEBUG is set, then debug output
      will appear in the make localmodconfig. This will simplify debugging what
      people get with their output, as I can just tell people to do:
      
        LOCALMODCONFIG_DEBUG=1 make localmodconfig 2>out.txt
      
      and have them send me the out.txt. I'll be able to see why things are not
      working as they think it should be.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4503379c
    • S
      localmodconfig: Check if configs are already set for selects · d4bb58b5
      Steven Rostedt 提交于
      There are some cases that a required module does not have a prompt
      and needs to have another module enabled that selects it to be set.
      As localmodconfig is conservative and tries to make the minimum config
      without breaking the user's kernel, or keeping the user from using
      devices that were loaded when the lsmod was done, all modules that
      select this module will also be enabled.
      
      If you needed module A, but module A did not have a prompt but needed
      module B to be selected, localmodconfig would make sure B was still
      enabled. If not only B selected A, but C, D, E, F, and G also
      selected A, then all of those would also be included, as well as the
      modules they depend on. This ballooned the number of configs that
      localmodconfig would keep.
      
      The fix here is to process the depends first, and then record those
      configs that did not have a prompt and needed to be selected.
      After the depends are done, check what configs are needed to select
      the configs in the list, and if a config that selects it is already
      set, then we don't need to do anything else.
      
      If no config that selects the config is set, then just pick one and
      try again.
      
      This change brought down the number of selected modules from 290
      to 67! Both before and after were run against a config that had 3095
      modules enabled.
      
      Tested-by: John David Yost <johnyost@ptd.net> # AlleyTrotter
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d4bb58b5
    • S
      localmodconfig: Read in orig config file to avoid extra processing · 4f4c51c9
      Steven Rostedt 提交于
      Read in the entire config file. If there's a config that we depend on
      that happens to be in the core set (not a module) then we do not need
      to process it as a module.
      
      Currently, we follow the entire depend and selects even if they
      are enabled as core and not modules. By checking to make sure that we
      only look at modules we can drop the count a little.
      
      From one of my tests, localmodconfig went from taking 3095 set modules
      down to 356 before this patch, and down to 290 modules after the change.
      
      Tested-by: John David Yost <johnyost@ptd.net> # AlleyTrotter
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4f4c51c9
    • S
      localmodconfig: Comments and cleanup for streamline_config.pl · 0b58a99e
      Steven Rostedt 提交于
      Added some more comments and cleaned up part of the the code to use
      a named variable instead of one of the special $1 perl variables.
      
      No functional changes.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      0b58a99e