[U-Boot] [PATCH] common/fdt_support.c: fix compile error

Scott Wood scottwood at freescale.com
Wed Oct 13 00:20:45 CEST 2010


On Tue, 12 Oct 2010 17:25:59 -0500
Matthew McClintock <msm at freescale.com> wrote:

> Fix build error introduced in beca5a5f5bf0d88125580e5e9c1730469cd50ab8
> 
> common/libcommon.a(fdt_support.o): In function `fdt_add_edid':
> /local/hudson/jobs/mirrors-u-boot.git/workspace/common/fdt_support.c:1205: undefined reference to `fdt_increase_size'
> make: *** [u-boot] Error 1
> 
> Signed-off-by: Matthew McClintock <msm at freescale.com>
> ---
>  common/fdt_support.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/common/fdt_support.c b/common/fdt_support.c
> index 9b65a8a..cb0ad3b 100644
> --- a/common/fdt_support.c
> +++ b/common/fdt_support.c
> @@ -1190,7 +1190,7 @@ int fdt_alloc_phandle(void *blob)
>  	return phandle + 1;
>  }
>  
> -#if defined(CONFIG_VIDEO)
> +#if defined(CONFIG_VIDEO) && defined(CONFIG_FDT_FIXUP_PARTITIONS)
>  int fdt_add_edid(void *blob, const char *compat, unsigned char *edid_buf)
>  {
>  	int noff;

What does this have to do with MTD partitions?

fdt_increase_size() should be moved out of that ifdef.

-Scott



More information about the U-Boot mailing list