]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/libfdt_env.h
dfu: Fix up the Kconfig mess
[people/ms/u-boot.git] / include / libfdt_env.h
index 6c7785254074ddc063f740ac5fe32b6f416af1a4..d7e9d3286354070b6c9501bce9ad88ac495c271b 100644 (file)
@@ -1,16 +1,5 @@
-#ifndef _LIBFDT_ENV_H
-#define _LIBFDT_ENV_H
-
-#include <stddef.h>
-#include <linux/types.h>
-#include <asm/byteorder.h>
-#include <linux/string.h>
-
-struct fdt_header *fdt;         /* Pointer to the working fdt */
-
-#define fdt32_to_cpu(x)                __be32_to_cpu(x)
-#define cpu_to_fdt32(x)                __cpu_to_be32(x)
-#define fdt64_to_cpu(x)                __be64_to_cpu(x)
-#define cpu_to_fdt64(x)                __cpu_to_be64(x)
-
-#endif /* _LIBFDT_ENV_H */
+#ifdef USE_HOSTCC
+#include "../scripts/dtc/libfdt/libfdt_env.h"
+#else
+#include <linux/libfdt_env.h>
+#endif