Skip to content

Commit b92882a

Browse files
committed
Merge branch 'bugfix/kconfig_cmake_escape' into 'master'
confgen.py: Escape special characters for cmake Closes IDFGH-2677 See merge request espressif/esp-idf!7580
2 parents 23c62a4 + 935b34e commit b92882a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/kconfig_new/confgen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ def write_node(node):
417417
val = sym.str_value
418418
if sym.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and val == "n":
419419
val = "" # write unset values as empty variables
420+
elif sym.orig_type == kconfiglib.STRING:
421+
val = kconfiglib.escape(val)
420422
write("set({}{} \"{}\")\n".format(
421423
prefix, sym.name, val))
422424

0 commit comments

Comments
 (0)