Kconfig (f98b4d13717a58b15c00880d2ccd24972316b430) Kconfig (e1789d7c752ed001cf1a4bbbd624f70a7dd3c6db)
1# SPDX-License-Identifier: GPL-2.0-only
2config CC_VERSION_TEXT
3 string
4 default "$(CC_VERSION_TEXT)"
5 help
6 This is used in unclear ways:
7
8 - Re-run Kconfig when the compiler is updated

--- 52 unchanged lines hidden (view full) ---

61 default 0
62
63config RUST_IS_AVAILABLE
64 def_bool $(success,$(srctree)/scripts/rust_is_available.sh)
65 help
66 This shows whether a suitable Rust toolchain is available (found).
67
68 Please see Documentation/rust/quick-start.rst for instructions on how
1# SPDX-License-Identifier: GPL-2.0-only
2config CC_VERSION_TEXT
3 string
4 default "$(CC_VERSION_TEXT)"
5 help
6 This is used in unclear ways:
7
8 - Re-run Kconfig when the compiler is updated

--- 52 unchanged lines hidden (view full) ---

61 default 0
62
63config RUST_IS_AVAILABLE
64 def_bool $(success,$(srctree)/scripts/rust_is_available.sh)
65 help
66 This shows whether a suitable Rust toolchain is available (found).
67
68 Please see Documentation/rust/quick-start.rst for instructions on how
69 to satisfy the build requirements of Rust support.
69 to satify the build requirements of Rust support.
70
71 In particular, the Makefile target 'rustavailable' is useful to check
72 why the Rust toolchain is not being detected.
73
74config CC_CAN_LINK
75 bool
76 default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m64-flag)) if 64BIT
77 default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m32-flag))

--- 76 unchanged lines hidden (view full) ---

154 drivers to be distributed.
155
156config WERROR
157 bool "Compile the kernel with warnings as errors"
158 default COMPILE_TEST
159 help
160 A kernel build should not cause any compiler warnings, and this
161 enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
70
71 In particular, the Makefile target 'rustavailable' is useful to check
72 why the Rust toolchain is not being detected.
73
74config CC_CAN_LINK
75 bool
76 default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m64-flag)) if 64BIT
77 default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(USERCFLAGS) $(USERLDFLAGS) $(m32-flag))

--- 76 unchanged lines hidden (view full) ---

154 drivers to be distributed.
155
156config WERROR
157 bool "Compile the kernel with warnings as errors"
158 default COMPILE_TEST
159 help
160 A kernel build should not cause any compiler warnings, and this
161 enables the '-Werror' (for C) and '-Dwarnings' (for Rust) flags
162 to enforce that rule by default.
162 to enforce that rule by default. Certain warnings from other tools
163 such as the linker may be upgraded to errors with this option as
164 well.
163
165
164 However, if you have a new (or very old) compiler with odd and
165 unusual warnings, or you have some architecture with problems,
166 However, if you have a new (or very old) compiler or linker with odd
167 and unusual warnings, or you have some architecture with problems,
166 you may need to disable this config option in order to
167 successfully build the kernel.
168
169 If in doubt, say Y.
170
171config UAPI_HEADER_TEST
172 bool "Compile test UAPI headers"
173 depends on HEADERS_INSTALL && CC_CAN_LINK

--- 1275 unchanged lines hidden (view full) ---

1449 silently broken kernel if the required annotations are not
1450 present. This option is not well tested yet, so use at your
1451 own risk.
1452
1453config LD_ORPHAN_WARN
1454 def_bool y
1455 depends on ARCH_WANT_LD_ORPHAN_WARN
1456 depends on $(ld-option,--orphan-handling=warn)
168 you may need to disable this config option in order to
169 successfully build the kernel.
170
171 If in doubt, say Y.
172
173config UAPI_HEADER_TEST
174 bool "Compile test UAPI headers"
175 depends on HEADERS_INSTALL && CC_CAN_LINK

--- 1275 unchanged lines hidden (view full) ---

1451 silently broken kernel if the required annotations are not
1452 present. This option is not well tested yet, so use at your
1453 own risk.
1454
1455config LD_ORPHAN_WARN
1456 def_bool y
1457 depends on ARCH_WANT_LD_ORPHAN_WARN
1458 depends on $(ld-option,--orphan-handling=warn)
1459 depends on $(ld-option,--orphan-handling=error)
1457
1460
1461config LD_ORPHAN_WARN_LEVEL
1462 string
1463 depends on LD_ORPHAN_WARN
1464 default "error" if WERROR
1465 default "warn"
1466
1458config SYSCTL
1459 bool
1460
1461config HAVE_UID16
1462 bool
1463
1464config SYSCTL_EXCEPTION_TRACE
1465 bool

--- 544 unchanged lines hidden ---
1467config SYSCTL
1468 bool
1469
1470config HAVE_UID16
1471 bool
1472
1473config SYSCTL_EXCEPTION_TRACE
1474 bool

--- 544 unchanged lines hidden ---