Skip to content

Commit 48b2f10

Browse files
committed
[BUILD] Report proper error when linker script cannot be found.
1 parent be988d7 commit 48b2f10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/Makefile.rules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ list: $(BINARY).list
134134
images: $(BINARY).images
135135
flash: $(BINARY).flash
136136

137+
$(LDSCRIPT):
138+
ifeq (,$(wildcard $(LDSCRIPT)))
139+
$(error Unable to find specified linker script: $(LDSCRIPT))
140+
endif
141+
137142
%.images: %.bin %.hex %.srec %.list %.map
138143
@#printf "*** $* images generated ***\n"
139144

0 commit comments

Comments
 (0)