Patchwork [U-Boot] drivers/video/Makefile: include object files only once

login
register
mail settings
Submitter Wolfgang Denk
Date Sept. 5, 2011, 7:20 a.m.
Message ID <1315207224-21401-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/113318/
State Accepted
Commit 712f4d1f34a0660f7562b84f272cbc8137da3fa4
Headers show

Comments

Wolfgang Denk - Sept. 5, 2011, 7:20 a.m.
Use "$(sort $(COBJS-y))" to prevent multiple inclusion of the same
object files.

Also sort driver list.

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 drivers/video/Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Wolfgang Denk - Sept. 5, 2011, 7:52 a.m.
Dear Wolfgang Denk,

In message <1315207224-21401-1-git-send-email-wd@denx.de> you wrote:
> Use "$(sort $(COBJS-y))" to prevent multiple inclusion of the same
> object files.
> 
> Also sort driver list.
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> ---
>  drivers/video/Makefile |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/drivers/video/Makefile b/drivers/video/Makefile
index db8a454..3790f91 100644
--- a/drivers/video/Makefile
+++ b/drivers/video/Makefile
@@ -30,20 +30,20 @@  COBJS-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o
 COBJS-$(CONFIG_CFB_CONSOLE) += cfb_console.o
 COBJS-$(CONFIG_FSL_DIU_FB) += fsl_diu_fb.o videomodes.o
 COBJS-$(CONFIG_S6E63D6) += s6e63d6.o
+COBJS-$(CONFIG_SED156X) += sed156x.o
 COBJS-$(CONFIG_VIDEO_AMBA) += amba.o
 COBJS-$(CONFIG_VIDEO_CT69000) += ct69000.o videomodes.o
 COBJS-$(CONFIG_VIDEO_MB862xx) += mb862xx.o videomodes.o
 COBJS-$(CONFIG_VIDEO_MB86R0xGDC) += mb86r0xgdc.o videomodes.o
 COBJS-$(CONFIG_VIDEO_MX3) += mx3fb.o
 COBJS-$(CONFIG_VIDEO_MX5) += mxc_ipuv3_fb.o ipu_common.o ipu_disp.o
+COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o videomodes.o
 COBJS-$(CONFIG_VIDEO_SED13806) += sed13806.o
-COBJS-$(CONFIG_SED156X) += sed156x.o
 COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
 COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o videomodes.o
 COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
-COBJS-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o videomodes.o
 
-COBJS	:= $(COBJS-y)
+COBJS	:= $(sort $(COBJS-y))
 SRCS	:= $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(COBJS))