]> git.proxmox.com Git - mirror_qemu.git/blobdiff - Makefile
roms: add the edk2 project as a git submodule
[mirror_qemu.git] / Makefile
index 53d161b65f0ec3e4d518767100b8ca06ad4f37af..21ceb8d0ed4c0cc179f73d95693d9d3f32fce46f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -89,7 +89,6 @@ include $(SRC_PATH)/rules.mak
 
 GENERATED_FILES = qemu-version.h config-host.h qemu-options.def
 
-#see Makefile.objs for the definition of QAPI_MODULES
 GENERATED_QAPI_FILES = qapi/qapi-builtin-types.h qapi/qapi-builtin-types.c
 GENERATED_QAPI_FILES += qapi/qapi-types.h qapi/qapi-types.c
 GENERATED_QAPI_FILES += $(QAPI_MODULES:%=qapi/qapi-types-%.h)
@@ -608,7 +607,11 @@ clean:
        rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
        rm -f qemu-options.def
        rm -f *.msi
-       find . \( -name '*.so' -o -name '*.dll' -o -name '*.mo' -o -name '*.[oda]' \) -type f -exec rm {} +
+       find . \( -name '*.so' -o -name '*.dll' -o -name '*.mo' -o -name '*.[oda]' \) -type f \
+               ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
+               ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
+               ! -path ./roms/edk2/BaseTools/Source/Python/UPT/Dll/sqlite3.dll \
+               -exec rm {} +
        rm -f $(filter-out %.tlb,$(TOOLS)) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
        rm -f fsdev/*.pod scsi/*.pod
        rm -f qemu-img-cmds.h