diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2009-09-26 00:07:10 +0200 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2009-09-26 00:09:23 +0200 |
commit | 1c1c4a18003cc8cc830262502dd96f5e1304ca57 (patch) | |
tree | 980839fe3a9ca062b02e75517d0697c802c286b9 /recipes/kexec/files/fix-arm-arch-detection.patch | |
parent | 90b241080260feb309bfa78947174b255076a440 (diff) |
kexec-tools_2.0.1: fix insane arch detection [arm], bump pref and PR
Diffstat (limited to 'recipes/kexec/files/fix-arm-arch-detection.patch')
-rw-r--r-- | recipes/kexec/files/fix-arm-arch-detection.patch | 21 |
1 files changed, 21 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..a3676983b5 --- /dev/null +++ b/recipes/kexec/files/fix-arm-arch-detection.patch @@ -0,0 +1,21 @@ +--- kexec-tools/kexec/phys_arch.c.old 2008-07-15 02:46:43.000000000 +0200 ++++ kexec-tools/kexec/phys_arch.c 2009-09-25 23:46:04.000000000 +0200 +@@ -13,9 +13,16 @@ + 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 ((arches[i].machine == "arm") && (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); |