diff options
author | Kees Cook <keescook@chromium.org> | 2017-06-30 15:48:36 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-06-30 15:48:36 -0700 |
commit | cb00e6b58abbb1b41f3e41890cee7550ac8c1853 (patch) | |
tree | 60b6a7768c0004fc5988b857fc0eac770f071741 /scripts/gcc-plugins/Makefile | |
parent | f136e090c73ed2ed568dcd013c8e51ed4693a279 (diff) | |
parent | 8acdf5055974e49d337d51ac7011449cfd7b7d05 (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/Makefile | 8 |
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) |