uboot-lantiq: fix build error on mac os x
authorFelix Fietkau <nbd@nbd.name>
Tue, 4 Apr 2017 10:33:03 +0000 (12:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 4 Apr 2017 10:33:34 +0000 (12:33 +0200)
asm/* includes are not safe for the host build

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/boot/uboot-lantiq/patches/100-portability.patch [new file with mode: 0644]

diff --git a/package/boot/uboot-lantiq/patches/100-portability.patch b/package/boot/uboot-lantiq/patches/100-portability.patch
new file mode 100644 (file)
index 0000000..4539e3e
--- /dev/null
@@ -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 */