]> Git Repo - linux.git/blobdiff - scripts/package/Makefile
package: Makefile: fix perf target bug
[linux.git] / scripts / package / Makefile
index 006960ebbce927adbb1761ecc1275858db00a62c..bc6aa003860e14150ff491e67b65fb580270289f 100644 (file)
@@ -118,10 +118,12 @@ 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 archive --prefix=$(perf-tar)/         \
+       HEAD^{tree} $$(cd $(srctree);                               \
+                      echo $$(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 rev-parse HEAD > $(perf-tar)/HEAD;    \
 tar rf $(perf-tar).tar $(perf-tar)/HEAD;                            \
 rm -r $(perf-tar);                                                  \
 $(if $(findstring tar-src,$@),,                                     \
This page took 0.025603 seconds and 4 git commands to generate.