diff --git a/tools/export/makefile/__init__.py b/tools/export/makefile/__init__.py index fe0b267e979..135a6592061 100644 --- a/tools/export/makefile/__init__.py +++ b/tools/export/makefile/__init__.py @@ -40,6 +40,9 @@ def generate(self): Note: subclasses should not need to override this method """ + if not self.resources.linker_script: + raise NotSupportedException("No linker script found.") + self.resources.win_to_unix() to_be_compiled = [splitext(src)[0] + ".o" for src in