Skip to content

Commit

Permalink
Support verifying the value of strings (and not just y/m/n settings)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
saiarcot895 committed Nov 17, 2022
1 parent e9206c9 commit 7f8d898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manage-config
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ if [ -e ${exclusion_file} -o -e ${inclusion_file} -o -e ${force_inclusion_file}
if [ ! -z "$opt" ] && [[ ! "$opt" =~ ^#.* ]]; then
n=${opt%=*}
v="${opt#*=}"
v="${v/#\"/}"
v="${v/%\"/}"
s=$(scripts/config --file ${CONFIG_FILE} -k --state $n)
if [ ! "$s" = "$v" ]; then
ret=2
Expand Down

0 comments on commit 7f8d898

Please sign in to comment.