• John Garry's avatar
    perf tools: Stop depending on .git files for building PERF-VERSION-FILE · d4ff9265
    John Garry authored
    This essentially reverts commit c72e3f04 ("tools/perf/build:
    Speed up git-version test on re-make") and commit 4e666cdb
    ("perf tools: Fix dependency for version file creation")
    
    In commit c72e3f04 ("tools/perf/build: Speed up git-version test
    on re-make"), a makefile dependency on .git/HEAD was added. The
    background is that running PERF-VERSION-FILE is relatively slow, and
    commands like "git describe" are particularly slow.
    
    In commit 4e666cdb ("perf tools: Fix dependency for version file
    creation"), an additional dependency on .git/ORIG_HEAD was added, as
    .git/HEAD may not change for "git reset --hard HEAD^" command. However,
    depending on whether we're on a branch or not, a "git cherry-pick" may
    not lead to the version being updated.
    
    As discussed with the git community in [0], using git internal files for
    dependencies is not reliable. Commit 4e666cdb also breaks some build
    scenarios [1].
    
    As menti...
    d4ff9265
Makefile.perf 40.2 KB