[U-Boot-Users] build failure in tools - missing CFG_ENV_SIZE ?

Martin Krause Martin.Krause at tqs.de
Fri Jun 6 14:43:12 CEST 2008


Hello,

wd at denx.de wrote on Friday, June 06, 2008 2:28 PM:
> > I don't know, why I get the warnings (they appeared first several
> > weeks ago, and I get it for every build, since then). But since the
> > resulting U-Boot runs fine, there was no pressure (and no time)
> > to dig for the reason of the warnings ...
> 
> Can you please check if this patch fixes the warnings? Thanks in
> advance.
> 
> diff --git a/lib_generic/md5.c b/lib_generic/md5.c
> index 78ef475..a9aae46 100644
> --- a/lib_generic/md5.c
> +++ b/lib_generic/md5.c
> @@ -27,6 +27,8 @@
> 
>  #ifndef USE_HOSTCC
>  #include <common.h>
> +#else
> +#include <string.h>
>  #endif /* USE_HOSTCC */
>  #include <watchdog.h>
>  #include <linux/types.h>
> diff --git a/lib_generic/sha1.c b/lib_generic/sha1.c
> index c8ef4d2..a192e5f 100644
> --- a/lib_generic/sha1.c
> +++ b/lib_generic/sha1.c
> @@ -31,6 +31,8 @@
> 
>  #ifndef USE_HOSTCC
>  #include <common.h>
> +#else
> +#include <string.h>
>  #endif /* USE_HOSTCC */
>  #include <watchdog.h>
>  #include <linux/string.h>

This helped, thanks! With your patch I get a clean build:

mkr at tq-sewsrv-4:~/git/u-boot_denx> ./MAKEALL TQM5200
Configuring for TQM5200 board...
   text    data     bss     dec     hex filename
 326532   32464  315024  674020   a48e4 ./u-boot
mkr at tq-sewsrv-4:~/git/u-boot_denx>  

But why did I get the warning without the patch and you not (both
build with ELDK4.1 and top-of-U-Boot)?

Best Regards,
Martin Krause





More information about the U-Boot mailing list