On Tue, 2010-11-09 at 09:23 -0700, Wolfgang Denk wrote: > Dear Haiying Wang, > Is this all the error messages you get? Normally tehre should be > another message, for example: > > [filename]:[lineno]:[column]: warning: this is the location of the > previous definition > > or, if there was a "-DCONFIG_SYS_TEXT_BASE=..." on the command line: > > <command-line>: warning: this is the location of the previous > definition It is in one of the error messages, there are others for the same error. Here is the total message when building tlb.c for nand_spl:
powerpc-none-linux-gnuspe-gcc -g -Os -mrelocatable -fPIC -meabi -ffunction-sections -fdata-sections -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xf8f82000 -DRESET_VECTOR_ADDRESS=0xeffffffc -I/home/haiying/u-boot-mpc85xx/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/lib/gcc/powerpc-none-linux-gnuspe/4.3.2/include -pipe -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float -mno-string -mspe=yes -mno-spe -Wall -Wstrict-prototypes -fno-stack-protector -DCONFIG_NAND_SPL -c -o tlb.o tlb.c In file included from /home/haiying/u-boot-mpc85xx/include/config.h:5, from /home/haiying/u-boot-mpc85xx/include/common.h:37, from tlb.c:26: /home/haiying/u-boot-mpc85xx/include/configs/MPC8536DS.h:40:1: warning: "CONFIG_SYS_TEXT_BASE" redefined <command-line>: warning: this is the location of the previous definition > > > Here are the lines in MPC8536DS.h(using git diff result, so that the > > changes I made can be seen clearly)ing > > This doesn't help, as it doesn't show where the other definition is > coming from. The other definition comes from include/autoconf.mk, I think. Haiy _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot