xref: /linux/scripts/kconfig/tests/transitional/Kconfig (revision a5ba183bdeeeedd5f5b683c02561072848258496)
1# SPDX-License-Identifier: GPL-2.0
2# Test transitional symbols for config migration with all Kconfig types
3
4# Enable module support for tristate testing
5config MODULES
6	bool "Enable loadable module support"
7	modules
8	default y
9
10# Basic migration tests for all types
11config NEW_BOOL
12	bool "New bool option"
13	default OLD_BOOL
14
15config OLD_BOOL
16	bool
17	transitional
18
19config NEW_TRISTATE
20	tristate "New tristate option"
21	default OLD_TRISTATE
22
23config OLD_TRISTATE
24	tristate
25	transitional
26
27config NEW_STRING
28	string "New string option"
29	default OLD_STRING
30
31config OLD_STRING
32	string
33	transitional
34
35config NEW_HEX
36	hex "New hex option"
37	default OLD_HEX
38
39config OLD_HEX
40	hex
41	transitional
42
43config NEW_INT
44	int "New int option"
45	default OLD_INT
46
47config OLD_INT
48	int
49	transitional
50
51# Precedence tests for all types
52config NEW_BOOL_PRECEDENCE
53	bool "New bool option with precedence"
54	default OLD_BOOL_PRECEDENCE
55
56config OLD_BOOL_PRECEDENCE
57	bool
58	transitional
59
60config NEW_STRING_PRECEDENCE
61	string "New string option with precedence"
62	default OLD_STRING_PRECEDENCE
63
64config OLD_STRING_PRECEDENCE
65	string
66	transitional
67
68config NEW_TRISTATE_PRECEDENCE
69	tristate "New tristate option with precedence"
70	default OLD_TRISTATE_PRECEDENCE
71
72config OLD_TRISTATE_PRECEDENCE
73	tristate
74	transitional
75
76config NEW_HEX_PRECEDENCE
77	hex "New hex option with precedence"
78	default OLD_HEX_PRECEDENCE
79
80config OLD_HEX_PRECEDENCE
81	hex
82	transitional
83
84config NEW_INT_PRECEDENCE
85	int "New int option with precedence"
86	default OLD_INT_PRECEDENCE
87
88config OLD_INT_PRECEDENCE
89	int
90	transitional
91
92# Test that help sections are allowed for transitional symbols
93config OLD_WITH_HELP
94	bool
95	transitional
96	help
97	  This transitional symbol has a help section to validate that help is allowed.
98
99config REGULAR_OPTION
100	bool "Regular option"
101