Source: kexec-tools
Version: 1:2.0.27-1
Severity: wishlist
Tags: ftbfs
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the kexec-tools failed for loong64 in the Debian Package
Auto-Building environment.
```
kexec/arch/loongarch/crashdump-loongarch.c:21:10: fatal error: iomem.h:
No such file or directory
21 | #include "iomem.h"
| ^~~~~~~~~
compilation terminated.
```
The full log can be found at
https://buildd.debian.org/status/logs.php?pkg=kexec-tools&ver=1%3A2.0.27-1&arch=loong64.
After investigation, we have confirmed that upstream 2.0.27 version is
missing the kexec/arch/loongarch/iomem.h header file.
This issue has been fixed in upstream 2.0.28 version, please get from
https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/kexec-tools-2.0.28.tar.gz.
There are two options for reference.
1.Please consider the patch I have attached.
Apply the attached patch, the kexec-tools 1:2.0.27-1 package was
compiled successfully on my local loong64 rootfs environment.
2.Please update to New upstream 2.0.28 release.
Could you fix the loong64 compilation error in the next upload?
Your suggestions are welcome.
Thanks,
Dandan Zhang
--- kexec-tools-2.0.27.orig/kexec/arch/loongarch/Makefile
+++ kexec-tools-2.0.27/kexec/arch/loongarch/Makefile
@@ -18,5 +18,6 @@ loongarch_VIRT_TO_PHYS =
dist += kexec/arch/loongarch/Makefile $(loongarch_KEXEC_SRCS) \
kexec/arch/loongarch/kexec-loongarch.h \
kexec/arch/loongarch/image-header.h \
+ kexec/arch/loongarch/iomem.h \
kexec/arch/loongarch/crashdump-loongarch.h \
kexec/arch/loongarch/include/arch/options.h
--- /dev/null
+++ kexec-tools-2.0.27/kexec/arch/loongarch/iomem.h
@@ -0,0 +1,10 @@
+#ifndef IOMEM_H
+#define IOMEM_H
+
+#define SYSTEM_RAM "System RAM\n"
+#define KERNEL_CODE "Kernel code\n"
+#define KERNEL_DATA "Kernel data\n"
+#define CRASH_KERNEL "Crash kernel\n"
+#define IOMEM_RESERVED "Reserved\n"
+
+#endif