]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: dummy-tools: avoid tmpdir leak in dummy gcc
authorOndrej Mosnacek <omosnace@redhat.com>
Mon, 11 Jul 2022 12:09:23 +0000 (14:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:38:01 +0000 (11:38 +0200)
commit7ef0645ebecfff2d3c2a69a7dd6713a216b73049
treeba8d122167af68ef07812334fdaa3ee2e8123108
parentaee18421bda6bf12a7cba6a3d7751c0e1cfd0094
kbuild: dummy-tools: avoid tmpdir leak in dummy gcc

commit aac289653fa5adf9e9985e4912c1d24a3e8cbab2 upstream.

When passed -print-file-name=plugin, the dummy gcc script creates a
temporary directory that is never cleaned up. To avoid cluttering
$TMPDIR, instead use a static directory included in the source tree.

Fixes: 76426e238834 ("kbuild: add dummy toolchains to enable all cc-option etc. in Kconfig")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/dummy-tools/gcc