Makefile: Remove MLO on make clean
authorJoel A Fernandes <joelagnel@ti.com>
Wed, 12 Oct 2011 16:12:55 +0000 (16:12 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 21 Oct 2011 23:17:15 +0000 (01:17 +0200)
SPL builds could leave an MLO which is an mkimage of type omapimage
Make sure its deleted on make clean/distclean

Signed-off-by: Joel A Fernandes <joelagnel@ti.com>
Makefile

index 7aba2dd..8654251 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -861,6 +861,7 @@ clean:
        @rm -f $(ONENAND_BIN)
        @rm -f $(obj)onenand_ipl/u-boot.lds
        @rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,u-boot-spl.lds,u-boot-spl.map}
+       @rm -f $(obj)MLO
        @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
        @find $(OBJTREE) -type f \
                \( -name 'core' -o -name '*.bak' -o -name '*~' \