summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch')
-rw-r--r--meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch54
1 files changed, 38 insertions, 16 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch b/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch
index 92b5631f78..b03f582576 100644
--- a/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch
+++ b/meta/recipes-kernel/kexec/kexec-tools/kexec-aarch64.patch
@@ -29,9 +29,11 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
29 purgatory/arch/arm64/Makefile | 7 29 purgatory/arch/arm64/Makefile | 7
30 11 files changed, 675 insertions(+), 2 deletions(-) 30 11 files changed, 675 insertions(+), 2 deletions(-)
31 31
32--- a/configure.ac 32Index: kexec-tools-2.0.10/configure.ac
33+++ b/configure.ac 33===================================================================
34@@ -35,6 +35,9 @@ case $target_cpu in 34--- kexec-tools-2.0.10.orig/configure.ac
35+++ kexec-tools-2.0.10/configure.ac
36@@ -36,6 +36,9 @@ case $target_cpu in
35 ARCH="ppc64" 37 ARCH="ppc64"
36 SUBARCH="LE" 38 SUBARCH="LE"
37 ;; 39 ;;
@@ -41,8 +43,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
41 arm* ) 43 arm* )
42 ARCH="arm" 44 ARCH="arm"
43 ;; 45 ;;
44--- a/kexec/Makefile 46Index: kexec-tools-2.0.10/kexec/Makefile
45+++ b/kexec/Makefile 47===================================================================
48--- kexec-tools-2.0.10.orig/kexec/Makefile
49+++ kexec-tools-2.0.10/kexec/Makefile
46@@ -71,6 +71,7 @@ KEXEC_SRCS += $($(ARCH)_FS2DT) 50@@ -71,6 +71,7 @@ KEXEC_SRCS += $($(ARCH)_FS2DT)
47 51
48 include $(srcdir)/kexec/arch/alpha/Makefile 52 include $(srcdir)/kexec/arch/alpha/Makefile
@@ -51,8 +55,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
51 include $(srcdir)/kexec/arch/i386/Makefile 55 include $(srcdir)/kexec/arch/i386/Makefile
52 include $(srcdir)/kexec/arch/ia64/Makefile 56 include $(srcdir)/kexec/arch/ia64/Makefile
53 include $(srcdir)/kexec/arch/m68k/Makefile 57 include $(srcdir)/kexec/arch/m68k/Makefile
58Index: kexec-tools-2.0.10/kexec/arch/arm64/Makefile
59===================================================================
54--- /dev/null 60--- /dev/null
55+++ b/kexec/arch/arm64/Makefile 61+++ kexec-tools-2.0.10/kexec/arch/arm64/Makefile
56@@ -0,0 +1,13 @@ 62@@ -0,0 +1,13 @@
57+ 63+
58+arm64_KEXEC_SRCS += \ 64+arm64_KEXEC_SRCS += \
@@ -67,8 +73,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
67+dist += $(arm64_KEXEC_SRCS) \ 73+dist += $(arm64_KEXEC_SRCS) \
68+ kexec/arch/arm64/Makefile \ 74+ kexec/arch/arm64/Makefile \
69+ kexec/arch/arm64/kexec-arm64.h 75+ kexec/arch/arm64/kexec-arm64.h
76Index: kexec-tools-2.0.10/kexec/arch/arm64/crashdump-arm64.c
77===================================================================
70--- /dev/null 78--- /dev/null
71+++ b/kexec/arch/arm64/crashdump-arm64.c 79+++ kexec-tools-2.0.10/kexec/arch/arm64/crashdump-arm64.c
72@@ -0,0 +1,305 @@ 80@@ -0,0 +1,305 @@
73+/* 81+/*
74+ * This program is free software; you can redistribute it and/or modify 82+ * This program is free software; you can redistribute it and/or modify
@@ -375,8 +383,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
375+ 383+
376+#endif 384+#endif
377+ 385+
386Index: kexec-tools-2.0.10/kexec/arch/arm64/include/arch/options.h
387===================================================================
378--- /dev/null 388--- /dev/null
379+++ b/kexec/arch/arm64/include/arch/options.h 389+++ kexec-tools-2.0.10/kexec/arch/arm64/include/arch/options.h
380@@ -0,0 +1,26 @@ 390@@ -0,0 +1,26 @@
381+#ifndef KEXEC_ARCH_ARM64_OPTIONS_H 391+#ifndef KEXEC_ARCH_ARM64_OPTIONS_H
382+#define KEXEC_ARCH_ARM64_OPTIONS_H 392+#define KEXEC_ARCH_ARM64_OPTIONS_H
@@ -404,8 +414,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
404+#define KEXEC_ALL_OPT_STR KEXEC_ARCH_OPT_STR 414+#define KEXEC_ALL_OPT_STR KEXEC_ARCH_OPT_STR
405+ 415+
406+#endif /* KEXEC_ARCH_ARM64_OPTIONS_H */ 416+#endif /* KEXEC_ARCH_ARM64_OPTIONS_H */
417Index: kexec-tools-2.0.10/kexec/arch/arm64/kexec-arm64.c
418===================================================================
407--- /dev/null 419--- /dev/null
408+++ b/kexec/arch/arm64/kexec-arm64.c 420+++ kexec-tools-2.0.10/kexec/arch/arm64/kexec-arm64.c
409@@ -0,0 +1,177 @@ 421@@ -0,0 +1,177 @@
410+/* 422+/*
411+ * ARM64 kexec support. 423+ * ARM64 kexec support.
@@ -584,8 +596,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
584+ (void)value; 596+ (void)value;
585+ fprintf(stderr, "%s:%d: do\n", __func__, __LINE__); 597+ fprintf(stderr, "%s:%d: do\n", __func__, __LINE__);
586+} 598+}
599Index: kexec-tools-2.0.10/kexec/arch/arm64/kexec-arm64.h
600===================================================================
587--- /dev/null 601--- /dev/null
588+++ b/kexec/arch/arm64/kexec-arm64.h 602+++ kexec-tools-2.0.10/kexec/arch/arm64/kexec-arm64.h
589@@ -0,0 +1,20 @@ 603@@ -0,0 +1,20 @@
590+/* 604+/*
591+ * ARM64 kexec support. 605+ * ARM64 kexec support.
@@ -608,8 +622,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
608+ 622+
609+#endif 623+#endif
610\ No newline at end of file 624\ No newline at end of file
625Index: kexec-tools-2.0.10/kexec/arch/arm64/kexec-elf-arm64.c
626===================================================================
611--- /dev/null 627--- /dev/null
612+++ b/kexec/arch/arm64/kexec-elf-arm64.c 628+++ kexec-tools-2.0.10/kexec/arch/arm64/kexec-elf-arm64.c
613@@ -0,0 +1,114 @@ 629@@ -0,0 +1,114 @@
614+/* 630+/*
615+ * ARM64 kexec support. 631+ * ARM64 kexec support.
@@ -725,8 +741,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
725+ fprintf(stderr, "%s:%d: ->\n", __func__, __LINE__); 741+ fprintf(stderr, "%s:%d: ->\n", __func__, __LINE__);
726+ fprintf(stderr, "%s:%d: <-\n", __func__, __LINE__); 742+ fprintf(stderr, "%s:%d: <-\n", __func__, __LINE__);
727+} 743+}
728--- a/kexec/kexec-syscall.h 744Index: kexec-tools-2.0.10/kexec/kexec-syscall.h
729+++ b/kexec/kexec-syscall.h 745===================================================================
746--- kexec-tools-2.0.10.orig/kexec/kexec-syscall.h
747+++ kexec-tools-2.0.10/kexec/kexec-syscall.h
730@@ -39,8 +39,8 @@ 748@@ -39,8 +39,8 @@
731 #ifdef __s390__ 749 #ifdef __s390__
732 #define __NR_kexec_load 277 750 #define __NR_kexec_load 277
@@ -756,8 +774,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
756+#endif 774+#endif
757 775
758 #endif /* KEXEC_SYSCALL_H */ 776 #endif /* KEXEC_SYSCALL_H */
759--- a/kexec/kexec.c 777Index: kexec-tools-2.0.10/kexec/kexec.c
760+++ b/kexec/kexec.c 778===================================================================
779--- kexec-tools-2.0.10.orig/kexec/kexec.c
780+++ kexec-tools-2.0.10/kexec/kexec.c
761@@ -664,6 +664,8 @@ static int my_load(const char *type, int 781@@ -664,6 +664,8 @@ static int my_load(const char *type, int
762 memset(&info, 0, sizeof(info)); 782 memset(&info, 0, sizeof(info));
763 info.kexec_flags = kexec_flags; 783 info.kexec_flags = kexec_flags;
@@ -767,8 +787,10 @@ Signed-off-by: Kai Kang <kai.kang@windriver.com>
767 result = 0; 787 result = 0;
768 if (argc - fileind <= 0) { 788 if (argc - fileind <= 0) {
769 fprintf(stderr, "No kernel specified\n"); 789 fprintf(stderr, "No kernel specified\n");
790Index: kexec-tools-2.0.10/purgatory/arch/arm64/Makefile
791===================================================================
770--- /dev/null 792--- /dev/null
771+++ b/purgatory/arch/arm64/Makefile 793+++ kexec-tools-2.0.10/purgatory/arch/arm64/Makefile
772@@ -0,0 +1,7 @@ 794@@ -0,0 +1,7 @@
773+# 795+#
774+# Purgatory arm64 796+# Purgatory arm64