]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
build: clean-up "clean" rules of duplication
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 Feb 2022 10:07:13 +0000 (11:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Feb 2022 10:07:13 +0000 (11:07 +0100)
All those files to be removed are already done in the main Makefile,
either by the "find" command or directly (for $(TARGET).efi).

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com> # XSM
xen/Makefile
xen/arch/arm/Makefile
xen/arch/x86/Makefile
xen/test/livepatch/Makefile
xen/xsm/flask/Makefile

index 2cfaa49fe35fd2f7d3b6df098233b75539ed8762..84774eaf05d54db38c23e24d57df5a42331d814a 100644 (file)
@@ -425,7 +425,7 @@ _clean:
                -o -name ".*.o.tmp" -o -name "*~" -o -name "core" \
                -o -name '*.lex.c' -o -name '*.tab.[ch]' \
                -o -name "*.gcno" -o -name ".*.cmd" -o -name "lib.a" \) -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 $(TARGET) $(TARGET).gz $(TARGET).efi $(TARGET).efi.map $(TARGET)-syms $(TARGET)-syms.map
        rm -f asm-offsets.s arch/*/include/asm/asm-offsets.h
        rm -f .banner .allconfig.tmp include/xen/compile.h
 
index fd24f0212fface2be76aa453726eb2f2b3edaff5..3ce5f1674f6f54ffd350e800aa63e8c372640db2 100644 (file)
@@ -120,4 +120,3 @@ $(obj)/dtb.o: $(patsubst "%",%,$(CONFIG_DTB_FILE))
 clean::
        rm -f $(obj)/xen.lds
        rm -f $(BASEDIR)/.xen-syms.[0-9]*
-       rm -f $(TARGET).efi
index 8a081de551c14b2ac6b8ad871daaae1ef9221006..d083c5653b9e23483370a63ad38cfce9d61d44b5 100644 (file)
@@ -264,9 +264,8 @@ $(obj)/efi/mkreloc: $(src)/efi/mkreloc.c
 
 .PHONY: clean
 clean::
-       rm -f *.lds boot/*.o boot/*~ boot/core boot/mkelf32
+       rm -f *.lds boot/mkelf32
        rm -f asm-macros.i $(BASEDIR)/arch/x86/include/asm/asm-macros.*
-       rm -f $(BASEDIR)/.xen-syms.[0-9]* boot/.*.d $(BASEDIR)/.xen.elf32
+       rm -f $(BASEDIR)/.xen-syms.[0-9]* $(BASEDIR)/.xen.elf32
        rm -f $(BASEDIR)/.xen.efi.[0-9]* efi/*.efi efi/mkreloc
        rm -f boot/cmdline.S boot/reloc.S boot/*.lnk boot/*.bin
-       rm -f note.o
index afb8d589ecaeef837a92a968c513c9be5c839fc3..adb484dc5d2c8e929f8eb351249c73d171128f62 100644 (file)
@@ -162,4 +162,4 @@ uninstall:
 
 .PHONY: clean
 clean::
-       rm -f *.o .*.o.d *.livepatch config.h expect_config.h
+       rm -f *.livepatch config.h expect_config.h
index 49cf730cf09850f6a2bc58595035c3d5db5bb607..832f65274cc06f32a22304908e07c840a286553d 100644 (file)
@@ -51,4 +51,4 @@ $(obj)/policy.bin: FORCE
 
 .PHONY: clean
 clean::
-       rm -f $(ALL_H_FILES) *.o $(DEPS_RM) policy.* $(POLICY_SRC) flask-policy.S
+       rm -f $(ALL_H_FILES) policy.* $(POLICY_SRC) flask-policy.S