~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/gcc-plugins/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /scripts/gcc-plugins/Makefile (Version linux-6.12-rc7) and /scripts/gcc-plugins/Makefile (Version linux-5.6.19)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
                                                   >>   2 PLUGINCC := $(CONFIG_PLUGIN_HOSTCC:"%"=%)
                                                   >>   3 GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
  2                                                     4 
  3 $(obj)/randomize_layout_plugin.so: $(obj)/rand !!   5 ifeq ($(PLUGINCC),$(HOSTCC))
  4 quiet_cmd_create_randomize_layout_seed = SEEDH !!   6   HOSTLIBS := hostlibs
                                                   >>   7   HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb
                                                   >>   8   export HOST_EXTRACFLAGS
                                                   >>   9 else
                                                   >>  10   HOSTLIBS := hostcxxlibs
                                                   >>  11   HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 -fno-rtti
                                                   >>  12   HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
                                                   >>  13   HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
                                                   >>  14   HOST_EXTRACXXFLAGS += -Wno-format-diag
                                                   >>  15   export HOST_EXTRACXXFLAGS
                                                   >>  16 endif
                                                   >>  17 
                                                   >>  18 $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
                                                   >>  19 quiet_cmd_create_randomize_layout_seed = GENSEED $@
  5 cmd_create_randomize_layout_seed = \               20 cmd_create_randomize_layout_seed = \
  6         SEED=$$(cat $(filter-out FORCE,$^) </d !!  21   $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h
  7         echo '/*' > $@; \                      !!  22 $(objtree)/$(obj)/randomize_layout_seed.h: FORCE
  8         echo ' * This file is automatically ge << 
  9         echo ' * Exposing this value will expo << 
 10         echo ' */' >> $@; \                    << 
 11         echo "const char *randstruct_seed = \" << 
 12 $(obj)/randomize_layout_seed.h: $(objtree)/scr << 
 13         $(call if_changed,create_randomize_lay     23         $(call if_changed,create_randomize_layout_seed)
 14 targets += randomize_layout_seed.h             !!  24 targets = randomize_layout_seed.h randomize_layout_hash.h
 15                                                << 
 16 # Build rules for plugins                      << 
 17 #                                              << 
 18 # No extra code is needed for single-file plug << 
 19 # For multi-file plugins, use *-objs syntax to << 
 20 #                                              << 
 21 # If the plugin foo.so is compiled from foo.c  << 
 22 #                                              << 
 23 # foo-objs := foo.o foo2.o                     << 
 24                                                << 
 25 always-y += $(GCC_PLUGIN)                      << 
 26                                                    25 
 27 GCC_PLUGINS_DIR = $(shell $(CC) -print-file-na !!  26 $(HOSTLIBS)-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
                                                   >>  27 always-y := $($(HOSTLIBS)-y)
 28                                                    28 
 29 plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD !!  29 $(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
 30                   -include $(srctree)/include/ << 
 31                   -DPLUGIN_VERSION=$(call stri << 
 32                   -I $(GCC_PLUGINS_DIR)/includ << 
 33                   -fno-rtti -fno-exceptions -f << 
 34                   -ggdb -Wno-narrowing -Wno-un << 
 35                   -Wno-format-diag             << 
 36                                                    30 
 37 plugin_ldflags  = -shared                      << 
 38                                                << 
 39 plugin-single   := $(foreach m, $(GCC_PLUGIN), << 
 40 plugin-multi    := $(filter-out $(plugin-singl << 
 41 plugin-objs     := $(sort $(foreach m, $(plugi << 
 42                                                << 
 43 targets += $(plugin-single) $(plugin-multi) $( << 
 44 clean-files += *.so                                31 clean-files += *.so
 45                                                << 
 46 plugin-single   := $(addprefix $(obj)/, $(plug << 
 47 plugin-multi    := $(addprefix $(obj)/, $(plug << 
 48 plugin-objs     := $(addprefix $(obj)/, $(plug << 
 49                                                << 
 50 quiet_cmd_plugin_cxx_so_c = HOSTCXX $@         << 
 51       cmd_plugin_cxx_so_c = $(HOSTCXX) $(plugi << 
 52                                                << 
 53 $(plugin-single): $(obj)/%.so: $(src)/%.c FORC << 
 54         $(call if_changed_dep,plugin_cxx_so_c) << 
 55                                                << 
 56 quiet_cmd_plugin_ld_so_o = HOSTLD  $@          << 
 57       cmd_plugin_ld_so_o = $(HOSTCXX) $(plugin << 
 58                            $(addprefix $(obj)/ << 
 59                                                << 
 60 $(plugin-multi): FORCE                         << 
 61         $(call if_changed,plugin_ld_so_o)      << 
 62 $(foreach m, $(notdir $(plugin-multi)), $(eval << 
 63                                                << 
 64 quiet_cmd_plugin_cxx_o_c = HOSTCXX $@          << 
 65       cmd_plugin_cxx_o_c = $(HOSTCXX) $(plugin << 
 66                                                << 
 67 $(plugin-objs): $(obj)/%.o: $(src)/%.c FORCE   << 
 68         $(call if_changed_dep,plugin_cxx_o_c)  << 
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php