lkml.org 
[lkml]   [2011]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH v3 1/6] of: Allow scripts/dtc/libfdt to be used from kernel code
    On 5.5.2011 19:02, David Daney wrote:
    > --- /dev/null
    > +++ b/drivers/of/libfdt/Makefile
    > @@ -0,0 +1,8 @@
    > +ccflags-y := -include linux/libfdt_env.h -I$(src)/../../../scripts/dtc/libfdt
    > +
    > +obj-y = fdt.o fdt_wip.o fdt_ro.o
    > +
    > +
    > +$(obj)/%.o: $(src)/../../../scripts/dtc/libfdt/%.c FORCE
    > + $(call cmd,force_checksrc)
    > + $(call if_changed_rule,cc_o_c)

    It's just three source files, so you could use three one-line wrappers
    that #include ../../../scripts/dtc/libfdt/<file>.c instead of copying
    the %.c -> %.o rule here.

    Michal


    \
     
     \ /
      Last update: 2011-05-06 12:59    [W:4.087 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site