Commit 5f044d28 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Stop immediately on error

This patch restores the previous behavior of stopping the build
immediately on error (unless the -k option is given to make)

Before this patch, we would do the echo command no matter if the
compile failed, thus returning success always.

(Jan Harkes)
parent 88019a46
...@@ -380,5 +380,5 @@ endif ...@@ -380,5 +380,5 @@ endif
if_changed = $(if $(strip $? \ if_changed = $(if $(strip $? \
$(filter-out $($(1)),$(cmd_$(@F)))\ $(filter-out $($(1)),$(cmd_$(@F)))\
$(filter-out $(cmd_$(@F)),$($(1)))),\ $(filter-out $(cmd_$(@F)),$($(1)))),\
@echo $($(1)); $($(1)); echo 'cmd_$(@F) := $($(1))' > $(@D)/.$(@F).cmd) @echo $($(1)) && $($(1)) && echo 'cmd_$@ := $($(1))' > $(@D)/.$(@F).cmd)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment