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
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 New Issue
Block a user