summaryrefslogtreecommitdiff
path: root/recipes/kexec/files/fix-arm-arch-detection.patch
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2009-10-13 17:30:38 +0400
committerSergey Lapin <slapin@ossfans.org>2009-10-13 17:30:38 +0400
commitc9d89f888ec69245c56358b454f37cffd8bb87ac (patch)
tree10d3aefa0fc1c74baeccbc456ce16e0d42816f17 /recipes/kexec/files/fix-arm-arch-detection.patch
parent43653cf44fc541bd55cb094392444a7faa7bb3be (diff)
parent925dea6086bd5f7479eda0226f32bcd46ba025a1 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/kexec/files/fix-arm-arch-detection.patch')
-rw-r--r--recipes/kexec/files/fix-arm-arch-detection.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/kexec/files/fix-arm-arch-detection.patch b/recipes/kexec/files/fix-arm-arch-detection.patch
new file mode 100644
index 0000000000..6116c5bb84
--- /dev/null
+++ b/recipes/kexec/files/fix-arm-arch-detection.patch
@@ -0,0 +1,17 @@
+--- kexec-tools/kexec/phys_arch.c.old 2008-07-15 02:46:43.000000000 +0200
++++ kexec-tools/kexec/phys_arch.c 2009-10-04 23:58:04.000000000 +0200
+@@ -13,9 +13,12 @@
+ return -1;
+ }
+
+- for (i = 0; arches[i].machine; ++i)
+- if (strcmp(utsname.machine, arches[i].machine) == 0)
++ 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);