perf: Fix dependency for version file creation
PATCH 1/1 perf: Fix dependency for version file creation
The version commit id generated by perf may not be correct by just changing the head commit, like this:
$git log
commit b5d9d4708a24ac1889a30e9aedf8af8d73102139
$perf -v
perf version 5.16.gb5d9d4708a24
$git reset --hard HEAD^
HEAD is now at 629f520b265f
$make
...
$./perf -v
perf version 5.16.gb5d9d4708a24
The dependency should also check ORIG_HEAD.
---
Note that the tag (v5.16) also is wrong - it should be v5.17-rcX. I assume that this is the last torvalds tag pulled into my acme git. When I fetched torvalds git then I started to see proper tags. I think that we just need Arnaldo to fetch and push tags when rebasing or we need to use something else apart from "git describe" in util/PERF-VERSION-GEN - opinion?
tools/perf/Makefile.perf +1 -1
@@ -691,7 +691,7 @@ $(OUTPUT)common-cmds.h: $(wildcard Documentation/perf-*.txt) $(SCRIPTS) : % : %.sh $(QUIET_GEN)$(INSTALL) '[email protected]' '$(OUTPUT)$@' -$(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD +$(OUTPUT)PERF-VERSION-FILE: ../../.git/HEAD ../../.git/ORIG_HEAD $(Q)$(SHELL_PATH) util/PERF-VERSION-GEN $(OUTPUT) $(Q)touch $(OUTPUT)PERF-VERSION-FILE
Signature · 1 line
2.26.2