aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mkimage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-09 19:00:39 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-03-09 19:00:39 +0000
commitb94e25997fddaf9a23a33002583f7b445f219c59 (patch)
tree25b00068aee0c1dbc400a4252092859ed96cec02 /tools/mkimage
parent947ebaae8cec91a8518e858a9b005cf1d7a9f1a5 (diff)
downloadmaster-187ad058-b94e25997fddaf9a23a33002583f7b445f219c59.tar.gz
master-187ad058-b94e25997fddaf9a23a33002583f7b445f219c59.tar.bz2
master-187ad058-b94e25997fddaf9a23a33002583f7b445f219c59.zip
mkimage: unbreak build on non-linux systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35909 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mkimage')
-rw-r--r--tools/mkimage/patches/050-image_h_portability.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/mkimage/patches/050-image_h_portability.patch b/tools/mkimage/patches/050-image_h_portability.patch
new file mode 100644
index 0000000000..1f222370bc
--- /dev/null
+++ b/tools/mkimage/patches/050-image_h_portability.patch
@@ -0,0 +1,31 @@
+--- a/include/image.h
++++ b/include/image.h
+@@ -34,7 +34,6 @@
+ #define __IMAGE_H__
+
+ #include "compiler.h"
+-#include <asm/byteorder.h>
+
+ #ifdef USE_HOSTCC
+
+@@ -191,13 +190,13 @@
+ * all data in network byte order (aka natural aka bigendian).
+ */
+ typedef struct image_header {
+- __be32 ih_magic; /* Image Header Magic Number */
+- __be32 ih_hcrc; /* Image Header CRC Checksum */
+- __be32 ih_time; /* Image Creation Timestamp */
+- __be32 ih_size; /* Image Data Size */
+- __be32 ih_load; /* Data Load Address */
+- __be32 ih_ep; /* Entry Point Address */
+- __be32 ih_dcrc; /* Image Data CRC Checksum */
++ uint32_t ih_magic; /* Image Header Magic Number */
++ uint32_t ih_hcrc; /* Image Header CRC Checksum */
++ uint32_t ih_time; /* Image Creation Timestamp */
++ uint32_t ih_size; /* Image Data Size */
++ uint32_t ih_load; /* Data Load Address */
++ uint32_t ih_ep; /* Entry Point Address */
++ uint32_t ih_dcrc; /* Image Data CRC Checksum */
+ uint8_t ih_os; /* Operating System */
+ uint8_t ih_arch; /* CPU architecture */
+ uint8_t ih_type; /* Image Type */