lkml.org 
[lkml]   [2011]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2011-03-06 11:19    [W:4.063 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site