]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kheaders: make it possible to override TAR
authorMichał Górny <mgorny@gentoo.org>
Tue, 29 Jul 2025 13:24:55 +0000 (15:24 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 6 Aug 2025 01:23:36 +0000 (10:23 +0900)
commit73d210e9faf85c36d5c9d2e38cb42c2d9837ee51
tree9b31afba5e2aaa45faba3c105adaf534b395a275
parent936599ca514973d44a766b7376c6bbdc96b6a8cc
kheaders: make it possible to override TAR

Commit 86cdd2fdc4e3 ("kheaders: make headers archive reproducible")
introduced a number of options specific to GNU tar to the `tar`
invocation in `gen_kheaders.sh` script. This causes the script to fail
to work on systems where `tar` is not GNU tar. This can occur e.g.
on recent Gentoo Linux installations that support using bsdtar from
libarchive instead.

Add a `TAR` make variable to make it possible to override the tar
executable used, e.g. by specifying:

  make TAR=gtar

Link: https://bugs.gentoo.org/884061
Reported-by: Sam James <sam@gentoo.org>
Tested-by: Sam James <sam@gentoo.org>
Co-developed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile
kernel/gen_kheaders.sh