]> git.sur5r.net Git - u-boot/blobdiff - tools/fdtgrep.c
Merge git://git.denx.de/u-boot-socfpga
[u-boot] / tools / fdtgrep.c
index 5897b6d5f78072f7b8d189b3af5ac49e433f88e5..f2b8b71ed743478be80cb91375a7670c7f6e38d9 100644 (file)
@@ -1,22 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2013, Google Inc.
  * Written by Simon Glass <sjg@chromium.org>
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  * Perform a grep of an FDT either displaying the source subset or producing
  * a new .dtb subset which can be used as required.
  */
 
 #include <assert.h>
 #include <ctype.h>
+#include <errno.h>
 #include <getopt.h>
+#include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
-#include "../include/libfdt.h"
+#include "fdt_host.h"
 #include "libfdt_internal.h"
 
 /* Define DEBUG to get some debugging output on stderr */