@@ -44,7 +44,7 @@ def bin_converter(target, source, env):
44
44
"elf32-xtensa-le" , "--binary-architecture" ,
45
45
"xtensa" , "--rename-section" ,
46
46
".data=.rodata.embedded" ,
47
- source [0 ].name , target [0 ].get_path ()
47
+ source [0 ].name , '"%s"' % target [0 ].get_path ()
48
48
])
49
49
50
50
ulp_env .Execute (command )
@@ -64,7 +64,7 @@ def bin_converter(target, source, env):
64
64
"esp32ulp-elf-ld" ,
65
65
"-o" , "$TARGET" ,
66
66
"-A" , "elf32-esp32ulp" ,
67
- "-L" , ULP_BUILD_DIR ,
67
+ "-L" , '"%s"' % ULP_BUILD_DIR ,
68
68
"-T" , "ulp_main.common.ld" ,
69
69
"$SOURCES"
70
70
]), "Linking $TARGET" ),
@@ -89,7 +89,7 @@ def bin_converter(target, source, env):
89
89
"-DWITH_POSIX" , "-DHAVE_CONFIG_H" ,
90
90
"-MT" , "${TARGET}.o" ,
91
91
"-DMBEDTLS_CONFIG_FILE=\" mbedtls/esp_config.h\" " ,
92
- " -I %s" % join (
92
+ ' -I " %s"' % join (
93
93
FRAMEWORK_DIR , "components" , "soc" , "esp32" , "include" ),
94
94
"-E" , "-P" , "-xc" ,
95
95
"-o" , "$TARGET" , "-D__ASSEMBLER__" , "$SOURCE"
@@ -143,7 +143,7 @@ def generate_export_files(symbol_file):
143
143
[join (ULP_BUILD_DIR , "ulp_main.ld" ),
144
144
join (ULP_BUILD_DIR , "ulp_main.h" )], symbol_file ,
145
145
ulp_env .VerboseAction (
146
- '"$PYTHONEXE" "%s" -s $SOURCE -o %s ' % (gen_script , build_suffix ),
146
+ '"$PYTHONEXE" "%s" -s $SOURCE -o "%s" ' % (gen_script , build_suffix ),
147
147
"Exporting ULP linker and header files" ))
148
148
149
149
0 commit comments