From: Wolfgang Denk Date: Fri, 09 May 2008 22:10:38 +0200 Subject: [U-Boot-Users] [PATCH 3/3] Adding DIU support for Freescale 5121ADS In-Reply-To: Your message of "Mon, 05 May 2008 10:20:01 CDT." <1210000803219-git-send-email-yorksun@freescale.com> Message-ID: <20080509201038.47C5124764@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1210000803219-git-send-email-yorksun@freescale.com> you wrote: > Add DIU and cfb console support to FSL 5121ADS board. > > Use #define CONFIG_VIDEO in config file to enable fb console. > > Signed-off-by: York Sun > --- > board/ads5121/Makefile | 2 +- > board/ads5121/ads5121.c | 62 ++++++++++++++++- > board/ads5121/ads5121_diu.c | 165 +++++++++++++++++++++++++++++++++++++++++++ > include/configs/ads5121.h | 53 +++++++++----- > 4 files changed, 261 insertions(+), 21 deletions(-) > create mode 100644 board/ads5121/ads5121_diu.c > > diff --git a/board/ads5121/Makefile b/board/ads5121/Makefile > index b93bee1..8ace8a1 100644 > --- a/board/ads5121/Makefile > +++ b/board/ads5121/Makefile > @@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk > > LIB = $(obj)lib$(BOARD).a > > -COBJS-y := $(BOARD).o > +COBJS-y := $(BOARD).o ads5121_diu.o ../freescale/common/fsl_diu_fb.o ../freescale/common/fsl_logo_bmp.o This line is way too long, and it doesn't work with out-of-tree builds. Try something like: make O=/tmp/ads5121 ads5121_config make O=/tmp/ads5121 all and you will get: make[1]: Entering directory `/home/wd/git/u-boot/testing/board/ads5121' ppc_6xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/tmp/ads5121/include2 -I/tmp/ads5121/include -I/home/wd/git/u-boot/testing/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk-4.2-2008-03-27/usr/bin/../lib/gcc/powerpc-linux/4.2.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC512X -DCONFIG_E300 -ffixed-r2 -msoft-float -mcpu=603e -Wall -Wstrict-prototypes -c -o /tmp/ads5121/board/ads5121/ads5121.o ads5121.c ads5121.c: In function 'misc_init_r': ads5121.c:225: warning: implicit declaration of function 'i2c_set_bus_num' ads5121.c:227: warning: implicit declaration of function 'i2c_write' ads5121.c:230: warning: implicit declaration of function 'i2c_read' ppc_6xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/tmp/ads5121/include2 -I/tmp/ads5121/include -I/home/wd/git/u-boot/testing/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk-4.2-2008-03-27/usr/bin/../lib/gcc/powerpc-linux/4.2.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC512X -DCONFIG_E300 -ffixed-r2 -msoft-float -mcpu=603e -Wall -Wstrict-prototypes -c -o /tmp/ads5121/board/ads5121/ads5121_diu.o ads5121_diu.c ads5121_diu.c: In function 'video_hw_init': ads5121_diu.c:122: warning: 'return' with no value, in function returning non-void ppc_6xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/tmp/ads5121/include2 -I/tmp/ads5121/include -I/home/wd/git/u-boot/testing/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/eldk-4.2-2008-03-27/usr/bin/../lib/gcc/powerpc-linux/4.2.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC512X -DCONFIG_E300 -ffixed-r2 -msoft-float -mcpu=603e -Wall -Wstrict-prototypes -c -o /tmp/ads5121/board/ads5121/../freescale/common/fsl_diu_fb.o ../freescale/common/fsl_diu_fb.c Assembler messages: Fatal error: can't create /tmp/ads5121/board/ads5121/../freescale/common/fsl_diu_fb.o: No such file or directory make[1]: *** [/tmp/ads5121/board/ads5121/../freescale/common/fsl_diu_fb.o] Error 2 make[1]: Leaving directory `/home/wd/git/u-boot/testing/board/ads5121' make: *** [/tmp/ads5121/board/ads5121/libads5121.a] Error 2 Please also fix the warnings, when you are at it... Best regards, Wolfgang Denk -- 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 "I think trash is the most important manifestation of culture we have in my lifetime." - Johnny Legend