diff options
author | 2023-04-20 02:04:24 +0900 | |
---|---|---|
committer | 2023-04-23 21:23:10 +0900 | |
commit | 9cedc5e89a59da72bfecdb76bfaa5a28a273029d (patch) | |
tree | 05c7d363b74a85615651ca80c324edef1549c080 /scripts/generate_rust_analyzer.py | |
parent | kbuild: deb-pkg: Fix a spell typo in mkdebian script (diff) | |
download | linux-rng-9cedc5e89a59da72bfecdb76bfaa5a28a273029d.tar.xz linux-rng-9cedc5e89a59da72bfecdb76bfaa5a28a273029d.zip |
kbuild: use proper prefix for tarballs to fix rpm-pkg build error
Since commit f8d94c4e403c ("kbuild: do not create intermediate *.tar
for source tarballs"), 'make rpm-pkg' fails because the prefix of the
source tarball is 'linux.tar/' instead of 'linux/'. $(basename $@)
strips only '.gz' from the filename linux.tar.gz.
You need to strip two suffixes from compressed tarballs and one suffix
from uncompressed tarballs (for example 'perf-6.3.0.tar' generated by
'make perf-tar-src-pkg').
One tricky fix might be --prefix=$(firstword $(subst .tar, ,$@))/
but I think it is better to hard-code the prefix.
Fixes: f8d94c4e403c ("kbuild: do not create intermediate *.tar for source tarballs")
Reported-by: Jiwei Sun <sunjw10@lenovo.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions