Commit 6a93ca05 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Don't default to building modules when not selected

Defaulting to building modules together with vmlinux when just doing
"make" or "make all" is only a good choice when "CONFIG_MODULES" is set.
parent c4fbc32d
...@@ -53,8 +53,10 @@ HOSTCXXFLAGS = -O2 ...@@ -53,8 +53,10 @@ HOSTCXXFLAGS = -O2
CROSS_COMPILE = CROSS_COMPILE =
# That's our default target when none is given on the command line # That's our default target when none is given on the command line
# Note that 'modules' will be added as a prerequisite as well,
# in the CONFIG_MODULES part below
all: vmlinux modules all: vmlinux
# Decide whether to build built-in, modular, or both. # Decide whether to build built-in, modular, or both.
# Normally, just do built-in. # Normally, just do built-in.
...@@ -508,6 +510,10 @@ depend dep: ...@@ -508,6 +510,10 @@ depend dep:
ifdef CONFIG_MODULES ifdef CONFIG_MODULES
# By default, build modules as well
all: modules
# Build modules # Build modules
.PHONY: modules __modversions .PHONY: modules __modversions
......
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