Do not attempt to use the systemwide libfdt
authorJan Kundrát <jan.kundrat@cesnet.cz>
Fri, 3 Nov 2017 02:06:35 +0000 (03:06 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 6 Nov 2017 14:59:02 +0000 (09:59 -0500)
U-Boot bundles a patched copy of libfdt, so it's wrong to attempt to
include it <like/this>. This breaks the build for me when I have dtc
fully installed in my host -- as happened earlier tonight with
Buildroot, for example.

There are several other occurrences throughout the code where '<libfdt'
matches. I'm not modifying these because I have no clue why the
<systemwide> include style is being used -- IMHO wrongly.

Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
include/fdt.h
include/libfdt.h
tools/fdtgrep.c

index 7ead62e7771561402c45e197e8ea53276568d7fb..f40b56c7554546be9bb4363c1b255d0166eff2a7 100644 (file)
@@ -1 +1 @@
-#include <../lib/libfdt/fdt.h>
+#include "../lib/libfdt/fdt.h"
index 10296a21addf36e6466c636ee30d71da7fd407a5..7ba13e634b654b2023d5bdb75b7ac927f24857f0 100644 (file)
@@ -1 +1 @@
-#include <../lib/libfdt/libfdt.h>
+#include "../lib/libfdt/libfdt.h"
index f51f5f15f5497e063158d81efa34c8bbd11eaa2a..5897b6d5f78072f7b8d189b3af5ac49e433f88e5 100644 (file)
@@ -16,8 +16,8 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <../include/libfdt.h>
-#include <libfdt_internal.h>
+#include "../include/libfdt.h"
+#include "libfdt_internal.h"
 
 /* Define DEBUG to get some debugging output on stderr */
 #ifdef DEBUG