kexec-tools_2.0.1: fix arm detection.
Subsystems (2)
PATCH 1/1 kexec-tools_2.0.1: fix arm detection.
Signed-off-by Andrea Adami <[email protected]>
---
kexec/phys_arch.c renamed from kexec/phys_arch.c.old +4 -1
@@ -13,9 +13,12 @@return -1 ; } -for (i =0 ; arches[i].machine; ++i) +for (i =0 ; arches[i].machine; ++i) { +if ((strcmp (arches[i].machine,"arm" ) ==0 ) && (strncmp (utsname.machine, arches[i].machine,3 ) ==0 )) +return arches[i].arch;if (strcmp (utsname.machine, arches[i].machine) ==0 )return arches[i].arch; + }fprintf (stderr,"Unsupported machine type: %s\n" , utsname.machine);
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec