Patchwork [U-Boot,v5,1/5] tegra2: Use cmd_link_o_target in board Makefiles

login
register
mail settings
Submitter Stephen Warren
Date Oct. 12, 2011, 5:52 p.m.
Message ID <1318441957-3312-1-git-send-email-swarren@nvidia.com>
Download mbox | patch
Permalink /patch/119264/
State Superseded
Headers show

Comments

Stephen Warren - Oct. 12, 2011, 5:52 p.m.
v5: New patch

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 board/nvidia/harmony/Makefile  |    2 +-
 board/nvidia/seaboard/Makefile |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Mike Frysinger - Oct. 12, 2011, 5:58 p.m.
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Simon Glass - Oct. 12, 2011, 9:05 p.m.
On Wed, Oct 12, 2011 at 10:52 AM, Stephen Warren <swarren@nvidia.com> wrote:
> v5: New patch
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>

Tested-by: Simon Glass <sjg@chromium.org>

> ---
>  board/nvidia/harmony/Makefile  |    2 +-
>  board/nvidia/seaboard/Makefile |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/board/nvidia/harmony/Makefile b/board/nvidia/harmony/Makefile
> index ebd8e02..aab185e 100644
> --- a/board/nvidia/harmony/Makefile
> +++ b/board/nvidia/harmony/Makefile
> @@ -37,7 +37,7 @@ SRCS  := $(COBJS:.o=.c)
>  OBJS   := $(addprefix $(obj),$(COBJS))
>
>  $(LIB):        $(obj).depend $(OBJS)
> -       $(AR) $(ARFLAGS) $@ $(OBJS)
> +       $(call cmd_link_o_target, $(OBJS))
>
>  clean:
>        rm -f $(OBJS)
> diff --git a/board/nvidia/seaboard/Makefile b/board/nvidia/seaboard/Makefile
> index ebd8e02..aab185e 100644
> --- a/board/nvidia/seaboard/Makefile
> +++ b/board/nvidia/seaboard/Makefile
> @@ -37,7 +37,7 @@ SRCS  := $(COBJS:.o=.c)
>  OBJS   := $(addprefix $(obj),$(COBJS))
>
>  $(LIB):        $(obj).depend $(OBJS)
> -       $(AR) $(ARFLAGS) $@ $(OBJS)
> +       $(call cmd_link_o_target, $(OBJS))
>
>  clean:
>        rm -f $(OBJS)
> --
> 1.7.0.4
>
>

Patch

diff --git a/board/nvidia/harmony/Makefile b/board/nvidia/harmony/Makefile
index ebd8e02..aab185e 100644
--- a/board/nvidia/harmony/Makefile
+++ b/board/nvidia/harmony/Makefile
@@ -37,7 +37,7 @@  SRCS	:= $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) $(ARFLAGS) $@ $(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
 
 clean:
 	rm -f $(OBJS)
diff --git a/board/nvidia/seaboard/Makefile b/board/nvidia/seaboard/Makefile
index ebd8e02..aab185e 100644
--- a/board/nvidia/seaboard/Makefile
+++ b/board/nvidia/seaboard/Makefile
@@ -37,7 +37,7 @@  SRCS	:= $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) $(ARFLAGS) $@ $(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
 
 clean:
 	rm -f $(OBJS)