Commit 2cb900d0 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Build modules by default

So here we are: make vmlinux/bzImage/whatever will now also build
modules as it goes. Other than that, everything works as usual.
"make modules" builds only the modules (but you shouldn't need
it anymore). If you don't want the modules built, you can
do "make KBUILD_MODULES= vmlinux/whatever" to only compile built-in
objects.

If people want it, I can also allow for "make vmlinux/whatever nomodules"
to do the same.

Also, add '  ' in Rules.make to properly align output in quiet mode.
parent 67b95633
...@@ -50,7 +50,7 @@ endif ...@@ -50,7 +50,7 @@ endif
# Decide whether to build built-in, modular, or both # Decide whether to build built-in, modular, or both
KBUILD_MODULES := KBUILD_MODULES := 1
KBUILD_BUILTIN := 1 KBUILD_BUILTIN := 1
export KBUILD_MODULES KBUILD_BUILTIN export KBUILD_MODULES KBUILD_BUILTIN
...@@ -380,7 +380,7 @@ endif ...@@ -380,7 +380,7 @@ endif
.PHONY: modules .PHONY: modules
modules: modules:
@$(MAKE) KBUILD_BUILTIN= KBUILD_MODULES=1 $(SUBDIRS) @$(MAKE) KBUILD_BUILTIN= $(SUBDIRS)
# Install modules # Install modules
......
...@@ -384,7 +384,7 @@ if_changed_dep = $(if $(strip $? \ ...@@ -384,7 +384,7 @@ if_changed_dep = $(if $(strip $? \
$(filter-out $(cmd_$(1)),$(cmd_$@))\ $(filter-out $(cmd_$(1)),$(cmd_$@))\
$(filter-out $(cmd_$@),$(cmd_$(1)))),\ $(filter-out $(cmd_$@),$(cmd_$(1)))),\
@set -e; \ @set -e; \
$(if $($(quiet)cmd_$(1)),echo '$($(quiet)cmd_$(1))';) \ $(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))';) \
$(cmd_$(1)); \ $(cmd_$(1)); \
$(TOPDIR)/scripts/fixdep $(subst /,_,$@) $(TOPDIR) '$(cmd_$(1))' > .$(subst /,_,$@).tmp; \ $(TOPDIR)/scripts/fixdep $(subst /,_,$@) $(TOPDIR) '$(cmd_$(1))' > .$(subst /,_,$@).tmp; \
rm -f .$(subst /,_,$@).d; \ rm -f .$(subst /,_,$@).d; \
......
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