https://github.com/torvalds/linux
Revision 865563924022d8a307ee6dbc6a9ab4fb4d461cce authored by Nicolas Pitre on 02 December 2016, 20:11:50 UTC, committed by Linus Torvalds on 02 December 2016, 22:46:42 UTC
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>
1 parent 8dc0f26
Raw File
Tip revision: 865563924022d8a307ee6dbc6a9ab4fb4d461cce authored by Nicolas Pitre on 02 December 2016, 20:11:50 UTC
kbuild: fix building bzImage with CONFIG_TRIM_UNUSED_KSYMS enabled
Tip revision: 8655639
.gitattributes
*.c   diff=cpp
*.h   diff=cpp
back to top