Conditionally compile fdt_support.c
authorKumar Gala <galak@kernel.crashing.org>
Mon, 26 Nov 2007 17:19:12 +0000 (11:19 -0600)
committerGerald Van Baren <vanbaren@cideas.com>
Sat, 8 Dec 2007 01:51:25 +0000 (20:51 -0500)
Modify common/Makefile to conditionally compile fdt_support.c based
on CONFIG_OF_LIBFDT.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
common/Makefile
common/fdt_support.c

index ace8cc7edc0663cd250c5ffebaab57aa344676e5..7be89a41c6e0addc2519efad7336a72d2dd7e63e 100644 (file)
@@ -55,7 +55,7 @@ COBJS-$(CONFIG_CMD_ELF) += cmd_elf.o
 COBJS-$(CONFIG_CMD_EXT2) += cmd_ext2.o
 COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o
 COBJS-y += cmd_fdc.o
-COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o
+COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
 COBJS-$(CONFIG_CMD_FDOS) += cmd_fdos.o
 COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o
 ifdef CONFIG_FPGA
@@ -105,7 +105,6 @@ COBJS-y += env_onenand.o
 COBJS-y += env_nvram.o
 COBJS-y += env_nowhere.o
 COBJS-y += exports.o
-COBJS-y += fdt_support.o
 COBJS-y += flash.o
 COBJS-y += fpga.o
 COBJS-y += ft_build.o
index c67bb3d390f4f4524679bbec4c450b605c347a2a..69f4dd552a88f89bcd162d409d0f77c16ab2ddde 100644 (file)
@@ -24,9 +24,6 @@
 #include <common.h>
 #include <linux/ctype.h>
 #include <linux/types.h>
-
-#ifdef CONFIG_OF_LIBFDT
-
 #include <asm/global_data.h>
 #include <fdt.h>
 #include <libfdt.h>
@@ -486,5 +483,3 @@ void fdt_fixup_ethernet(void *fdt, bd_t *bd)
 #endif
        }
 }
-
-#endif /* CONFIG_OF_LIBFDT */