From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Schwarz Date: Fri, 06 Jun 2008 09:52:21 +0200 Subject: [U-Boot-Users] build failure in tools - missing CFG_ENV_SIZE ? In-Reply-To: <20080605160507.EFC92247FE@gemini.denx.de> References: <20080605160507.EFC92247FE@gemini.denx.de> Message-ID: <4848ECB5.7020703@matrix-vision.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 ( -> "../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@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