Skip to content

Commit 7f8d898

Browse files
committed
Support verifying the value of strings (and not just y/m/n settings)
Becuase of kpatch-inclusions having quotes around the string, but the value from `scripts/config` having the quotes stripped, the comparison fails due to one side having quotes but the other side not having quotes. This effectively adds support for setting string kconfigs in kconfig-inclusion. Signed-off-by: Saikrishna Arcot <[email protected]>
1 parent e9206c9 commit 7f8d898

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manage-config

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ if [ -e ${exclusion_file} -o -e ${inclusion_file} -o -e ${force_inclusion_file}
115115
if [ ! -z "$opt" ] && [[ ! "$opt" =~ ^#.* ]]; then
116116
n=${opt%=*}
117117
v="${opt#*=}"
118+
v="${v/#\"/}"
119+
v="${v/%\"/}"
118120
s=$(scripts/config --file ${CONFIG_FILE} -k --state $n)
119121
if [ ! "$s" = "$v" ]; then
120122
ret=2

0 commit comments

Comments
 (0)