uboot-tools: backport patch fixing build failure with libfdt-devel installed
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 8 Mar 2018 09:58:46 +0000 (10:58 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 10 Mar 2018 22:50:58 +0000 (23:50 +0100)
commit1cbfc94c5a0ac4120925aa8c7337eb7957dc4678
treefc36283ebb8374d8147aa63d2aa6874616b8d175
parentbf733342324b414a1142b57781504111f81c97ea
uboot-tools: backport patch fixing build failure with libfdt-devel installed

U-Boot host programs fail to build when libfdt-devel is installed
system-wide, with errors like this:

      HOSTCC  tools/aisimage.o
    In file included from tools/../include/../lib/libfdt/libfdt.h:10:0,
                     from tools/../include/libfdt.h:1,
                     from tools/fdt_host.h:11,
                     from tools/imagetool.h:24,
                     from tools/aisimage.c:8:
    /usr/include/libfdt_env.h:70:30: error: conflicting types for ‘fdt64_t’
     typedef uint64_t FDT_BITWISE fdt64_t;
                                  ^~~~~~~
    In file included from <command-line>:0:0:
    ././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here
     typedef __be64 fdt64_t;
                    ^~~~~~~
    In file included from ././include/libfdt_env.h:12:0,
                     from <command-line>:0:
    /usr/include/libfdt_env.h:90:24: error: expected ‘)’ before ‘x’
     static inline uint32_t fdt32_to_cpu(fdt32_t x)
                            ^
This commit backports an upstream patch that fixes this problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/uboot-tools/0004-tools-Include-U-Boot-libfdt-headers-from-their-actua.patch [new file with mode: 0644]