From: Dave H. <dhy...@gm...> - 2007-01-17 17:35:45
|
Hi Christian, > Here is another question concerning the toolchain build process on an ubuntu > 6.06 system. When compiling the file environment.c in the > gumstix-buildroot/build_arm_nofpu/u-boot-1.1.4/tools > directory there is an error raised from environment.h > > In file included from environment.c:30: > ../include/environment.h:87: error: 'CFG_ENV_SIZE' undeclared here (not in a > function) > make[2]: *** [environment.o] Error 1 > > I had a look in the environment.c file and here is the only #include > directive before environment.h the linux/config.h. In linux/config.h there > is only linux/autoconf included which does not contain any definition for > CFG_ENV_SIZE. I also can not see any definition for CFG_ENV_SIZE in the > makefiles. So here is my question. Where is CFG_ENV_SIZE defined? There are > tow other posts in this mailing list dealing with a similar problem but > there has not been any answer posted. Hmmm. In my build (1219), environment.c has a #include for <config.h> which #includes <configs/gumstix.h> which #defines CFG_ENV_SIZE If your u-boot-1.1.4/include/config.h doesn't have a #include <configs/gumstix.h> then you may have forgotten to do a "make defconfig". In which case you should cd gumstix-buildroot rm -rf buildroot_arm_nofpu toolchain_arm_nofpu make defconfig make -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |