diff options
author | Thomas Nixon <tom@tomn.co.uk> | 2018-09-04 21:54:58 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-10-07 02:12:06 +0200 |
commit | 6b729e15637ab2ab34815e73c1e774c3469d7522 (patch) | |
tree | 8360669a3dbcc71df87853c2af07f29f62175f2f /package/boot/uboot-lantiq | |
parent | 43e71e04167db90c5ff7cf0b5ffdb2388217cbf3 (diff) | |
download | upstream-6b729e15637ab2ab34815e73c1e774c3469d7522.tar.gz upstream-6b729e15637ab2ab34815e73c1e774c3469d7522.tar.bz2 upstream-6b729e15637ab2ab34815e73c1e774c3469d7522.zip |
uboot-lantiq: fix compile with modern host dtc
In dtc version 1.4.6 the macro names in header include guards changed,
but the build relies on them matching in order to replace selected
headers. This is a horrible hack to work around this.
Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
Diffstat (limited to 'package/boot/uboot-lantiq')
-rw-r--r-- | package/boot/uboot-lantiq/patches/200-fix-dtc-header-guard.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/boot/uboot-lantiq/patches/200-fix-dtc-header-guard.patch b/package/boot/uboot-lantiq/patches/200-fix-dtc-header-guard.patch new file mode 100644 index 0000000000..88d914b1f5 --- /dev/null +++ b/package/boot/uboot-lantiq/patches/200-fix-dtc-header-guard.patch @@ -0,0 +1,19 @@ +--- a/include/libfdt_env.h ++++ b/include/libfdt_env.h +@@ -8,6 +8,7 @@ + + #ifndef _LIBFDT_ENV_H + #define _LIBFDT_ENV_H ++#define LIBFDT_ENV_H + + #include "compiler.h" + #include "linux/types.h" +--- a/include/libfdt.h ++++ b/include/libfdt.h +@@ -1,5 +1,6 @@ + #ifndef _LIBFDT_H + #define _LIBFDT_H ++#define LIBFDT_H + /* + * libfdt - Flat Device Tree manipulation + * Copyright (C) 2006 David Gibson, IBM Corporation. |