Home
last modified time | relevance | path

Searched hist:"865563924022 d8a307ee6dbc6a9ab4fb4d461cce" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/
H A DMakefile865563924022d8a307ee6dbc6a9ab4fb4d461cce Fri Dec 02 14:11:50 CST 2016 Nicolas Pitre <nicolas.pitre@linaro.org> 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: Nicolas Pitre <nico@linaro.org>
Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>