diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-09-26 19:50:40 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-10-01 09:09:34 +0000 |
| commit | 3af396446cf285a1a30c9a1151d47c3aea4aecae (patch) | |
| tree | 5d856849495fb048a3e268e5327736ba625a0866 /pkg/kconfig | |
| parent | 65a0eece8b50b1e2fac47dce4b422ec459ff7825 (diff) | |
pkg/kconfig: support transitional line
See https://www.phoronix.com/news/Linux-6.18-Transitional .
First used in:
config CFI_CLANG
bool
transitional
help
Transitional config for CFI_CLANG to CFI migration.
Diffstat (limited to 'pkg/kconfig')
| -rw-r--r-- | pkg/kconfig/kconfig.go | 4 | ||||
| -rw-r--r-- | pkg/kconfig/kconfig_test.go | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/kconfig/kconfig.go b/pkg/kconfig/kconfig.go index 15dc0d22a..668419baf 100644 --- a/pkg/kconfig/kconfig.go +++ b/pkg/kconfig/kconfig.go @@ -337,6 +337,10 @@ func (kp *kconfigParser) parseProperty(prop string) { kp.ConsumeLine() case "modules": case "optional": + // transitional is used for the configs backward compatibility. + // We can ignore them. After the config final removal we'll see the kconf error. + // https://www.phoronix.com/news/Linux-6.18-Transitional + case "transitional": case "default": kp.parseDefaultValue() case "range": diff --git a/pkg/kconfig/kconfig_test.go b/pkg/kconfig/kconfig_test.go index 44eda3168..8939f21dd 100644 --- a/pkg/kconfig/kconfig_test.go +++ b/pkg/kconfig/kconfig_test.go @@ -23,6 +23,13 @@ config FOO default "$(shell,$(srctree)/scripts/gcc-plugin.sh "$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC `, }, + { + in: ` +mainmenu "test_transitional" +config FOO + transitional +`, + }, } target := targets.Get("linux", "amd64") for i, test := range tests { |
