[PATCH] Nios2: Compile bootm only if needed

franck.jullien at gmail.com franck.jullien at gmail.com
Tue Jul 5 18:14:50 EDT 2011


From: Franck Jullien <franck.jullien at gmail.com>

Fix an error when bootm support is not choosen during
the configuration.

Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
---
 arch/nios2/lib/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/nios2/lib/Makefile b/arch/nios2/lib/Makefile
index fc9d4d7..3affc45 100644
--- a/arch/nios2/lib/Makefile
+++ b/arch/nios2/lib/Makefile
@@ -2,6 +2,6 @@ obj-y                      += board.o
 obj-y                      += libgcc.o
 obj-y                      += clock.o
 obj-y                      += cache.o
-obj-y                      += bootm.o
+obj-$(CONFIG_CMD_BOOTM)    += bootm.o
 obj-$(CONFIG_EARLY_PRINTF) += early_printf.o
 
-- 
1.7.0.4




More information about the barebox mailing list