1 |
commit: fdbdbf3786a1cf21010c4fc14b6aeb7b8c24a4c8 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 3 18:49:52 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 3 19:01:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdbdbf37 |
7 |
|
8 |
sys-apps/kexec-tools: build multiboot2 for i386 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/705314 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
...ec-tools-2.0.20-build-multiboot2-for-i386.patch | 68 ++++++++++++++++++++++ |
15 |
sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild | 1 + |
16 |
2 files changed, 69 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.20-build-multiboot2-for-i386.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.20-build-multiboot2-for-i386.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..8f63ddbe3ba |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.20-build-multiboot2-for-i386.patch |
23 |
@@ -0,0 +1,68 @@ |
24 |
+From 2c9f26ed20a791a7df0182ba82e93abb52f5a615 Mon Sep 17 00:00:00 2001 |
25 |
+From: Chris Packham <chris.packham@××××××××××××××××.nz> |
26 |
+Date: Mon, 18 Nov 2019 12:52:15 +1300 |
27 |
+Subject: kexec: build multiboot2 for i386 |
28 |
+ |
29 |
+This addresses the following compilation issues when building for i386. |
30 |
+ |
31 |
+ kexec/arch/i386/kexec-x86.c:39:22: error: 'multiboot2_x86_probe' undeclared here (not in a function); did you mean 'multiboot_x86_probe'? |
32 |
+ { "multiboot2-x86", multiboot2_x86_probe, multiboot2_x86_load, |
33 |
+ ^~~~~~~~~~~~~~~~~~~~ |
34 |
+ multiboot_x86_probe |
35 |
+ kexec/arch/i386/kexec-x86.c:39:44: error: 'multiboot2_x86_load' undeclared here (not in a function); did you mean 'multiboot_x86_load'? |
36 |
+ { "multiboot2-x86", multiboot2_x86_probe, multiboot2_x86_load, |
37 |
+ ^~~~~~~~~~~~~~~~~~~ |
38 |
+ multiboot_x86_load |
39 |
+ kexec/arch/i386/kexec-x86.c:40:4: error: 'multiboot2_x86_usage' undeclared here (not in a function); did you mean 'multiboot_x86_usage'? |
40 |
+ multiboot2_x86_usage }, |
41 |
+ ^~~~~~~~~~~~~~~~~~~~ |
42 |
+ multiboot_x86_usage |
43 |
+ make: *** [Makefile:114: kexec/arch/i386/kexec-x86.o] Error 1 |
44 |
+ make: *** Waiting for unfinished jobs.... |
45 |
+ |
46 |
+Signed-off-by: Chris Packham <chris.packham@××××××××××××××××.nz> |
47 |
+Signed-off-by: Simon Horman <horms@×××××××××.au> |
48 |
+--- |
49 |
+ kexec/arch/i386/Makefile | 2 +- |
50 |
+ kexec/arch/i386/kexec-x86.h | 5 +++++ |
51 |
+ 2 files changed, 6 insertions(+), 1 deletion(-) |
52 |
+ |
53 |
+diff --git a/kexec/arch/i386/Makefile b/kexec/arch/i386/Makefile |
54 |
+index 105cefd..f486103 100644 |
55 |
+--- a/kexec/arch/i386/Makefile |
56 |
++++ b/kexec/arch/i386/Makefile |
57 |
+@@ -7,6 +7,7 @@ i386_KEXEC_SRCS += kexec/arch/i386/kexec-elf-x86.c |
58 |
+ i386_KEXEC_SRCS += kexec/arch/i386/kexec-elf-rel-x86.c |
59 |
+ i386_KEXEC_SRCS += kexec/arch/i386/kexec-bzImage.c |
60 |
+ i386_KEXEC_SRCS += kexec/arch/i386/kexec-multiboot-x86.c |
61 |
++i386_KEXEC_SRCS += kexec/arch/i386/kexec-mb2-x86.c |
62 |
+ i386_KEXEC_SRCS += kexec/arch/i386/kexec-beoboot-x86.c |
63 |
+ i386_KEXEC_SRCS += kexec/arch/i386/kexec-nbi.c |
64 |
+ i386_KEXEC_SRCS += kexec/arch/i386/x86-linux-setup.c |
65 |
+@@ -14,7 +15,6 @@ i386_KEXEC_SRCS += kexec/arch/i386/crashdump-x86.c |
66 |
+ |
67 |
+ dist += kexec/arch/i386/Makefile $(i386_KEXEC_SRCS) \ |
68 |
+ kexec/arch/i386/crashdump-x86.h \ |
69 |
+- kexec/arch/i386/kexec-mb2-x86.c \ |
70 |
+ kexec/arch/i386/kexec-x86.h \ |
71 |
+ kexec/arch/i386/x86-linux-setup.h \ |
72 |
+ kexec/arch/i386/include/arch/options.h |
73 |
+diff --git a/kexec/arch/i386/kexec-x86.h b/kexec/arch/i386/kexec-x86.h |
74 |
+index 1b58c3b..0f941df 100644 |
75 |
+--- a/kexec/arch/i386/kexec-x86.h |
76 |
++++ b/kexec/arch/i386/kexec-x86.h |
77 |
+@@ -60,6 +60,11 @@ int multiboot_x86_load(int argc, char **argv, const char *buf, off_t len, |
78 |
+ struct kexec_info *info); |
79 |
+ void multiboot_x86_usage(void); |
80 |
+ |
81 |
++int multiboot2_x86_load(int argc, char **argv, const char *buf, off_t len, |
82 |
++ struct kexec_info *info); |
83 |
++void multiboot2_x86_usage(void); |
84 |
++int multiboot2_x86_probe(const char *buf, off_t buf_len); |
85 |
++ |
86 |
+ int elf_x86_probe(const char *buf, off_t len); |
87 |
+ int elf_x86_load(int argc, char **argv, const char *buf, off_t len, |
88 |
+ struct kexec_info *info); |
89 |
+-- |
90 |
+cgit 1.2-0.3.lf.el7 |
91 |
+ |
92 |
|
93 |
diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild |
94 |
index 7fd2e6f2679..85f71ffaf47 100644 |
95 |
--- a/sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild |
96 |
+++ b/sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild |
97 |
@@ -36,6 +36,7 @@ PATCHES=( |
98 |
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch |
99 |
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch |
100 |
"${FILESDIR}"/${P}-remove-duplicated-variable-declarations.patch |
101 |
+ "${FILESDIR}"/${P}-build-multiboot2-for-i386.patch |
102 |
) |
103 |
|
104 |
pkg_setup() { |