[U-Boot] [PATCH v6 07/20] sandbox: Add sandbox board

Mike Frysinger vapier at gentoo.org
Tue Oct 18 17:29:42 CEST 2011


On Tuesday 18 October 2011 04:43:09 馬克泡 wrote:
> 2011/10/11 Simon Glass :
> > +include $(TOPDIR)/config.mk
> > +
> > +LIB    = $(obj)lib$(BOARD).o
> > +
> > +COBJS  := $(BOARD).o
> > +
> > +SRCS   := $(COBJS:.o=.c)
> > +OBJS   := $(addprefix $(obj),$(COBJS))
> > +
> > +$(LIB):        $(obj).depend $(OBJS)
> > +       $(AR) $(ARFLAGS) $@ $(OBJS)
> 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> It has been suggested by Mike that you should use something like the
> following because $(AR) might broken.
> 
> $(LIB):        $(OBJS)
> $(call cmd_link_o_target, $(OBJS))

yeah i missed this chunk of Simon's patch (i caught some others in his 
patchset).  i've fixed this in my tree-wide $(AR) fixup, so Simon won't have to 
worry about posting an update.
-mike


More information about the U-Boot mailing list