Skip to content

Commit c17d617

Browse files
masahir0ykees
authored andcommitted
gcc-plugins: remove unused GCC_PLUGIN_SUBDIR
GCC_PLUGIN_SUBDIR has never been used. If you really need this in the future, please re-add it then. For now, the code is unused. Remove. 'export HOSTLIBS' is not necessary either. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent 7daf201 commit c17d617

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

scripts/Makefile.gcc-plugins

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ gcc-plugin-cflags-$(CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE) += -fplugin-arg-ra
1919

2020
GCC_PLUGINS_CFLAGS := $(strip $(addprefix -fplugin=$(objtree)/scripts/gcc-plugins/, $(gcc-plugin-y)) $(gcc-plugin-cflags-y))
2121

22-
export GCC_PLUGINS_CFLAGS GCC_PLUGIN GCC_PLUGIN_SUBDIR
22+
export GCC_PLUGINS_CFLAGS GCC_PLUGIN
2323
export DISABLE_LATENT_ENTROPY_PLUGIN
2424

2525
# sancov_plugin.so can be only in CFLAGS_KCOV because avoid duplication.
2626
GCC_PLUGINS_CFLAGS := $(filter-out %/sancov_plugin.so, $(GCC_PLUGINS_CFLAGS))
2727

2828
KBUILD_CFLAGS += $(GCC_PLUGINS_CFLAGS)
2929
GCC_PLUGIN := $(gcc-plugin-y)
30-
GCC_PLUGIN_SUBDIR := $(gcc-plugin-subdir-y)
3130

3231
# Actually do the build, if requested.
3332
PHONY += gcc-plugins

scripts/gcc-plugins/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ else
1414
export HOST_EXTRACXXFLAGS
1515
endif
1616

17-
export HOSTLIBS
18-
1917
$(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
2018
quiet_cmd_create_randomize_layout_seed = GENSEED $@
2119
cmd_create_randomize_layout_seed = \
@@ -29,7 +27,4 @@ always := $($(HOSTLIBS)-y)
2927

3028
$(foreach p,$($(HOSTLIBS)-y:%.so=%),$(eval $(p)-objs := $(p).o))
3129

32-
subdir-y := $(GCC_PLUGIN_SUBDIR)
33-
subdir- += $(GCC_PLUGIN_SUBDIR)
34-
3530
clean-files += *.so

0 commit comments

Comments
 (0)