[U-Boot-Users] v2 patch to make ads5121 out-of-tree compiling safe

Wolfgang,
Please find the v2 patch for the ads5121 Makefile in the following mail.
Regards,
York

Reuse the existing DIU driver in board/freescale/common.
Signed-off-by: York Sun yorksun@freescale.com --- board/ads5121/Makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/board/ads5121/Makefile b/board/ads5121/Makefile index 8ace8a1..f4dacce 100644 --- a/board/ads5121/Makefile +++ b/board/ads5121/Makefile @@ -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)

In message 12106210003236-git-send-email-yorksun@freescale.com you wrote:
Reuse the existing DIU driver in board/freescale/common.
Signed-off-by: York Sun yorksun@freescale.com
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
participants (2)
-
Wolfgang Denk
-
York Sun