Skip to contentSkip to conversation

v2 patch to make ads5121 out-of-tree compiling safe

U-Boot-Users New York Sun 2 participants 3 messages May 12, 2008

lore
Share & tools
lore

York Sun

author
#0 lore raw

Wolfgang,

Please find the v2 patch for the ads5121 Makefile in the following mail.

Regards,

York

author
#1 lore raw

PATCH v2 4/4 Make ads5121 out-of-tree compiling safe

Reuse the existing DIU driver in board/freescale/common.

---
 board/ads5121/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
board/ads5121/Makefile +6 -1
index 8ace8a1..f4dacce 100644
@@ -23,9 +23,14 @@
 
 include $(TOPDIR)/config.mk
 
+$(shell mkdir -p $(OBJTREE)/board/freescale/common)
+
 LIB	= $(obj)lib$(BOARD).a
 
-COBJS-y	:= $(BOARD).o ads5121_diu.o ../freescale/common/fsl_diu_fb.o ../freescale/common/fsl_logo_bmp.o
+COBJS-y	:= $(BOARD).o
+COBJS-${CONFIG_FSL_DIU_FB} += ads5121_diu.o
+COBJS-${CONFIG_FSL_DIU_FB} += ../freescale/common/fsl_diu_fb.o
+COBJS-${CONFIG_FSL_DIU_FB} += ../freescale/common/fsl_logo_bmp.o
 COBJS-$(CONFIG_PCI) += pci.o
 
 COBJS	:= $(COBJS-y)
Signature · 1 line
1.5.2.2
#2 lore raw

PATCH v2 4/4 Make ads5121 out-of-tree compiling safe

Quoted 6 lines · In message <[email protected]> you wrote:

Reuse the existing DIU driver in board/freescale/common.

---
 board/ads5121/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

Applied to "ads5121" branch in u-boot-testing repo.

Thanks a lot.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Do we define evil as the absence of goodness? It seems only  logical
that shit happens--we discover this by the process of elimination."
                                                        -- Larry Wall