We were already not using it for the CONFIG_DT_DISABLE_CTF case, but not
suppressing its build nor noting the !CONFIG_DTRACE case properly.
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
# Step 6), generate CTF for the entire kernel, or for the module alone if this
# is a build of an external module.
+ifdef CONFIG_DTRACE
ifndef CONFIG_DT_DISABLE_CTF
# This is quite tricky. If called for non-external-modules, dwarf2ctf needs to
module-ctf-flags =
cmd-touch-ctf = @:
+endif
+else
+
+module-ctfs-modular-prereq =
+module-ctfs-builtin =
+module-ctf-flags =
+cmd-touch-ctf = @:
+
endif
# Step 7), final link of the modules
+ifdef CONFIG_DTRACE
+ifndef CONFIG_DT_DISABLE_CTF
hostprogs-y := dwarf2ctf
always := $(hostprogs-y)
HOSTCFLAGS_dwarf2ctf.o := $(shell pkg-config --cflags glib-2.0)
HOSTLOADLIBES_dwarf2ctf := -ldtrace-ctf -lelf -ldw $(shell pkg-config --libs glib-2.0) -lz
+endif
+endif