summaryrefslogtreecommitdiffstats
path: root/package/busybox/1.21.0/busybox-1.21.0-platform.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-04-22 11:47:46 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2013-04-23 08:59:23 +0200
commit246d12b5b49c045b6c74ea18ebb53778692a7e3f (patch)
tree1280dd845a4db7ef5399162297e325139d996a79 /package/busybox/1.21.0/busybox-1.21.0-platform.patch
parentbd528977f1dbe232bd1ca2a0bd9a37f9172d579a (diff)
downloadbuildroot-novena-246d12b5b49c045b6c74ea18ebb53778692a7e3f.tar.gz
buildroot-novena-246d12b5b49c045b6c74ea18ebb53778692a7e3f.zip
busybox: move patches to new model
On commit 5538e4766201aa0c1c23721cfc99cbbde595964b the versioned package patches changed the directory structure but the packages weren't fixed. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/1.21.0/busybox-1.21.0-platform.patch')
-rw-r--r--package/busybox/1.21.0/busybox-1.21.0-platform.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/busybox/1.21.0/busybox-1.21.0-platform.patch b/package/busybox/1.21.0/busybox-1.21.0-platform.patch
new file mode 100644
index 000000000..9be6cb8f2
--- /dev/null
+++ b/package/busybox/1.21.0/busybox-1.21.0-platform.patch
@@ -0,0 +1,24 @@
+--- busybox-1.21.0/archival/libarchive/decompress_unxz.c
++++ busybox-1.21.0-platform/archival/libarchive/decompress_unxz.c
+@@ -30,8 +30,8 @@ static uint32_t xz_crc32(const uint8_t *
+ /* We use arch-optimized unaligned accessors */
+ #define get_unaligned_le32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_LE32(v); })
+ #define get_unaligned_be32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); SWAP_BE32(v); })
+-#define put_unaligned_le32(val, buf) move_to_unaligned16(buf, SWAP_LE32(val))
+-#define put_unaligned_be32(val, buf) move_to_unaligned16(buf, SWAP_BE32(val))
++#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val))
++#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val))
+
+ #include "unxz/xz_dec_bcj.c"
+ #include "unxz/xz_dec_lzma2.c"
+--- busybox-1.21.0/include/platform.h
++++ busybox-1.21.0-platform/include/platform.h
+@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI
+ # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
+ # define move_to_unaligned16(u16p, v) do { \
+ uint16_t __t = (v); \
+- memcpy((u16p), &__t, 4); \
++ memcpy((u16p), &__t, 2); \
+ } while (0)
+ # define move_to_unaligned32(u32p, v) do { \
+ uint32_t __t = (v); \