]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:21 +0000 (11:57 +0200)
commit2094655e4b5db2102dc6b4278e3da8de013cfeb4
treee02b7a7dd7548e50503297dc7442ad924790a7aa
parent46788b0e56d2b4db732030c0a35c298b5337223f
kbuild: dummy-tools: avoid tmpdir leak in dummy gcc

BugLink: https://bugs.launchpad.net/bugs/1990564
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
scripts/dummy-tools/dummy-plugin-dir/include/plugin-version.h [new file with mode: 0644]
scripts/dummy-tools/gcc