diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-25 15:04:29 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-04-25 15:04:29 +0200 |
commit | a2a6cb6a0becb9f8a57be329caa45b5c90bb47fc (patch) | |
tree | 6c8a4396e9fb69f9807146fb8e73de60a2bed081 /toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch | |
parent | dab15eb397b7c9a2dd0769dc64bd730a0687f1cc (diff) | |
parent | e89c3d38f337e5c6c33458083cecf5146600b52b (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch')
-rw-r--r-- | toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch b/toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch new file mode 100644 index 000000000..d4e815cd2 --- /dev/null +++ b/toolchain/kernel-headers/patches/3.4.41/mkpiggy.patch @@ -0,0 +1,28 @@ +diff -Nur linux-3.4.4.orig/arch/x86/boot/compressed/mkpiggy.c linux-3.4.4/arch/x86/boot/compressed/mkpiggy.c +--- linux-3.4.4.orig/arch/x86/boot/compressed/mkpiggy.c 2012-06-22 20:37:50.000000000 +0200 ++++ linux-3.4.4/arch/x86/boot/compressed/mkpiggy.c 2012-07-03 09:48:02.000000000 +0200 +@@ -29,7 +29,14 @@ + #include <stdio.h> + #include <string.h> + #include <inttypes.h> +-#include <tools/le_byteshift.h> ++ ++static uint32_t getle32(const void *p) ++{ ++ const uint8_t *cp = p; ++ ++ return (uint32_t)cp[0] + ((uint32_t)cp[1] << 8) + ++ ((uint32_t)cp[2] << 16) + ((uint32_t)cp[3] << 24); ++} + + int main(int argc, char *argv[]) + { +@@ -62,7 +69,7 @@ + } + + ilen = ftell(f); +- olen = get_unaligned_le32(&olen); ++ olen = getle32(&olen); + fclose(f); + + /* |