Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520Ab1EUHmD (ORCPT ); Sat, 21 May 2011 03:42:03 -0400 Received: from ozlabs.org ([203.10.76.45]:58597 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752264Ab1EUHmB (ORCPT ); Sat, 21 May 2011 03:42:01 -0400 Date: Sat, 21 May 2011 16:33:45 +1000 From: David Gibson To: David Daney Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, devicetree-discuss@lists.ozlabs.org, grant.likely@secretlab.ca, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v4 1/6] of: Allow scripts/dtc/libfdt to be used from kernel code Message-ID: <20110521063345.GB14828@yookeroo.fritz.box> Mail-Followup-To: David Gibson , David Daney , linux-mips@linux-mips.org, ralf@linux-mips.org, devicetree-discuss@lists.ozlabs.org, grant.likely@secretlab.ca, linux-kernel@vger.kernel.org References: <1305930343-31259-1-git-send-email-ddaney@caviumnetworks.com> <1305930343-31259-2-git-send-email-ddaney@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1305930343-31259-2-git-send-email-ddaney@caviumnetworks.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1351 Lines: 37 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 > --- > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/