[source] uboot-lantiq: fix build error on mac os x
LEDE Commits
lede-commits at lists.infradead.org
Tue Apr 4 03:34:53 PDT 2017
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/2526d150dc836b79caf4976413780bd77fc88c0a
commit 2526d150dc836b79caf4976413780bd77fc88c0a
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Apr 4 12:33:03 2017 +0200
uboot-lantiq: fix build error on mac os x
asm/* includes are not safe for the host build
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
.../boot/uboot-lantiq/patches/100-portability.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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 0000000..4539e3e
--- /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 */
More information about the lede-commits
mailing list