Commit 939ff499 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Fix a race with module postprocessing

For the modversions case, we need vmlinux to be built before postprocessing
modules can start, since we need to extract the checksums from it.

For the non-modversions case, we use vmlinux if it's available (so we can
sensibly give warnings about unresolved symbols), but otherwise not. 
However, this could race with vmlinux being built at the exact same time as 
being processed.

Fixed by waiting until vmlinux is finished before starting module
postprocessing.
parent 4339cd9a
......@@ -506,7 +506,7 @@ all: modules
# Build modules
.PHONY: modules
modules: $(SUBDIRS) $(if $(CONFIG_MODVERSIONS),vmlinux)
modules: $(SUBDIRS) $(if $(KBUILD_BUILTIN),vmlinux)
@echo ' Building modules, stage 2.';
$(Q)$(MAKE) -rR -f scripts/Makefile.modpost
......
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