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