diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-04-01 08:13:56 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-04-01 08:13:56 +0100 |
| commit | 9cd86eb584786ee0f1b8b39a8174b7cea823f652 (patch) | |
| tree | 75569bf72f260cbe034b9ad30713a6f94ab3e589 /config/submodule/coreboot/default/vboot | |
| parent | e9a975b1f799b1e84bf60364c5f0d58da3ca4cc8 (diff) | |
coreboot/default: fix vboot build error on arch
or any newer linux really.
new gcc is much stricter about const chars.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/submodule/coreboot/default/vboot')
| -rw-r--r-- | config/submodule/coreboot/default/vboot/patches/0002-lib-cbfstool-fix-build-error-on-newer-hostcc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/submodule/coreboot/default/vboot/patches/0002-lib-cbfstool-fix-build-error-on-newer-hostcc.patch b/config/submodule/coreboot/default/vboot/patches/0002-lib-cbfstool-fix-build-error-on-newer-hostcc.patch new file mode 100644 index 00000000..6d5ba873 --- /dev/null +++ b/config/submodule/coreboot/default/vboot/patches/0002-lib-cbfstool-fix-build-error-on-newer-hostcc.patch @@ -0,0 +1,28 @@ +From efeac4de14e3ac46e9146bc6a2d2e03ca04757f1 Mon Sep 17 00:00:00 2001 +From: Leah Rowe <leah@libreboot.org> +Date: Wed, 1 Apr 2026 08:10:09 +0100 +Subject: [PATCH] lib/cbfstool: fix build error on newer hostcc + +const char being discarded. classic rookie mistake. + +Signed-off-by: Leah Rowe <leah@libreboot.org> +--- + host/lib/cbfstool.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/host/lib/cbfstool.c b/host/lib/cbfstool.c +index 9b4de49e..2a2578c0 100644 +--- a/host/lib/cbfstool.c ++++ b/host/lib/cbfstool.c +@@ -259,7 +259,7 @@ static char *extract_config_value(const char *buf, const char *config_field) + free(to_find); + + if (start) { +- char *end = strchr(start, '\n'); ++ const char *end = strchr(start, '\n'); + if (end) + return strndup(start, end - start); + } +-- +2.47.3 + |
