]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)
authorWolfgang Denk <wd@denx.de>
Sat, 15 May 2010 18:22:21 +0000 (20:22 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 15 May 2010 18:22:21 +0000 (20:22 +0200)
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).

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
board/matrix_vision/mvblm7/Makefile
board/matrix_vision/mvsmr/Makefile

index b3e3e0bbf40775b85807af3297d446fbf1eae8d8..12c7cb6e6eef43dfde7f2b39d36838d0ba23e71b 100644 (file)
@@ -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
 
 #########################################################################
 
index b179e6d78f28ebc1d8c67a723daf4d6ed05e4e44..2817fe072c8e10ee0b286c46adde2f8d9123176f 100644 (file)
@@ -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
 
 #########################################################################