Commit 56ddf23b authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Make build stop on vmlinux link error

set -e is needed for each (continued) line.
parent ebd158e7
...@@ -322,13 +322,14 @@ endef ...@@ -322,13 +322,14 @@ endef
# set -e makes the rule exit immediately on error # set -e makes the rule exit immediately on error
define rule_vmlinux__ define rule_vmlinux__
set -e; \ set -e \
$(if $(filter .tmp_kallsyms%,$^),, \ $(if $(filter .tmp_kallsyms%,$^),, \
echo ' GEN .version'; \ echo ' GEN .version'; \
. $(srctree)/scripts/mkversion > .tmp_version; \ . $(srctree)/scripts/mkversion > .tmp_version; \
mv -f .tmp_version .version; \ mv -f .tmp_version .version; \
$(MAKE) $(build)=init; \ $(MAKE) $(build)=init; \
) )
set -e \
$(call cmd,vmlinux__); \ $(call cmd,vmlinux__); \
echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd echo 'cmd_$@ := $(cmd_vmlinux__)' > $(@D)/.$(@F).cmd
endef endef
......
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