mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:11:14 -04:00
Makefile: Add a check of CONFIG_TRIM_UNUSED_KSYMS before remaking vmlinux
Gaurd the rule to re generate vmlinux only when CONFIG_TRIM_UNUSED_KSYMS is set. Without this change, the vmlinux was generated twice as opposed to Image generating only once. Change-Id: I8370f64553b0ed7cb6536aabb1c68d77e5b58bf1 Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
This commit is contained in:
parent
f5e3002533
commit
36a8a2affe
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -1364,8 +1364,10 @@ all: modules
|
|||
|
||||
PHONY += modules
|
||||
modules: $(if $(KBUILD_BUILTIN),vmlinux) modules.order modules.builtin
|
||||
ifdef CONFIG_TRIM_UNUSED_KSYMS
|
||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
|
||||
"$(MAKE) -f $(srctree)/Makefile vmlinux"
|
||||
endif
|
||||
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
|
||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue