bool "Compact Type Format generation"
default n
select STRIP_ASM_SYMS
- depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4
+ depends on DEBUG_INFO && !DEBUG_INFO_REDUCED && !DEBUG_INFO_SPLIT && !DEBUG_INFO_DWARF4 && !DT_DISABLE_CTF
help
Emit a compact, compressed description of the kernel's datatypes and
global variables into .ctf sections in kernel modules. A module
subdir-$(CONFIG_MODVERSIONS) += genksyms
subdir-y += mod
-subdir-$(CONFIG_DTRACE) += dwarf2ctf
+subdir-$(CONFIG_CTF) += dwarf2ctf
subdir-$(CONFIG_SECURITY_SELINUX) += selinux
subdir-$(CONFIG_DTC) += dtc
subdir-$(CONFIG_GDB_SCRIPTS) += gdb
$(call if_changed,as_o_S)
module-sdt-modular-prereq = %.sdtstub.o
+sdtinfo-prereq = $(modules:.ko=.sdtinfo.c)
else
$(call if_changed_dep,cc_o_c)
module-sdt-modular-prereq =
+sdtinfo-prereq =
endif
$(foreach file,$(1),$(call add-ctf-filelist-cmd,$(file)))
endef
-$(ctf-filelist): $(builtins) $(modules:.ko=.o) | $(modules:.ko=.sdtinfo.c)
+$(ctf-filelist): $(builtins) $(modules:.ko=.o) | $(sdtinfo-prereq)
@rm -f $(ctf-filelist);
@mkdir -p $(ctf-dir);
$(call add-ctf-filelists-cmd,$^)
# the names of the generated CTF files for the builtins are so variable.
# (Standalone modules get their own per-module stamp files.)
# The stamp file then depends on the .o files for the modules, and on the
-# sdtinfo files (for the same reason that the sdtstub does).
+# sdtinfo files, if any (for the same reason that the sdtstub does).
$(ctf-stamp): $(ctf-filelist)
$(call if_changed,ctf)
@shopt -s nullglob; \