[U-Boot] [PATCH] matrix vision: fix MVBLM7, MVSMR build error

Kim Phillips kim.phillips at freescale.com
Fri Nov 4 22:43:56 CET 2011


when a mkimage binary isn't present in the default system PATH, we
get this error:

$ ./MAKEALL MVBLM7
Configuring for MVBLM7 board...
make[1]: mkimage: Command not found
make[1]: *** [libmvblm7.o] Error 127
make: *** [board/matrix_vision/mvblm7/libmvblm7.o] Error 2
powerpc-linux-gnu-size: './u-boot': No such file

fix by referencing u-boot's built-in mkimage instead.

Signed-off-by: Kim Phillips <kim.phillips at freescale.com>
---
 board/matrix_vision/mvblm7/Makefile |    2 +-
 board/matrix_vision/mvsmr/Makefile  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/board/matrix_vision/mvblm7/Makefile b/board/matrix_vision/mvblm7/Makefile
index 81761ca..48a602c 100644
--- a/board/matrix_vision/mvblm7/Makefile
+++ b/board/matrix_vision/mvblm7/Makefile
@@ -32,7 +32,7 @@ SOBJS	:= $(addprefix $(obj),$(SOBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
-	@mkimage -T script -C none -n M7_script -d bootscript $(obj)bootscript.img
+	@$(OBJTREE)/tools/mkimage -T script -C none -n M7_script -d bootscript $(obj)bootscript.img
 
 #########################################################################
 
diff --git a/board/matrix_vision/mvsmr/Makefile b/board/matrix_vision/mvsmr/Makefile
index 37b9bac..bb77eff 100644
--- a/board/matrix_vision/mvsmr/Makefile
+++ b/board/matrix_vision/mvsmr/Makefile
@@ -36,7 +36,7 @@ SOBJS   := $(addprefix $(obj),$(SOBJS))
 
 $(LIB): $(obj).depend $(OBJS)
 	        $(call cmd_link_o_target, $(OBJS))
-	@mkimage -T script -C none -n mvSMR_Script -d bootscript $(obj)bootscript.img
+	@$(OBJTREE)/tools/mkimage -T script -C none -n mvSMR_Script -d bootscript $(obj)bootscript.img
 
 #########################################################################
 
-- 
1.7.7.2




More information about the U-Boot mailing list