From 63c650903c1cfc23315b4898f3bfea485387acda Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 20 Dec 2016 14:11:58 -0600 Subject: [PATCH] Improve error message when exporting for make without a linker script --- tools/export/makefile/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/export/makefile/__init__.py b/tools/export/makefile/__init__.py index fe0b267e97..135a659206 100644 --- a/tools/export/makefile/__init__.py +++ b/tools/export/makefile/__init__.py @@ -40,6 +40,9 @@ class Makefile(Exporter): 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