[U-Boot] [PATCH] Minor corrections for i386 (v2008.10-rc2)

Wolfgang Denk wd at denx.de
Mon Sep 22 22:29:53 CEST 2008


Dear Graeme Russ,

In message <48CE15B3.1030305 at gmail.com> you wrote:
> Several minor corrections to allow clean builds of new i386 and sc520
> based boards based on 2008.10

Soory, but some parts of this cannot work:

> --- a/examples/82559_eeprom.c
> +++ b/examples/82559_eeprom.c
> @@ -19,7 +19,6 @@
>   */
>  
>  #define _PPC_STRING_H_		/* avoid unnecessary str/mem functions */
> -#define _LINUX_STRING_H_	/* avoid unnecessary str/mem functions */

Will this still build for other architectures, say ARM and MIPS and
Power?

> diff --git a/lib_i386/video_bios.c b/lib_i386/video_bios.c
> index ce96a3e..1541773 100644
> --- a/lib_i386/video_bios.c
> +++ b/lib_i386/video_bios.c
> @@ -21,6 +21,8 @@
>   * MA 02111-1307 USA
>   */
>  
> +#ifdef CONFIG_VIDEO
> +
>  #include <common.h>
>  #include <pci.h>
>  #include <malloc.h>

This cannot work. CONFIG_VIDEO can only be set in the board config
file, which gets included implicitly by #include <common.h>, but you
use the variable before that, so it will always be undefined, which is
probably not what you intend.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"...and the fully armed nuclear warheads, are, of  course,  merely  a
courtesy detail."


More information about the U-Boot mailing list