[U-Boot-Users] build failure in tools - missing CFG_ENV_SIZE ?
Andre Schwarz
andre.schwarz at matrix-vision.de
Fri Jun 6 09:52:21 CEST 2008
Wolfgang,
thanks for your verification. Trying to do it your way gives :
nova u-boot-clean # CROSS_COMPILE=ppc_6xx- sh MAKEALL TQM5200 MPC8349ITX
Configuring for TQM5200 board...
In file included from environment.c:30:
/home/u-boot-clean/include/environment.h:107: error: 'CFG_ENV_SIZE'
undeclared here (not in a function)
make[1]: *** [environment.o] Error 1
make: *** [tools] Error 2
ppc_6xx-size: './u-boot': No such file
Configuring for MPC8349ITX board...
In file included from environment.c:30:
/home/u-boot-clean/include/environment.h:107: error: 'CFG_ENV_SIZE'
undeclared here (not in a function)
make[1]: *** [environment.o] Error 1
make: *** [tools] Error 2
ppc_6xx-size: './u-boot': No such file
Obviously it's a problem regarding include mechanism.
Changing line 28 in common/environment.c ( <config.h> ->
"../include/config.h") gives positive result :
nova u-boot-clean # CROSS_COMPILE=ppc_6xx- sh MAKEALL TQM5200 MPC8349ITX
Configuring for TQM5200 board...
text data bss dec hex filename
326532 32464 315024 674020 a48e4 ./u-boot
Configuring for MPC8349ITX board...
text data bss dec hex filename
217741 15388 223684 456813 6f86d ./u-boot
Unfortunately I'm not a Makefile expert ... do you have any ideas ?
regards,
Andre
Wolfgang Denk schrieb:
> In message <484808EB.8060904 at matrix-vision.de> you wrote:
>
>> after getting a clean u-boot clone (1.3.3 today) I get a compile error
>> in "tools" subdir.
>>
>> I've tried 2 different boards making a "TQM5200_config" and
>> "MPC8349ITX_config" - just to make sure ...
>>
>> "make CROSS_COMPILE=3Dppc_6xx- "
>>
>> cross-compiler is gcc 4.0 as shipped with ELDK 4.1.
>>
>
> Hm. Let's see:
>
> -> MAKEALL TQM5200 MPC8349ITX
> Configuring for TQM5200 board...
> text data bss dec hex filename
> 326532 32456 315024 674012 a48dc ./u-boot
> Configuring for MPC8349ITX board...
> text data bss dec hex filename
> 217741 15388 223684 456813 6f86d ./u-boot
>
> That's U-Boot 1.3.3-00117-g8155efb
>
>
>> Can someome help me out please ?
>>
>
> Sorry, I cannot reproduce the problem.
>
> Best regards,
>
> Wolfgang Denk
>
>
MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
More information about the U-Boot
mailing list