mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
confgen.py: Escape special characters for cmake
Closes https://github.com/espressif/esp-idf/issues/4751
This commit is contained in:
parent
6648127362
commit
9c1d75cc5b
@ -158,6 +158,8 @@ def write_cmake(config, filename):
|
||||
if sym._write_to_conf:
|
||||
if sym.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and val == "n":
|
||||
val = "" # write unset values as empty variables
|
||||
elif sym.orig_type == kconfiglib.STRING:
|
||||
val = kconfiglib.escape(val)
|
||||
write("set({}{} \"{}\")\n".format(
|
||||
prefix, sym.name, val))
|
||||
config.walk_menu(write_node)
|
||||
|
Loading…
x
Reference in New Issue
Block a user