Skip to content

Commit 0c8b615

Browse files
committed
escape '#' in zephyr .js source filenames
1 parent 02181a7 commit 0c8b615

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/mcmanifest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ otadata, data, ota, , ${OTADATA_SIZE},`;
714714
}
715715

716716
for (var result of tool.jsFiles) {
717-
var source = result.source;
717+
var source = result.source.replaceAll("#", tool.escapedHash);
718718
// var sourceParts = tool.splitPath(source);
719719
var target = result.target;
720720
var targetParts = tool.splitPath(target);
@@ -732,7 +732,7 @@ otadata, data, ota, , ${OTADATA_SIZE},`;
732732
if (tool.platform == "zephyr") {
733733
this.line("add_custom_command(");
734734
this.line("\tOUTPUT " + output);
735-
this.line("\tCOMMAND xsc " + source + " " + options + " -e -o " + outputPath + " -r " + targetParts.name.replaceAll("#", "\\#"));
735+
this.line("\tCOMMAND xsc " + source + " " + options + " -e -o " + outputPath + " -r " + targetParts.name.replaceAll("#", tool.escapedHash));
736736
this.line("\tDEPENDS " + source);
737737
this.line("\tVERBATIM)");
738738
this.line("");

0 commit comments

Comments
 (0)