]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/Makefile: remove all temporary files for every architecture
authorLuca Miccio <lucmiccio@gmail.com>
Thu, 23 Mar 2017 01:31:37 +0000 (02:31 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 24 Mar 2017 12:23:47 +0000 (12:23 +0000)
Execute the clean target for both arm and x86 architecture.

When trying to build Xen for a different architecture in the same
tree, the command make clean will only remove temporary files for
the host architecture.
This will lead a compilation error when trying to build ARM64 and
ARM32 Xen in the same tree.
(See also: https://lists.xenproject.org/archives/html/xen-devel/2016-11/msg02176.html)

Signed-off-by: Luca Miccio <lucmiccio@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/Makefile

index dc6862e04dcf4d1df8a94c98497f1e463b6210fa..fcd5c7e9d652498dc5ce82b329c8b23a2e6ea2c6 100644 (file)
@@ -115,7 +115,8 @@ _clean: delete-unfresh-files
        $(MAKE) -f $(BASEDIR)/Rules.mk -C drivers clean
        $(MAKE) -f $(BASEDIR)/Rules.mk -C xsm clean
        $(MAKE) -f $(BASEDIR)/Rules.mk -C crypto clean
-       $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean
+       $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/arm clean
+       $(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 {} \;