Re: [RFC PATCH v4 1/6] of: Allow scripts/dtc/libfdt to be used fromkernel code

From: David Daney
Date: Mon May 23 2011 - 12:48:01 EST


On 05/20/2011 11:33 PM, David Gibson wrote:
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@xxxxxxxxxxxxxxxxxx>
---
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?


I had no immediate need for them. They could of course be added, but that would potentially waste space.

Let's see if I can make it into an archive library.

David Daney

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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/