[U-Boot] [PATCH] MVBLM7, MVSMR: fix Makefile (cleanup bootscript.img)
Wolfgang Denk
wd at denx.de
Sat May 15 20:30:03 CEST 2010
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 at denx.de>
Cc: Andre Schwarz <andre.schwarz at matrix-vision.de>
---
board/matrix_vision/mvblm7/Makefile | 4 ++--
board/matrix_vision/mvsmr/Makefile | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/board/matrix_vision/mvblm7/Makefile b/board/matrix_vision/mvblm7/Makefile
index b3e3e0b..12c7cb6 100644
--- a/board/matrix_vision/mvblm7/Makefile
+++ b/board/matrix_vision/mvblm7/Makefile
@@ -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
#########################################################################
diff --git a/board/matrix_vision/mvsmr/Makefile b/board/matrix_vision/mvsmr/Makefile
index b179e6d..2817fe0 100644
--- a/board/matrix_vision/mvsmr/Makefile
+++ b/board/matrix_vision/mvsmr/Makefile
@@ -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
#########################################################################
--
1.6.6.1
More information about the U-Boot
mailing list