diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2009-12-15 00:04:02 +0100 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2009-12-15 00:11:25 +0100 |
commit | 3e031192d7a4128892c8ee7442e6abc1d1841426 (patch) | |
tree | 247292bf73e098c9fb96f9fc67f68995d29eadef /recipes/kexec-tools/files/fix-arm-arch-detection.patch | |
parent | 4f0df4d7ebfb16eace5986e117af3cdde43185a7 (diff) |
kexec: rename to kexec-tools (kexec and kdump)
Diffstat (limited to 'recipes/kexec-tools/files/fix-arm-arch-detection.patch')
-rw-r--r-- | recipes/kexec-tools/files/fix-arm-arch-detection.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes/kexec-tools/files/fix-arm-arch-detection.patch b/recipes/kexec-tools/files/fix-arm-arch-detection.patch new file mode 100644 index 0000000000..6116c5bb84 --- /dev/null +++ b/recipes/kexec-tools/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); |