summaryrefslogtreecommitdiffstats
path: root/util/kconfig/symbol.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2022-10-28 01:00:26 +0200
committerPatrick Georgi <patrick@coreboot.org>2022-10-30 08:45:52 +0000
commit4c9b9e9709cef4937d012d6950e5e2932042c587 (patch)
tree29fee0073ac8e97f918aa8ac00630c31dc4db042 /util/kconfig/symbol.c
parent14cedd97a5790fe6182771630d91bfa375abf867 (diff)
downloadcoreboot-4c9b9e9709cef4937d012d6950e5e2932042c587.tar.gz
coreboot-4c9b9e9709cef4937d012d6950e5e2932042c587.tar.bz2
coreboot-4c9b9e9709cef4937d012d6950e5e2932042c587.zip
util/kconfig: Uprev to Linux 5.16's kconfig
Linux 5.16 saw a significant rewrite in the boolean handling which reduces our change set. On the other hand, it's all new code. Comparing the config.build and config.h files generated by `util/abuild/abuild -C`, only a few lines of comment in the header changed. Change-Id: I52984e15a48236ddf228707aec85e90f71aa4382 Signed-off-by: Patrick Georgi <patrick@coreboot.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66045 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'util/kconfig/symbol.c')
-rw-r--r--util/kconfig/symbol.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/util/kconfig/symbol.c b/util/kconfig/symbol.c
index 7a03aa28641b..7c687b0cd262 100644
--- a/util/kconfig/symbol.c
+++ b/util/kconfig/symbol.c
@@ -872,49 +872,6 @@ struct symbol *sym_find(const char *name)
return symbol;
}
-const char *sym_escape_string_value(const char *in)
-{
- const char *p;
- size_t reslen;
- char *res;
- size_t l;
-
- reslen = strlen(in) + strlen("\"\"") + 1;
-
- p = in;
- for (;;) {
- l = strcspn(p, "\"\\");
- p += l;
-
- if (p[0] == '\0')
- break;
-
- reslen++;
- p++;
- }
-
- res = xmalloc(reslen);
- res[0] = '\0';
-
- strcat(res, "\"");
-
- p = in;
- for (;;) {
- l = strcspn(p, "\"\\");
- strncat(res, p, l);
- p += l;
-
- if (p[0] == '\0')
- break;
-
- strcat(res, "\\");
- strncat(res, p++, 1);
- }
-
- strcat(res, "\"");
- return res;
-}
-
struct sym_match {
struct symbol *sym;
off_t so, eo;