Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / scripts / Makefile.randstruct
blob24e283e8989382f25d1d0702d5a276ae4681490d
1 # SPDX-License-Identifier: GPL-2.0
3 randstruct-cflags-y += -DRANDSTRUCT
5 ifdef CONFIG_GCC_PLUGIN_RANDSTRUCT
6 randstruct-cflags-y     \
7         += -fplugin=$(objtree)/scripts/gcc-plugins/randomize_layout_plugin.so
8 randstruct-cflags-$(CONFIG_RANDSTRUCT_PERFORMANCE)              \
9         += -fplugin-arg-randomize_layout_plugin-performance-mode
10 else
11 randstruct-cflags-y     \
12         += -frandomize-layout-seed-file=$(objtree)/scripts/basic/randstruct.seed
13 endif
15 export RANDSTRUCT_CFLAGS := $(randstruct-cflags-y)
17 KBUILD_CFLAGS   += $(RANDSTRUCT_CFLAGS)