build: remove stray .*.d2 files during clean/distclean
authorDaniel Kiper <daniel.kiper@oracle.com>
Tue, 19 Jun 2018 13:51:00 +0000 (15:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:28:14 +0000 (09:28 +0200)
Otherwise e.g. xen/..xen-syms.0.o.d2 and xen/..xen-syms.1.o.d2 files
stay untouched because they are not listed in DEPS_RM variable.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile

index abbf1d70ff3611e68ae07d131e06bce9492ac6b2..a321962fd0db9633aeee3cc0f30f3ea1f88ab61a 100644 (file)
@@ -119,7 +119,7 @@ _clean: delete-unfresh-files
        $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/x86 clean
        $(MAKE) -f $(BASEDIR)/Rules.mk -C test clean
        $(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig ARCH=$(ARCH) SRCARCH=$(SRCARCH) clean
-       find . \( -name "*.o" -o -name ".*.d" -o -name "*.gcno" \) -exec rm -f {} \;
+       find . \( -name "*.o" -o -name ".*.d" -o -name ".*.d2" -o -name "*.gcno" \) -exec rm -f {} \;
        rm -f include/asm $(TARGET) $(TARGET).gz $(TARGET).efi $(TARGET).efi.map $(TARGET)-syms $(TARGET)-syms.map *~ core
        rm -f include/asm-*/asm-offsets.h
        rm -f .banner