diff options
author | York Sun <yorksun@freescale.com> | 2008-05-12 19:36:39 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-20 22:54:37 (GMT) |
commit | 4416603aeb06861b468b06a981e52c3ff805db7b (patch) | |
tree | 30980850dd021cca44dfcfe97152e99aa87e598b /board/ads5121 | |
parent | 0e1bad47cd345c76c91a64caf41011e431b62599 (diff) | |
download | u-boot-fsl-qoriq-4416603aeb06861b468b06a981e52c3ff805db7b.tar.xz |
Make ads5121 out-of-tree compiling safe
Reuse the existing DIU driver in board/freescale/common.
Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/ads5121')
-rw-r--r-- | 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) |