aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-04-04 12:33:03 +0200
committerFelix Fietkau <nbd@nbd.name>2017-04-04 12:33:34 +0200
commit2526d150dc836b79caf4976413780bd77fc88c0a (patch)
treee43ef5b8a80ae47526fcccdfc4ef4863d9651cbd /package/boot
parentcffeb31107e27a48ddaf4953590acdefc66f2de9 (diff)
downloadupstream-2526d150dc836b79caf4976413780bd77fc88c0a.tar.gz
upstream-2526d150dc836b79caf4976413780bd77fc88c0a.tar.bz2
upstream-2526d150dc836b79caf4976413780bd77fc88c0a.zip
uboot-lantiq: fix build error on mac os x
asm/* includes are not safe for the host build Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-lantiq/patches/100-portability.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/boot/uboot-lantiq/patches/100-portability.patch b/package/boot/uboot-lantiq/patches/100-portability.patch
new file mode 100644
index 0000000000..4539e3e887
--- /dev/null
+++ b/package/boot/uboot-lantiq/patches/100-portability.patch
@@ -0,0 +1,18 @@
+--- a/include/image.h
++++ b/include/image.h
+@@ -17,7 +17,6 @@
+ #define __IMAGE_H__
+
+ #include "compiler.h"
+-#include <asm/byteorder.h>
+
+ /* Define this to avoid #ifdefs later on */
+ struct lmb;
+@@ -36,6 +35,7 @@ struct lmb;
+
+ #include <lmb.h>
+ #include <asm/u-boot.h>
++#include <asm/byteorder.h>
+ #include <command.h>
+
+ /* Take notice of the 'ignore' property for hashes */