1. 18 4月, 2013 1 次提交
    • M
      rpm-pkg: Do not package the whole source directory · 6615d6c3
      Michal Marek 提交于
      The source tree can contain lots of uninteresting data like tag or
      cscope files, packaging which slows down make rpm needlessly. It can
      also break the build, if the tree contains an unrelated file named
      *.spec. The downside of this change is that new subdirectories have to
      be added to the KBUILD_ALLDIRS variable in the top-level Makefile. The
      upside is that the behavior is more predictable.
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      6615d6c3
  2. 08 4月, 2013 2 次提交
  3. 22 2月, 2013 1 次提交
    • D
      kbuild: clear KBUILD_SRC when calling 'make' in RPM spec · e0367a61
      David R. Bild 提交于
      'make rpm-pkg' and 'make binrpm-pkg' fail when the kernel source is
      read-only.  Specifically, when the RPM spec generated by
      scripts/package/mkspec is run, KBUILD_SRC happens to be set to the
      source location and thus the invocation of 'make headers_install'
      fails when an internal call to 'filechk' tries to write a file into
      the source tree.
      
      The fix is to clear KBUILD_SRC for the 'make headers_install'
      invocation in the spec file, as is already done for the 'make
      modules_install' invocation.
      Signed-off-by: NDavid R. Bild <drbild@umich.edu>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      e0367a61
  4. 27 9月, 2012 2 次提交
  5. 28 6月, 2012 2 次提交
  6. 27 5月, 2012 1 次提交
  7. 25 2月, 2012 3 次提交
  8. 19 2月, 2012 1 次提交
  9. 30 10月, 2011 1 次提交
  10. 24 6月, 2011 1 次提交
  11. 25 5月, 2011 1 次提交
  12. 24 5月, 2011 1 次提交
  13. 05 5月, 2011 1 次提交
  14. 31 3月, 2011 1 次提交
  15. 09 3月, 2011 1 次提交
  16. 04 2月, 2011 1 次提交
  17. 15 1月, 2011 1 次提交
  18. 08 1月, 2011 1 次提交
  19. 07 1月, 2011 1 次提交
  20. 29 12月, 2010 1 次提交
  21. 20 12月, 2010 1 次提交
  22. 25 11月, 2010 1 次提交
  23. 11 11月, 2010 1 次提交
  24. 14 10月, 2010 1 次提交
  25. 06 9月, 2010 1 次提交
  26. 21 7月, 2010 1 次提交
  27. 18 6月, 2010 1 次提交
    • M
      kbuild: Clean up and speed up the localversion logic · 09155120
      Michal Marek 提交于
      Now that we run scripts/setlocalversion during every build, it makes
      sense to move all the localversion logic there. This cleans up the
      toplevel Makefile and also makes sure that the script is called only
      once in 'make prepare' (previously, it would be called every time due to
      a variable expansion in an ifneq statement). No user-visible change is
      intended, unless one runs the setlocalversion script directly.
      Reported-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Greg Thelen <gthelen@google.com>
      Cc: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      09155120
  28. 05 6月, 2010 1 次提交
    • A
      perf tools: Make target to generate self contained source tarball · 8e5564e6
      Arnaldo Carvalho de Melo 提交于
      Useful for when people want to try some version of the perf tools and don't
      wants to download the kernel tarball.
      
      Here is a session using this new target:
      
        [root@emilia linux-2.6-tip]# make help | grep -i perf
          perf-tar-src-pkg    - Build perf-2.6.35-rc1.tar source tarball
          perf-targz-src-pkg  - Build perf-2.6.35-rc1.tar.gz source tarball
          perf-tarbz2-src-pkg - Build perf-2.6.35-rc1.tar.bz2 source tarball
        [root@emilia linux-2.6-tip]# make perf-tarbz2-src-pkg
          TAR
        [root@emilia linux-2.6-tip]# ls -la perf-2.6.35-rc1.tar.bz2
        -rw-r--r-- 1 root root 295731 May 31 11:18 perf-2.6.35-rc1.tar.bz2
        [root@emilia linux-2.6-tip]# tar xf perf-2.6.35-rc1.tar.bz2
        [root@emilia linux-2.6-tip]# cd perf-2.6.35-rc1
        [root@emilia perf-2.6.35-rc1]# ls
        arch  HEAD  include  lib  tools
        [root@emilia perf-2.6.35-rc1]# cd tools/perf
        [root@emilia perf]# make -j9 2>&1 | tail
            CC arch/x86/util/dwarf-regs.o
            CC util/probe-finder.o
            CC util/newt.o
            CC util/scripting-engines/trace-event-perl.o
            CC scripts/perl/Perf-Trace-Util/Context.o
            CC perf.o
            CC builtin-help.o
            AR libperf.a
            LINK perf
        rm .perf.dev.null
        [root@emilia perf]# ./perf record -a sleep 1
        [ perf record: Woken up 1 times to write data ]
        [ perf record: Captured and wrote 0.262 MB perf.data (~11457 samples) ]
        [root@emilia perf]# ./perf report | head -12
        # Events: 6K cycles
        #
        # Overhead          Command       Shared Object  Symbol
        # ........  ...............  ..................  ......
        #
             4.73%             perf  [kernel.kallsyms]   [k] format_decode
             4.49%             perf  libc-2.12.so        [.] _IO_file_underflow_internal
             4.38%             init  [kernel.kallsyms]   [k] mwait_idle
             3.29%             perf  [kernel.kallsyms]   [k] vsnprintf
             2.38%             init  [kernel.kallsyms]   [k] sched_clock_local
             2.35%             init  [kernel.kallsyms]   [k] apic_timer_interrupt
             1.86%     sirq-timer/5  [kernel.kallsyms]   [k] find_busiest_group
        [root@emilia perf]#
      Acked-by: NMichal Marek <mmarek@suse.cz>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Frédéric Weisbecker <fweisbec@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Tom Zanussi <tzanussi@gmail.com>
      LKML-Reference: <20100528185357.GA28009@ghostprotocols.net>
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      8e5564e6
  29. 03 6月, 2010 3 次提交
  30. 29 3月, 2010 1 次提交
  31. 07 3月, 2010 1 次提交
  32. 02 2月, 2010 1 次提交
  33. 12 12月, 2009 1 次提交
    • 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