提交 65a45fec 编写于 作者: O Ondrej Mosnacek 提交者: Zheng Zengkai

kbuild: dummy-tools: avoid tmpdir leak in dummy gcc

stable inclusion
from stable-v5.10.139
commit 37c7f25fe2b79184f3a7a9f15fdcfbcf8f46913c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63FCF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=37c7f25fe2b79184f3a7a9f15fdcfbcf8f46913c

--------------------------------

commit aac28965 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: 76426e23 ("kbuild: add dummy toolchains to enable all cc-option etc. in Kconfig")
Signed-off-by: NOndrej Mosnacek <omosnace@redhat.com>
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/9996285f-5a50-e56a-eb1c-645598381a20@kernel.org
[ just the plugin-version.h portion as it failed to apply previously - gregkh ]
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 9981c33d
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册