Skip to content
  1. Feb 25, 2013
  2. Feb 22, 2013
    • Christophe Leroy's avatar
      kbuild: Unset language specific variables in setlocalversion script · f893bfb6
      Christophe Leroy authored
      
      
      This patch allows the use of setlocalversion script regardless of the language
      parameters. Otherwise, the `svn info 2>/dev/null | grep '^Last Changed Rev'`
      returns nothing because for instance, in French the text 'Last Changed Rev'
      is replaced by 'Révision de la dernière modification'
      
      Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      f893bfb6
    • Andi Kleen's avatar
      Kbuild: Disable var tracking with CONFIG_DEBUG_INFO_REDUCED · e82c4bb8
      Andi Kleen authored
      
      
      Newer gcc enables the var-tracking pass with -g to keep track which
      registers contain which variables. This is one of the slower passes in gcc.
      
      With reduced debug info (aimed at objdump -S, but not using a full debugger)
      we don't need this fine grained tracking. But it was still enabled
      because -g was enabled. Disable it explicitely for DEBUG_INFO_REDUCED.
      
      On my 8T workstation this gives me about a 12 second gain in building
      a reasonable kernel config (2min16 vs 2min28) with DEBUG_INFO_REDUCED.
      With full DEBUG_INFO it takes 2min46
      
      The actual improvement in user time taken by the compiler is much higher
      (all CPU combined user time 15min5s vs 16m30 before)
      but the usual amdahl bottleneck on the linker prevents more speedup.
      It still saves some more energy and keeps cycles for other things.
      
      Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      e82c4bb8
    • James Hogan's avatar
      depmod: pass -P $CONFIG_SYMBOL_PREFIX · 8937e897
      James Hogan authored
      
      
      On architectures which have symbol prefixes, depmod emits lots of
      warnings like this:
      
      WARNING: $module.ko needs unknown symbol $symbol
      
      This is because depmod isn't being passed the -P <symbol_prefix>
      arguments to specify the symbol prefix to ignore. This option is
      included since the 3.13 release of module-init-tools.
      
      Update scripts/depmod.sh to take extra arguments for the symbol prefix
      (required but may be empty), and update the main Makefile to always pass
      "$(CONFIG_SYMBOL_PREFIX)" to scripts/depmod.sh.
      
      If the provided symbol prefix is non-empty, scripts/depmod.sh checks if
      depmod --version reports module-init-tools with a version number < 3.13
      otherwise it appends -P $SYMBOL_PREFIX to the depmod command line.
      
      Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: linux-kbuild@vger.kernel.org
      Cc: Mike Frysinger <vapier@gentoo.org>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: uclinux-dist-devel@blackfin.uclinux.org
      Signe...
      8937e897
    • Jesper Nilsson's avatar
      kbuild: Fix destination-y for installed headers · 9b58b928
      Jesper Nilsson authored
      Commit 10b63956
      
       which plumbed in UAPI
      broke the destination-y functionality of scripts/Makefile.headersinst.
      
      The variable destination-y is used in a := assignment and so is expanded at
      declaration time, and the include of the Kbuild fragments that set
      destination-y to something is after this time, so it now always expands empty.
      
      There are no in-tree users of destination-y, but it allows any
      Kbuild-fragment to redirect where headers are installed.
      
      Just move the assignment of the variable that uses it below the include
      of the Kbuild fragment.
      
      Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: David Howells <dhowells@redhat.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      9b58b928
    • Michael Grzeschik's avatar
      scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG · 03b25b47
      Michael Grzeschik authored
      
      
      Its possible to superseed the config file with KCONFIG_CONFIG and have
      completely no .config in the tree. The current script is sourcing
      .config in every case, so the kernel will never build succesfully. This
      patch fixes that issue by sourcing KCONFIG_CONFIG instead.
      
      Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      03b25b47
  3. Feb 17, 2013
    • H. Peter Anvin's avatar
      kernel: Replace timeconst.pl with a bc script · 70730bca
      H. Peter Anvin authored
      
      
      bc is the standard tool for multi-precision arithmetic.  We switched
      to Perl because akpm reported a hard-to-reproduce build hang, which
      was very odd because affected and unaffected machines were all running
      the same version of GNU bc.
      
      Unfortunately switching to Perl required a really ugly "canning"
      mechanism to support Perl < 5.8 installations lacking the Math::BigInt
      module.
      
      It was recently pointed out to me that some very old versions of GNU
      make had problems with pipes in subshells, which was indeed the
      construct used in the Makefile rules in that version of the patch;
      Perl didn't need it so switching to Perl fixed the problem for
      unrelated reasons.  With the problem (hopefully) root-caused, we can
      switch back to bc and do the arbitrary-precision arithmetic naturally.
      
      Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      70730bca
  4. Jan 25, 2013
  5. Dec 22, 2012