kbuild: make perf-tar*-src-pkg work without relying on git
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Feb 2023 01:20:30 +0000 (10:20 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 26 Feb 2023 06:23:30 +0000 (15:23 +0900)
commite0ca16749ac3392a5a2ea4e67327fa71ef4aa680
tree51f639e528e9724921d318b587e997de170c004d
parente7853995594baa1a1258b20ff077b60a958becdc
kbuild: make perf-tar*-src-pkg work without relying on git

Currently, perf-tar*-src-pkg only uses 'git archive', but it is better
to make it work without relying on git.

The file, HEAD, which saves the commit hash, will be included in the
tarball only when the source tree is managed by git. The git tree is
more precisely checked; it has been copied from scripts/setlocalversion.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.package