Commit 3bdccc88 authored by matt mooney's avatar matt mooney Committed by Michal Marek

package: Makefile: fix perf target bug

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

The shell command in `git archive' had to be modified to allow proper
file name expansion of the files listed in MANIFEST.
Signed-off-by: default avatarmatt mooney <mfm@muteddisk.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 55922c9d
...@@ -118,10 +118,12 @@ perf-tar=perf-$(KERNELVERSION) ...@@ -118,10 +118,12 @@ perf-tar=perf-$(KERNELVERSION)
quiet_cmd_perf_tar = TAR quiet_cmd_perf_tar = TAR
cmd_perf_tar = \ cmd_perf_tar = \
git archive --prefix=$(perf-tar)/ HEAD^{tree} \ git --git-dir=$(srctree)/.git archive --prefix=$(perf-tar)/ \
$$(cat $(srctree)/tools/perf/MANIFEST) -o $(perf-tar).tar; \ HEAD^{tree} $$(cd $(srctree); \
echo $$(cat $(srctree)/tools/perf/MANIFEST)) \
-o $(perf-tar).tar; \
mkdir -p $(perf-tar); \ mkdir -p $(perf-tar); \
git rev-parse HEAD > $(perf-tar)/HEAD; \ git --git-dir=$(srctree)/.git rev-parse HEAD > $(perf-tar)/HEAD; \
tar rf $(perf-tar).tar $(perf-tar)/HEAD; \ tar rf $(perf-tar).tar $(perf-tar)/HEAD; \
rm -r $(perf-tar); \ rm -r $(perf-tar); \
$(if $(findstring tar-src,$@),, \ $(if $(findstring tar-src,$@),, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment