Skip to contentSkip to conversation

MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)

PATCH New Wolfgang Denk 1 participant 2 messages May 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)

Fix MVBLM7 and MVSMR Makefiles for correct out-of-tree building (create "bootscript.img" in build directory instead of source directory) and cleanup (remove "bootscript.img" when cleaning up).

---
 board/matrix_vision/mvblm7/Makefile |    4 ++--
 board/matrix_vision/mvsmr/Makefile  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
board/matrix_vision/mvblm7/Makefile +2 -2
index b3e3e0b..12c7cb6 100644
@@ -32,13 +32,13 @@ SOBJS	:= $(addprefix $(obj),$(SOBJS))
 
 $(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
-	@mkimage -T script -C none -n M7_script -d bootscript bootscript.img
+	@mkimage -T script -C none -n M7_script -d bootscript $(obj)bootscript.img
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
 
 distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
+	rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
 
 #########################################################################
 
board/matrix_vision/mvsmr/Makefile +2 -2
index b179e6d..2817fe0 100644
@@ -36,13 +36,13 @@ SOBJS   := $(addprefix $(obj),$(SOBJS))
 
 $(LIB): $(obj).depend $(OBJS)
 	        $(AR) $(ARFLAGS) $@ $(OBJS)
-	@mkimage -T script -C none -n mvSMR_Script -d bootscript bootscript.img
+	@mkimage -T script -C none -n mvSMR_Script -d bootscript $(obj)bootscript.img
 
 clean:
 	rm -f $(SOBJS) $(OBJS)
 
 distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
+	rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
 
 #########################################################################
 
Signature · 1 line
1.6.6.1
author Applied
#1 lore raw

PATCH 1/1 MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)

Quoted 10 lines · In message <[email protected]> Wolfgang Denk wrote:

Fix MVBLM7 and MVSMR Makefiles for correct out-of-tree building (create "bootscript.img" in build directory instead of source directory) and cleanup (remove "bootscript.img" when cleaning up).

---
 board/matrix_vision/mvblm7/Makefile |    4 ++--
 board/matrix_vision/mvsmr/Makefile  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Applied.

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
I have yet to add the ESP-driver to the kernel to read  the  mind  of
the user...                                       - Linus Torvalds in
      <[email protected]>