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)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Jul 2022 12:17:59 +0000 (21:17 +0900)
commitaac289653fa5adf9e9985e4912c1d24a3e8cbab2
tree52d8b55b3d0355983464ae574f3dc3ad6a8aa289
parent028062ec222d6ed0235bbf9612ba8a05efc9e633
kbuild: dummy-tools: avoid tmpdir leak in dummy gcc

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>
scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h [new file with mode: 0644]
scripts/dummy-tools/gcc