Skip to content
Snippets Groups Projects
Commit 2e4f35db authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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).

Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
Cc: Andre Schwarz <andre.schwarz@matrix-vision.de>
parent cd4b02be
No related branches found
No related tags found
No related merge requests found
...@@ -32,13 +32,13 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) ...@@ -32,13 +32,13 @@ SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(LIB): $(obj).depend $(OBJS)
$(AR) $(ARFLAGS) $@ $(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: clean:
rm -f $(SOBJS) $(OBJS) rm -f $(SOBJS) $(OBJS)
distclean: clean distclean: clean
rm -f $(LIB) core *.bak $(obj).depend rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
######################################################################### #########################################################################
......
...@@ -36,13 +36,13 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) ...@@ -36,13 +36,13 @@ SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(LIB): $(obj).depend $(OBJS)
$(AR) $(ARFLAGS) $@ $(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: clean:
rm -f $(SOBJS) $(OBJS) rm -f $(SOBJS) $(OBJS)
distclean: clean distclean: clean
rm -f $(LIB) core *.bak $(obj).depend rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
######################################################################### #########################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment