Skip to content
Commit 86556392 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Linus Torvalds
Browse files

kbuild: fix building bzImage with CONFIG_TRIM_UNUSED_KSYMS enabled



When building a specific target such as bzImage, modules aren't normally
built.  However if CONFIG_TRIM_UNUSED_KSYMS is enabled, no built modules
means none of the exported symbols are used and therefore they will all
be trimmed away from the final kernel.  A subsequent "make modules" will
fail because modpost cannot find the needed symbols for those modules in
the kernel binary.

Let's make sure modules are also built whenever CONFIG_TRIM_UNUSED_KSYMS
is enabled and that the kernel binary is properly rebuilt accordingly.

Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
Tested-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8dc0f265
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