]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ctf: do not construct objects.builtin if CTF is not being built
authorNick Alcock <nick.alcock@oracle.com>
Mon, 24 Sep 2012 11:05:09 +0000 (12:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:33 +0000 (22:40 +0100)
This file is used only for the dwarf2ctf run inside Makefile.modpost.  That run
is conditionalized on CONFIG_DT_DISABLE_CTF, so objects.builtin should be
conditionalized on that too.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Makefile

index f6325c35d187c7c4a989150165eaf69577f6ba76..cafabb525ad898a4f75929bcbb815ae549d4845e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1103,6 +1103,7 @@ modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin objects
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild
 
 ifdef CONFIG_DTRACE
+ifndef CONFIG_DT_DISABLE_CTF
 # This contains all the object files that are unconditionally built into the
 # kernel, for consumption by dwarf2ctf in Makefile.modpost.
 # This is made doubly annoying by the presence of '.o' files which are actually
@@ -1118,6 +1119,10 @@ else
 PHONY += objects.builtin
 objects.builtin:
 endif
+else
+PHONY += objects.builtin
+objects.builtin:
+endif
 
 # Target to prepare building external modules
 PHONY += modules_prepare