matrix vision: fix MVBLM7, MVSMR build error
PATCH 1/1 matrix vision: fix MVBLM7, MVSMR build error
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.
--- board/matrix_vision/mvblm7/Makefile | 2 +- board/matrix_vision/mvsmr/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
board/matrix_vision/mvblm7/Makefile +1 -1
@@ -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 #########################################################################
board/matrix_vision/mvsmr/Makefile +1 -1
@@ -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 #########################################################################
Signature · 1 line
1.7.7.2
PATCH 1/1 matrix vision: fix MVBLM7, MVSMR build error
Dear Kim Phillips,
Quoted 2 lines · In message <[email protected]> you wrote:
when a mkimage binary isn't present in the default system PATH, we get this error:
Yes - so what?
When the cross compiler is not in your path, you will get errors, and so you will when make is missing, or the shell...
Sorry, but we really don't need that.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de COBOL is for morons. -- E.W. Dijkstra
PATCH 1/1 matrix vision: fix MVBLM7, MVSMR build error
Quoted 7 lines · On Sat, 5 Nov 2011 01:19:02 +0100 Wolfgang Denk <[email protected]> wrote:
Dear Kim Phillips,
Quoted 2 lines · In message <[email protected]> you wrote:
when a mkimage binary isn't present in the default system PATH, we get this error:
Yes - so what?
it's an unforced error and thus should be avoided.
Quoted 1 line
When the cross compiler is not in your path, you will get errors, and
well that's a little more obvious.
Quoted 1 line
so you will when make is missing, or the shell...
modern distros include those basics by default - mkimage, however, is not.
Quoted 1 line
Sorry, but we really don't need that.
u-boot is the original source of mkimage - if linux itself does this, and and it eliminates a pointless barrier to a successful build, then why not? It makes u-boot easier to use.
Kim
Schwarz
PATCH 1/1 matrix vision: fix MVBLM7, MVSMR build error
In reply to Kim PhillipsKim Phillips <[email protected]> hat am 4. November 2011 um 22:43 geschrieben:
Quoted 10 lines
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
Quoted 3 lines
fix by referencing u-boot's built-in mkimage instead.
Signed-off-by Kim Phillips <[email protected]>?
?
Quoted 41 lines
---
? board/matrix_vision/mvblm7/Makefile |? ? 2 +- ? board/matrix_vision/mvsmr/Makefile? |? ? 2 +- ? 2 files changed, 2 insertions(+), 2 deletions(-)board/matrix_vision/mvblm7/Makefile +0
-0@@ -32,7 +32,7 @@ SOBJS? ? ? ? := $(addprefix $(obj),$(SOBJS))?
? $(LIB):? ? ? ? $(obj).depend $(OBJS)
? ? ? ? ? $(callcmd_link_o_target, $(OBJS))
-? ? ? ? @mkimage -T script -C none -nM7_script-d bootscript $(obj)bootscript.img
+? ? ? ? @$(OBJTREE)/tools/mkimage -T script -C none -nM7_script-d bootscript $(obj)bootscript.img
?
? ######################################################################### ?board/matrix_vision/mvsmr/Makefile +0
-0@@ -36,7 +36,7 @@ SOBJS? ?:= $(addprefix $(obj),$(SOBJS))?
? $(LIB): $(obj).depend $(OBJS)
? ? ? ? ? ? ? ? ? $(callcmd_link_o_target, $(OBJS))
-? ? ? ? @mkimage -T script -C none -nmvSMR_Script-d bootscript $(obj)bootscript.img
+? ? ? ? @$(OBJTREE)/tools/mkimage -T script -C none -nmvSMR_Script-d bootscript $(obj)bootscript.img
?
? ######################################################################### ?
--
1.7.7.2
PATCH 1/1 matrix vision: fix MVBLM7, MVSMR build error
In reply to Kim PhillipsDear Kim Phillips,
Quoted 23 lines · In message <[email protected]> you wrote:
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 filefix by referencing u-boot's built-in mkimage instead.
Signed-off-by Kim Phillips <[email protected]>--- board/matrix_vision/mvblm7/Makefile | 2 +- board/matrix_vision/mvsmr/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)board/matrix_vision/mvblm7/Makefile +0
-0
board/matrix_vision/mvblm7/Makefile SOBJS := $(addprefix $(obj),$(SOBJS)) · line 35
Quoted 5 lines
board/matrix_vision/mvblm7/Makefile +1
-1@@ -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
If we do that, should then $(OBJTREE)/tools/mkimage not be listed as dependency for this step?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "There are three principal ways to lose money: wine, women, and engi- neers. While the first two are more pleasant, the third is by far the more certain." - Baron Rothschild, ca. 1800