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

Matthew McClintock msm at freescale.com
Wed Oct 13 00:25:59 CEST 2010


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;
-- 
1.6.6.1




More information about the U-Boot mailing list