hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/scripts/gcc-plugins/Kconfig
....@@ -1,31 +1,23 @@
1
-preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 ],$(HOSTCXX),$(HOSTCC))
2
-
3
-config PLUGIN_HOSTCC
4
- string
5
- default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC
6
- help
7
- Host compiler used to build GCC plugins. This can be $(HOSTCXX),
8
- $(HOSTCC), or a null string if GCC plugin is unsupported.
9
-
1
+# SPDX-License-Identifier: GPL-2.0-only
102 config HAVE_GCC_PLUGINS
113 bool
124 help
135 An arch should select this symbol if it supports building with
146 GCC plugins.
157
16
-config GCC_PLUGINS
17
- bool
8
+menuconfig GCC_PLUGINS
9
+ bool "GCC plugins"
1810 depends on HAVE_GCC_PLUGINS
19
- depends on PLUGIN_HOSTCC != ""
11
+ depends on CC_IS_GCC
12
+ depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h)
2013 default y
2114 help
2215 GCC plugins are loadable modules that provide extra features to the
2316 compiler. They are useful for runtime instrumentation and static analysis.
2417
25
- See Documentation/gcc-plugins.txt for details.
18
+ See Documentation/kbuild/gcc-plugins.rst for details.
2619
27
-menu "GCC plugins"
28
- depends on GCC_PLUGINS
20
+if GCC_PLUGINS
2921
3022 config GCC_PLUGIN_CYC_COMPLEXITY
3123 bool "Compute the cyclomatic complexity of a function" if EXPERT
....@@ -86,7 +78,7 @@
8678 source tree isn't cleaned after kernel installation).
8779
8880 The seed used for compilation is located at
89
- scripts/gcc-plgins/randomize_layout_seed.h. It remains after
81
+ scripts/gcc-plugins/randomize_layout_seed.h. It remains after
9082 a make clean to allow for external modules to be compiled with
9183 the existing seed and will be removed by a make mrproper or
9284 make distclean.
....@@ -108,4 +100,8 @@
108100 in structures. This reduces the performance hit of RANDSTRUCT
109101 at the cost of weakened randomization.
110102
111
-endmenu
103
+config GCC_PLUGIN_ARM_SSP_PER_TASK
104
+ bool
105
+ depends on GCC_PLUGINS && ARM
106
+
107
+endif