]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: shorten the temporary directory name for cc-option
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 19 Jul 2022 02:35:39 +0000 (11:35 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Jul 2022 12:18:00 +0000 (21:18 +0900)
commit30c9d6b1eda37f2eb332c6e53be889154f32082c
tree7a5c30708b17e9664575048e6d3d2c4b5f46d3dc
parent8cad9046f2036fd8ca662a30608843cd8272710f
kconfig: shorten the temporary directory name for cc-option

The cc-option macro creates the temporary directory, .tmp_$$$$.
Shell expands '$$' into its process ID. '$$$$' results in repeated PID.

In Makefile, '$$$$' is correct (see TMPOUT in scripts/Malefile.compiler)
because '$$' is an escape sequence of '$'. Make expands '$$$$' into '$$',
then shell expands it into the process ID.

This does not apply to Kconfig because Kconfig requires variable
references to be enclosed by curly braces, like ${variable}.
The '$' that is not followed by '{' loses its effect.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/Kconfig.include