[PATCH 1/1] kexec-tools_2.0.1: fix arm detection.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrea Adami <andrea.adami at gmail.com>
---
--- kexec-tools/kexec/phys_arch.c.old	2008-07-15 02:46:43.000000000 +0200
+++ kexec-tools/kexec/phys_arch.c	2009-10-04 00:44:50.000000000 +0200
@@ -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);



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux