Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36a8a2af authored by Prakruthi Deepak Heragu's avatar Prakruthi Deepak Heragu
Browse files

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: default avatarPrakruthi Deepak Heragu <pheragu@codeaurora.org>
parent f5e30025
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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