Commit 805ac6aacf8f9c3e912ebc8d9273e78d738c109d

Authored by Maxime Ripard
Committed by Tom Rini
1 parent f272f1fcd9

libfdt: Add new headers and defines

The libfdt overlay support introduces a bunch of new includes and
functions.

Make sure we are able to build it by adding the needed glue.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

include/libfdt_env.h
... ... @@ -23,6 +23,12 @@
23 23 #define fdt64_to_cpu(x) be64_to_cpu(x)
24 24 #define cpu_to_fdt64(x) cpu_to_be64(x)
25 25  
  26 +#ifdef __UBOOT__
  27 +#include <vsprintf.h>
  28 +
  29 +#define strtoul(cp, endp, base) simple_strtoul(cp, endp, base)
  30 +#endif
  31 +
26 32 /* adding a ramdisk needs 0x44 bytes in version 2008.10 */
27 33 #define FDT_RAMDISK_OVERHEAD 0x80
28 34