aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-06-30 15:48:36 -0700
committerKees Cook <keescook@chromium.org>2017-06-30 15:48:36 -0700
commitcb00e6b58abbb1b41f3e41890cee7550ac8c1853 (patch)
tree60b6a7768c0004fc5988b857fc0eac770f071741 /scripts/gcc-plugins/Makefile
parentf136e090c73ed2ed568dcd013c8e51ed4693a279 (diff)
parent8acdf5055974e49d337d51ac7011449cfd7b7d05 (diff)
Merge branch 'for-next/gcc-plugin/randstruct' into for-next/kspp
Diffstat (limited to 'scripts/gcc-plugins/Makefile')
-rw-r--r--scripts/gcc-plugins/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
index 8b29dc17c73c..214eb2335c31 100644
--- a/scripts/gcc-plugins/Makefile
+++ b/scripts/gcc-plugins/Makefile
@@ -18,6 +18,14 @@ endif
export HOSTLIBS
+$(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
+quiet_cmd_create_randomize_layout_seed = GENSEED $@
+cmd_create_randomize_layout_seed = \
+ $(CONFIG_SHELL) $(srctree)/$(src)/gen-random-seed.sh $@ $(objtree)/include/generated/randomize_layout_hash.h
+$(objtree)/$(obj)/randomize_layout_seed.h: FORCE
+ $(call if_changed,create_randomize_layout_seed)
+targets = randomize_layout_seed.h randomize_layout_hash.h
+
$(HOSTLIBS)-y := $(foreach p,$(GCC_PLUGIN),$(if $(findstring /,$(p)),,$(p)))
always := $($(HOSTLIBS)-y)