Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: remove support for single %.symtypes build rule

This rule is unnecessary because you can generate foo/bar.symtypes
as a side effect using:

$ make KBUILD_SYMTYPES=1 foo/bar.o

While compiling *.o is slower than preprocessing, the impact is
negligible. I prioritize keeping the code simpler.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>

+5 -19
+1 -1
Makefile
··· 301 301 outputmakefile rustavailable rustfmt rustfmtcheck 302 302 no-sync-config-targets := $(no-dot-config-targets) %install modules_sign kernelrelease \ 303 303 image_name 304 - single-targets := %.a %.i %.ko %.lds %.ll %.lst %.mod %.o %.rsi %.s %.symtypes %/ 304 + single-targets := %.a %.i %.ko %.lds %.ll %.lst %.mod %.o %.rsi %.s %/ 305 305 306 306 config-build := 307 307 mixed-build :=
+4 -18
scripts/Makefile.build
··· 108 108 $(call if_changed_dep,cpp_i_c) 109 109 110 110 genksyms = $(objtree)/scripts/genksyms/genksyms \ 111 - $(if $(1), -T $(2)) \ 112 - $(if $(KBUILD_PRESERVE), -p) \ 113 - $(addprefix -r , $(wildcard $(2:.symtypes=.symref))) 111 + $(if $(KBUILD_SYMTYPES), -T $(@:.o=.symtypes)) \ 112 + $(if $(KBUILD_PRESERVE), -p) \ 113 + $(addprefix -r , $(wildcard $(@:.o=.symref))) 114 114 115 115 # These mirror gensymtypes_S and co below, keep them in synch. 116 116 cmd_gensymtypes_c = $(CPP) -D__GENKSYMS__ $(c_flags) $< | $(genksyms) 117 - 118 - quiet_cmd_cc_symtypes_c = SYM $(quiet_modtag) $@ 119 - cmd_cc_symtypes_c = $(call cmd_gensymtypes_c,true,$@) >/dev/null 120 - 121 - $(obj)/%.symtypes : $(obj)/%.c FORCE 122 - $(call cmd,cc_symtypes_c) 123 117 124 118 # LLVM assembly 125 119 # Generate .ll files from .c ··· 152 158 153 159 gen_symversions = \ 154 160 if $(NM) $@ 2>/dev/null | grep -q ' __export_symbol_'; then \ 155 - $(call cmd_gensymtypes_$(1),$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \ 156 - >> $(dot-target).cmd; \ 161 + $(cmd_gensymtypes_$1) >> $(dot-target).cmd; \ 157 162 fi 158 163 159 164 cmd_gen_symversions_c = $(call gen_symversions,c) ··· 315 322 echo "\#include <asm/asm-prototypes.h>" ; \ 316 323 $(NM) $@ | sed -n 's/.* __export_symbol_\(.*\)/EXPORT_SYMBOL(\1);/p' ; } | \ 317 324 $(CPP) -D__GENKSYMS__ $(c_flags) -xc - | $(genksyms) 318 - 319 - quiet_cmd_cc_symtypes_S = SYM $(quiet_modtag) $@ 320 - cmd_cc_symtypes_S = $(call cmd_gensymtypes_S,true,$@) >/dev/null 321 - 322 - $(obj)/%.symtypes : $(obj)/%.S FORCE 323 - $(call cmd,cc_symtypes_S) 324 - 325 325 326 326 quiet_cmd_cpp_s_S = CPP $(quiet_modtag) $@ 327 327 cmd_cpp_s_S = $(CPP) $(a_flags) -o $@ $<