From 65fae781a127fa8625909a86e5cfae79fb191cf8 Mon Sep 17 00:00:00 2001 From: Brian Daniels Date: Fri, 29 Apr 2016 17:55:23 -0500 Subject: [PATCH] Toolchain should create artifact directory for link step --- tools/toolchains/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index 4683b691a4..71cad7ec10 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -685,7 +685,12 @@ class mbedToolchain: if self.target.OUTPUT_NAMING == "8.3": name = name[0:8] ext = ext[0:3] - + + # Create destination directory + head, tail = split(name) + new_path = join(tmp_path, head) + mkdir(new_path) + filename = name+'.'+ext elf = join(tmp_path, name + '.elf') bin = join(tmp_path, filename)