diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-06-07 06:44:25 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-06-07 06:49:24 -0400 |
commit | bafb67470b294810f62db40b348643062255702b (patch) | |
tree | 779afd62343fc0ae7edb0ddf604e7270157e19a9 | |
parent | f60f359383edf2a0ec3aa32cf8be98ad815bdf65 (diff) |
perf tools: Allow building perf source tarballs on non-configured tree
So that we don't require that the kernel be configured first, and as we
don't use KERNELRELEASE at all in the -src-pkg targets, we need o add a
new wildcard for targets ending in src-pkg:
On a make mrproper'ed kernel we get this without this patch:
[linux-2.6-tip]$ LANG= make perf-tarbz2-src-pkg
/bin/sh: include/config/kernel.release: No such file or directory
make: *** [include/config/kernel.release] Error 1
[acme@emilia linux-2.6-tip]$
Acked-by: Michal Marek <mmarek@suse.cz>
Cc: Eduardo Habkost <ehabkost@redhat.com>
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: Sam Ravnborg <sam@ravnborg.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <20100604173552.GA875@ghostprotocols.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1215,6 +1215,8 @@ distclean: mrproper | |||
1215 | # rpm target kept for backward compatibility | 1215 | # rpm target kept for backward compatibility |
1216 | package-dir := $(srctree)/scripts/package | 1216 | package-dir := $(srctree)/scripts/package |
1217 | 1217 | ||
1218 | %src-pkg: FORCE | ||
1219 | $(Q)$(MAKE) $(build)=$(package-dir) $@ | ||
1218 | %pkg: include/config/kernel.release FORCE | 1220 | %pkg: include/config/kernel.release FORCE |
1219 | $(Q)$(MAKE) $(build)=$(package-dir) $@ | 1221 | $(Q)$(MAKE) $(build)=$(package-dir) $@ |
1220 | rpm: include/config/kernel.release FORCE | 1222 | rpm: include/config/kernel.release FORCE |