projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d7321
)
Add more values for the normalization
author
Alexander Popov
<alex.popov@linux.com>
Sun, 14 Aug 2022 23:53:26 +0000
(
02:53
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sun, 14 Aug 2022 23:53:26 +0000
(
02:53
+0300)
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index 58a0e78f2915b6ba3e9c21a796579d7766d89b57..0367d88094b22ea8e779e2146841ed7dd18270b0 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-863,9
+863,9
@@
def normalize_cmdline_options(option, value):
return value
# Implement a limited part of the kstrtobool() logic
- if value in ('1', 'on', 'O
N', 'y', 'Y
'):
+ if value in ('1', 'on', 'O
n', 'ON', 'y', 'Y', 'yes', 'Yes', 'YES
'):
return '1'
- if value in ('0', 'off', 'O
FF', 'n', 'N
'):
+ if value in ('0', 'off', 'O
ff', 'OFF', 'n', 'N', 'no', 'No', 'NO
'):
return '0'
# Preserve unique values