From 5c27da70467d148759d31847d685689580c00b00 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Wed, 27 Jun 2018 09:20:58 -0500 Subject: [PATCH] Correct scatter shebang rewriting in Make --- tools/export/makefile/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export/makefile/__init__.py b/tools/export/makefile/__init__.py index 3a595bb3ba..22dacdd573 100644 --- a/tools/export/makefile/__init__.py +++ b/tools/export/makefile/__init__.py @@ -240,7 +240,7 @@ class Arm(Makefile): if self.resources.linker_script: sct_file = self.resources.get_file_refs(FileType.LD_SCRIPT)[-1] new_script = self.toolchain.correct_scatter_shebang( - sct_file.path, dirname(sct_file.name)) + sct_file.path, join("..", dirname(sct_file.name))) if new_script is not sct_file: self.resources.add_files_to_type( FileType.LD_SCRIPT, [new_script])