Makefile (f26e8817b235d8764363bffcc9cbfc61867371f2) Makefile (313dd1b629219db50cad532dba6a3b3b22ffe622)
1GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
2
3ifeq ($(PLUGINCC),$(HOSTCC))
4 HOSTLIBS := hostlibs
5 HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb
6 export HOST_EXTRACFLAGS
7else
8 HOSTLIBS := hostcxxlibs

--- 4 unchanged lines hidden (view full) ---

13endif
14
15ifneq ($(CFLAGS_KCOV), $(SANCOV_PLUGIN))
16 GCC_PLUGIN := $(filter-out $(SANCOV_PLUGIN), $(GCC_PLUGIN))
17endif
18
19export HOSTLIBS
20
1GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
2
3ifeq ($(PLUGINCC),$(HOSTCC))
4 HOSTLIBS := hostlibs
5 HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb
6 export HOST_EXTRACFLAGS
7else
8 HOSTLIBS := hostcxxlibs

--- 4 unchanged lines hidden (view full) ---

13endif
14
15ifneq ($(CFLAGS_KCOV), $(SANCOV_PLUGIN))
16 GCC_PLUGIN := $(filter-out $(SANCOV_PLUGIN), $(GCC_PLUGIN))
17endif
18
19export HOSTLIBS
20
21$(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
22quiet_cmd_create_randomize_layout_seed = GENSEED $@
23cmd_create_randomize_layout_seed = \
24 $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h
25$(objtree)/$(obj)/randomize_layout_seed.h: FORCE
26 $(call if_changed,create_randomize_layout_seed)
27targets = randomize_layout_seed.h randomize_layout_hash.h
28
21$(HOSTLIBS)-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
22always := $($(HOSTLIBS)-y)
23
24$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
25
26subdir-y := $(GCC_PLUGIN_SUBDIR)
27subdir- += $(GCC_PLUGIN_SUBDIR)
28
29clean-files += *.so
29$(HOSTLIBS)-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
30always := $($(HOSTLIBS)-y)
31
32$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
33
34subdir-y := $(GCC_PLUGIN_SUBDIR)
35subdir- += $(GCC_PLUGIN_SUBDIR)
36
37clean-files += *.so