mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/pkg-utils: refine KCONFIG_MUNGE_DOT_CONFIG
Given a .config with:
FOO="1234"
BAR="$(FOO)"
and then:
$(call KCONFIG_SET_OPT,FOO,azerty)
would yield a .config with just:
FOO="azerty"
because \<FOO\> would match the assignment to BAR.
Reported-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit ff506cdeb7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
2bcc94e808
commit
db57110be6
@@ -22,7 +22,7 @@ KCONFIG_DOT_CONFIG = $(strip \
|
|||||||
|
|
||||||
# KCONFIG_MUNGE_DOT_CONFIG (option, newline [, file])
|
# KCONFIG_MUNGE_DOT_CONFIG (option, newline [, file])
|
||||||
define KCONFIG_MUNGE_DOT_CONFIG
|
define KCONFIG_MUNGE_DOT_CONFIG
|
||||||
$(SED) "/\\<$(strip $(1))\\>/d" $(call KCONFIG_DOT_CONFIG,$(3)) && \
|
$(SED) '/^\(# \)\?$(strip $(1))\>/d' $(call KCONFIG_DOT_CONFIG,$(3)) && \
|
||||||
echo '$(strip $(2))' >> $(call KCONFIG_DOT_CONFIG,$(3))
|
echo '$(strip $(2))' >> $(call KCONFIG_DOT_CONFIG,$(3))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user