[PATCH] dtc: Use quotes to include header files
From: Rob Herring <hidden>
Date: 2015-01-29 16:30:33
Also in:
linux-devicetree, lkml
From: Rob Herring <hidden>
Date: 2015-01-29 16:30:33
Also in:
linux-devicetree, lkml
On Thu, Jan 29, 2015 at 9:56 AM, Grant Likely [off-list ref] wrote:
On Tue, 16 Dec 2014 15:13:24 +1300 , Chris Packham [off-list ref] wrote:quoted
Currently in arch and driver code that needs early access to the flattened device tree it is necessary to add specific CFLAGS so that when scripts/dtc/libfdt/libfdt.h is included the C preprocessor is able to locate the libfdt versions of libfdt_env.h and fdt.h without generating an error.
[...]
quoted
diff --git a/scripts/dtc/libfdt/libfdt.h b/scripts/dtc/libfdt/libfdt.h index 73f4975..ea1ddcd 100644 --- a/scripts/dtc/libfdt/libfdt.h +++ b/scripts/dtc/libfdt/libfdt.h@@ -51,8 +51,8 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <libfdt_env.h> -#include <fdt.h> +#include "libfdt_env.h" +#include "fdt.h"Until this is resolved with upstream DTC, what about adding dummy libfdt.h, libfdt_env.h and fdt.h to include/linux? That would get this out of the blocker path for merging this code.
2 of those already exist. Is it only a matter of adding fdt.h or is there more to it? This could also be carried as part of the import script to fix up. Rob