1. 12 12月, 2009 13 次提交
    • M
      kbuild: generate modules.builtin · bc081dd6
      Michal Marek 提交于
      To make it easier for module-init-tools and scripts like mkinitrd to
      distinguish builtin and missing modules, install a modules.builtin file
      listing all builtin modules. This is done by generating an additional
      config file (tristate.conf) with tristate options set to uppercase 'Y'
      or 'M'. If we source that config file, the builtin modules appear in
      obj-Y.
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      bc081dd6
    • J
      genksyms: properly consider EXPORT_UNUSED_SYMBOL{,_GPL}() · 6299fee7
      Jan Beulich 提交于
      Despite being unused these should also get a CRC calculated.
      Primarily I view this as a consistency thing.  But I also think this is
      one of the reasons why __crc_* need to be weak (which I think should be
      avoided, and hence we should have the goal to eliminate this so that
      failure to calculate a proper CRC for a symbol causes the build to fail).
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Cc: Anibal Monsalve Salazar <anibal@debian.org>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      6299fee7
    • T
      unifdef: update to upstream revision 1.190 · d8379ab1
      Tony Finch 提交于
      Fix handling of input files (e.g. with no newline at EOF) that could
      make unifdef get into an unexpected state and call abort().
      
      The new -B option compresses blank lines around a deleted section
      so that blank lines around "paragraphs" of code don't get doubled.
      
      The evaluator can now handle macros with arguments, and unbracketed
      arguments to the "defined" operator.
      
      Add myself to MAINTAINERS for unifdef.
      Signed-off-by: NTony Finch <dot@dotat.at>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      d8379ab1
    • D
      kbuild: specify absolute paths for cscope · eb8f844c
      Daniel Vetter 提交于
      Cscope doesn't hadle relative paths when cscope.out is not in $PWD. Use
      absolute paths when generating cscope.files, which seems to be the
      recommended way to generate cscope.out, anyway (at least according to
      cscope.sf.net). The speed and size differences are minimal, the only
      drawback is that the database needs to be regenerated if the source
      directory is moved.
      
      [mmarek: fixed for O= builds, modified changelog]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      eb8f844c
    • M
      kbuild: create include/generated in silentoldconfig · 32197c7f
      Michal Marek 提交于
      The toplevel Makefile creates the directory if it runs silentoldconfig
      automatically, but if run manually, it fails:
      
        $ make mrproper
        $ make defconfig && make silentoldconfig
        *** Default configuration is based on 'x86_64_defconfig'
        #
        # configuration written to .config
        #
        scripts/kconfig/conf -s arch/x86/Kconfig
      
        *** Error during update of the kernel configuration.
        ...
      
      Move the mkdir command to the silentoldconfig target to make it work.
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      32197c7f
    • J
      scripts/package: deb-pkg: use fakeroot if available · db1d1865
      Jonathan Nieder 提交于
      Running "make deb-pkg" requires setting KBUILD_PKG_ROOTCMD or
      becoming root oneself or it errors out.  Unless already running
      as root or KBUILD_PKG_ROOTCMD is already set, use fakeroot as a
      good default.
      
      With this patch applied, you can run "make oldconfig deb-pkg" as
      an ordinary user to build a binary package for an updated kernel
      tree and it should just work.
      
      fakeroot is too zealous by default in treating files as owned by
      root.  Its wrapped stat() sets st_uid and st_gid to 0 for all
      files, which causes Git to go on a wild goose chase if
      CONFIG_LOCALVERSION_AUTO is set, checking if any file's content
      has changed along with its stat information.  Avoid this by
      telling fakeroot to use the actual owner and group for
      preexisting files, by passing it the -u option.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      db1d1865
    • J
      scripts/package: add KBUILD_PKG_ROOTCMD variable · 05ba4488
      Jonathan Nieder 提交于
      Let the deb-pkg target acquire (fake) root privileges before
      running commands that need them.  Without such privileges,
      deb-pkg errors out because chown fails.
      
      The new KBUILD_PKG_ROOTCMD variable, if defined, is used as a
      command to run other commands with possibly fake elevated
      privileges.  Since this is not needed for the tar-pkg and rpm-pkg
      targets, it is only used by deb-pkg.  If it is not defined, the
      behavior is as before, and the user will have to rerun make as
      root.
      
      In other words, as a shortcut, instead of running 'make oldconfig &&
      make && fakeroot -u make deb-pkg', one can use the single command
      'make oldconfig deb-pkg KBUILD_PKG_ROOTCMD="fakeroot -u"'.
      Suggested-by: NRyan Anderson <ryan@michonline.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      05ba4488
    • M
      scripts/package: tar-pkg: use tar --owner=root · 91d16185
      Michal Marek 提交于
      Use the --owner= and --group= options to make sure the entries in
      the built tar file are owned by root.  Without this change, a
      careless sysadmin using the tar-pkg target can easily end up
      installing a kernel that is writable by the unprivileged user
      account used to build the kernel.
      
      Test that these options are understood before using them so that
      non-GNU versions of tar can still be used if the operator is
      appropriately cautious.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      91d16185
    • S
      kbuild: move autoconf.h to include/generated · 264a2683
      Sam Ravnborg 提交于
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      264a2683
    • S
      kbuild: do not check for include/asm-$ARCH · c95fa08a
      Sam Ravnborg 提交于
      No architectures uses include/asm-$ARCH now.
      So drop check for location of include files
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      c95fa08a
    • M
      kbuild: fix bzImage build for x86 · 4a2ff67c
      Michael Tokarev 提交于
      As has been discussed previously (and Sam has been CC'ed), the fix
      is still incorrect.  It replaces "echo -ne" with "/bin/echo -ne",
      but neither of the two are guaranteed to support the necessary
      arguments and necessary (hexadecimal) escape sequences.  What should
      be used here is printf(1).  The trivial patch below (on top of these
      kbuild changes) fixes this issue.
      Signed-Off-By: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      4a2ff67c
    • N
      USB: handle bcd incrementation in usb modalias generation · 55f49f26
      Nathaniel McCallum 提交于
      This patch fixes a bug when incrementing/decrementing on a BCD formatted
      integer (i.e. 0x09++ should be 0x10 not 0x0A).  It just adds a function
      for incrementing/decrementing BCD integers by converting to decimal,
      doing the increment/decrement and then converting back to BCD.
      Signed-off-by: NNathaniel McCallum <nathaniel@natemccallum.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      55f49f26
    • N
      USB: add hex/bcd detection to usb modalias generation · afe2dab4
      Nathaniel McCallum 提交于
      The current code to generate usb modaliases from usb_device_id assumes
      that the device's bcdDevice descriptor will actually be in BCD format.
      While this should be a sane assumption, some devices don't follow spec
      and just use plain old hex.  This causes drivers for these devices to
      generate invalid modalias lines which will never actually match for the
      hardware.
      
      The following patch adds hex support for bcdDevice in file2alias.c by
      detecting when a driver uses a hex formatted bcdDevice_(lo|hi) and
      adjusts the output to hex format accordingly.
      
      Drivers for devices which have bcdDevice conforming to BCD will have no
      change in modalias output.  Drivers for devices which don't conform
      (i.e. ibmcam) should now generate valid modaliases.
      
      EXAMPLE OUTPUT (ibmcam; space added to highlight change)
          Old: usb:v0545p800D d030[10-9] dc*dsc*dp*ic*isc*ip*
          New: usb:v0545p800D d030a      dc*dsc*dp*ic*isc*ip*
      Signed-off-by: NNathaniel McCallum <nathaniel@natemccallum.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      afe2dab4
  2. 04 12月, 2009 1 次提交
  3. 02 12月, 2009 1 次提交
    • J
      tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook · 3a9089fd
      Jason Baron 提交于
      The introduction of the new 'DECLARE_EVENT_CLASS()' obviates the
      need for the 'TRACE_EVENT()' macro in some cases. Thus, docbook
      style comments that used to live with 'TRACE_EVENT()' are now
      moved to 'DEFINE_EVENT()'. Thus, we need to make the docbook
      system understand the new 'DEFINE_EVENT()' macro. In addition
      I've tried to futureproof the patch, by also adding support for
      'DEFINE_SINGLE_EVENT()', since there has been discussion about
      renaming: TRACE_EVENT() -> DEFINE_SINGLE_EVENT().
      
      Without this patch the tracepoint docbook fails to build.
      
      I've verified that this patch correctly builds the tracepoint
      docbook which currently covers signals, and irqs.
      
      Changes in v2:
       - properly indent perl 'if' statements
      Signed-off-by: NJason Baron <jbaron@redhat.com>
      Acked-by: NSteven Rostedt <rostedt@goodmis.org>
      Acked-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: William Cohen <wcohen@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Masami Hiramatsu <mhiramat@redhat.com>
      LKML-Reference: <200912011718.nB1HIn7t011371@int-mx04.intmail.prod.int.phx2.redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      3a9089fd
  4. 23 11月, 2009 1 次提交
  5. 20 11月, 2009 1 次提交
  6. 19 11月, 2009 1 次提交
  7. 18 11月, 2009 1 次提交
    • S
      tracing: Only print objcopy version warning once from recordmcount · 638adb05
      Steven Rostedt 提交于
      If the user has an older version of objcopy, that can not handle
      converting local symbols to global and vice versa, then some
      functions will not be part of the dynamic function tracer. The current
      code in recordmcount.pl will print a warning in this case. Unfortunately,
      there exists lots of files that may have this issue with older objcopys
      and this will cause a warning for every file compiled with this
      issue.
      
      This patch solves this overwhelming output by creating a
      .tmp_quiet_recordmcount file on the first instance the warning is
      encountered. The warning will not print if this file exists.
      
      The temp file is deleted at the beginning of the compile to ensure that
      the warning will happen once again on new compiles (because the issue
      is still present).
      Reported-by: NAndrew Morton <akpm@linux-foundation.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      638adb05
  8. 16 11月, 2009 4 次提交
  9. 12 11月, 2009 1 次提交
  10. 30 10月, 2009 8 次提交
  11. 29 10月, 2009 8 次提交