[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110305220447.GB21728@merkur.ravnborg.org>
Date: Sat, 5 Mar 2011 23:04:47 +0100
From: Sam Ravnborg <sam@...nborg.org>
To: Grant Likely <grant.likely@...retlab.ca>
Cc: David Daney <ddaney@...iumnetworks.com>, linux-mips@...ux-mips.org,
ralf@...ux-mips.org, devicetree-discuss@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH v2 02/12] of: Allow scripts/dtc/libfdt to be used
from kernel code
>
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists