Signed-off-by: Yann Diorcet <[email protected]>
---
grub-core/Makefile.core.def | 9 ++++++++-
grub-core/lib/base64.c | 21 +++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)
create mode 100644 grub-core/lib/base64.c
diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def
index 9a5a88884..4daa5689e 100644
--- a/grub-core/Makefile.core.def
+++ b/grub-core/Makefile.core.def
@@ -1215,6 +1215,14 @@ module = {
common = lib/json/json.c;
};
+module = {
+ name = base64;
+ common = lib/gnulib/base64.c;
+ common = lib/base64.c;
+ cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
+ cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB)';
+};
+
module = {
name = afsplitter;
common = disk/AFSplitter.c;
@@ -1228,7 +1236,6 @@ module = {
module = {
name = luks2;
common = disk/luks2.c;
- common = lib/gnulib/base64.c;
cflags = '$(CFLAGS_POSIX) $(CFLAGS_GNULIB)';
cppflags = '$(CPPFLAGS_POSIX) $(CPPFLAGS_GNULIB) -I$(srcdir)/lib/json';
};
diff --git a/grub-core/lib/base64.c b/grub-core/lib/base64.c
new file mode 100644
index 000000000..b12668fad
--- /dev/null
+++ b/grub-core/lib/base64.c
@@ -0,0 +1,21 @@
+/*
+ * GRUB -- GRand Unified Bootloader
+ * Copyright (C) 2024 Free Software Foundation, Inc.
+ *
+ * GRUB is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * GRUB is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <grub/dl.h>
+
+GRUB_MOD_LICENSE ("GPLv2+");
\ No newline at end of file
--
2.39.5
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel