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

馬克泡 macpaul at gmail.com
Tue Oct 18 10:43:09 CEST 2011


HI Simon

2011/10/11 Simon Glass <sjg at 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 <sjg at 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


More information about the U-Boot mailing list