From 7f8d898437e37456a8c591171b90eec4cfcce017 Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Thu, 17 Nov 2022 08:33:16 -0800 Subject: [PATCH] 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 --- manage-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manage-config b/manage-config index 499d5c9c7..e3570db75 100755 --- a/manage-config +++ b/manage-config @@ -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