HI Simon 2011/10/11 Simon Glass <s...@chromium.org>: > This adds basic files for the sandbox board. The lds file is very simple > since we can rely mostly on the linker defaults. > > Signed-off-by: Simon Glass <s...@chromium.org> > --- > Changes in v5: > - Simplify the declaration of gd_t in sandbox's board.c > > board/sandbox/sandbox/Makefile | 42 +++++++++++++++++++++++++++++++++ > board/sandbox/sandbox/sandbox.c | 49 > +++++++++++++++++++++++++++++++++++++++ > boards.cfg | 1 + > 3 files changed, 92 insertions(+), 0 deletions(-) > create mode 100644 board/sandbox/sandbox/Makefile
> > +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)) Please checkout if this help http://www.mail-archive.com/u-boot@lists.denx.de/msg59966.html Thanks. -- Best regards, Macpaul Lin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot