[PATCH 1/4] initial libfdt support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Oct 18 10:39:46 EDT 2011


On 13:56 Tue 18 Oct     , Sascha Hauer wrote:
> vanilla libfdt 1.3.0 from the dtc git:
> 
> git://git.jdl.com/software/dtc.git
> 
> Only small adjustments to compile with barebox
we the previous one hust this patch would have allow to compile in Barebox
IIRC
    libfdt: use linux/types.h for uintptr_t

    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 include/libfdt_env.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/include/libfdt_env.h b/include/libfdt_env.h
index 449bf60..e83aa96 100644
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -1,8 +1,7 @@
 #ifndef _LIBFDT_ENV_H
 #define _LIBFDT_ENV_H

-#include <stddef.h>
-#include <stdint.h>
+#include <linux/types.h>
 #include <string.h>

 #define _B(n)  ((unsigned long long)((uint8_t *)&x)[n])

Best Regards,
J.



More information about the barebox mailing list