lkml.org 
[lkml]   [2011]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v4 1/6] of: Allow scripts/dtc/libfdt to be used from kernel code
On Fri, May 20, 2011 at 03:25:38PM -0700, David Daney wrote:
> To use it you need to do this in your Kconfig:
>
> select LIBFDT
>
> And in the Makefile of the code using libfdt something like:
>
> ccflags-y := -include linux/libfdt_env.h -I$(src)/../../../scripts/dtc/libfdt
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>
> ---
> drivers/of/Kconfig | 3 +++
> drivers/of/Makefile | 2 ++
> drivers/of/libfdt/Makefile | 3 +++
> drivers/of/libfdt/fdt.c | 2 ++
> drivers/of/libfdt/fdt_ro.c | 2 ++
> drivers/of/libfdt/fdt_wip.c | 2 ++

No fdt_sw.c or fdt_rw.c?

> include/linux/libfdt.h | 8 ++++++++
> include/linux/libfdt_env.h | 13 +++++++++++++
> 8 files changed, 35 insertions(+), 0 deletions(-)
> create mode 100644 drivers/of/libfdt/Makefile
> create mode 100644 drivers/of/libfdt/fdt.c
> create mode 100644 drivers/of/libfdt/fdt_ro.c

--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson

\
 
 \ /
  Last update: 2011-05-21 09:45    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site