public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Resend PATCH] package: Makefile: fix perf target bug
@ 2011-05-12 18:25 mfmooney
  2011-05-12 20:30 ` Michal Marek
  0 siblings, 1 reply; 15+ messages in thread
From: mfmooney @ 2011-05-12 18:25 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild, linux-kernel, kernel-janitors

From: matt mooney <mfm@muteddisk.com>

Specify --git-dir and --work-tree when building perf targets to
allow out-of-tree builds using O=<build-dir>.

The cat command had to be changed to allow proper file name expansion
of the files listed in MANIFEST.

Signed-off-by: matt mooney <mfm@muteddisk.com>
---
Hi Michal,

Sorry if you have already received this, but there seems to have been
a problem when it was first sent.

Thanks,
matt

 scripts/package/Makefile |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index 1b7eaea..a32dc2d 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -118,10 +118,14 @@ perf-tar=perf-$(KERNELVERSION)
 
 quiet_cmd_perf_tar = TAR
       cmd_perf_tar = \
-git archive --prefix=$(perf-tar)/ HEAD^{tree}                       \
-	$$(cat $(srctree)/tools/perf/MANIFEST) -o $(perf-tar).tar;  \
+git --git-dir=$(srctree)/.git --work-tree=$(srctree)                \
+	archive --prefix=$(perf-tar)/ HEAD^{tree}                   \
+	$(addprefix $(srctree)/,                                    \
+	  $(shell cat $(srctree)/tools/perf/MANIFEST))              \
+	-o $(perf-tar).tar;                                         \
 mkdir -p $(perf-tar);                                               \
-git rev-parse HEAD > $(perf-tar)/HEAD;                              \
+git --git-dir=$(srctree)/.git --work-tree=$(srctree)                \
+	rev-parse HEAD > $(perf-tar)/HEAD;                          \
 tar rf $(perf-tar).tar $(perf-tar)/HEAD;                            \
 rm -r $(perf-tar);                                                  \
 $(if $(findstring tar-src,$@),,                                     \
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-06-24 13:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 18:25 [Resend PATCH] package: Makefile: fix perf target bug mfmooney
2011-05-12 20:30 ` Michal Marek
2011-05-12 21:07   ` matt mooney
2011-05-12 21:20     ` Michal Marek
2011-05-12 21:38       ` matt mooney
2011-05-13  0:09         ` [PATCH v2] " mfmooney
2011-05-13  8:26         ` [Resend PATCH] " Michal Marek
2011-05-13 18:52           ` matt mooney
2011-05-13 19:56             ` Michal Marek
2011-05-13 23:26               ` matt mooney
2011-05-13 23:41               ` [PATCH v3] " mfmooney
2011-05-15 15:40                 ` Arnaldo Carvalho de Melo
2011-05-16  8:19                   ` Michal Marek
2011-06-12 18:19                     ` matt mooney
2011-06-24 13:22                       ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox