Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449Ab1CEWEv (ORCPT ); Sat, 5 Mar 2011 17:04:51 -0500 Received: from pfepa.post.tele.dk ([195.41.46.235]:39824 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752197Ab1CEWEu (ORCPT ); Sat, 5 Mar 2011 17:04:50 -0500 Date: Sat, 5 Mar 2011 23:04:47 +0100 From: Sam Ravnborg To: Grant Likely Cc: David Daney , linux-mips@linux-mips.org, ralf@linux-mips.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 02/12] of: Allow scripts/dtc/libfdt to be used from kernel code Message-ID: <20110305220447.GB21728@merkur.ravnborg.org> References: <1299267744-17278-1-git-send-email-ddaney@caviumnetworks.com> <1299267744-17278-3-git-send-email-ddaney@caviumnetworks.com> <20110305005750.GC7579@angua.secretlab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110305005750.GC7579@angua.secretlab.ca> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 28 > > libfdt_env.h should be in include/linux > > > +#include "../../scripts/dtc/libfdt/fdt.h" > > +#include "../../scripts/dtc/libfdt/libfdt.h" > > Hmmm... I wonder if there is a better way to do this. I don't much > care for the relative path references. I assume: #include "scripts/dtc/libfdt/fdt.h" #include "scripts/dtc/libfdt/libfdt.h" works. Because working direcotry is root of kernel tree. But it is long time ago I played with this so my memory may foul me. Just noticed this... > > + > > +EXTRA_CFLAGS += -include $(src)/libfdt_env.h -I$(src)/../../scripts/dtc/libfdt "ccflags-y := ..." is recommended these days. Sam -- 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/