From d8d7f96b69459babfc95dab0a3defa0bad6105bd Mon Sep 17 00:00:00 2001 From: Jia He Date: Fri, 8 May 2020 09:57:19 +0800 Subject: [PATCH] scripts: Disable capstone for reducing qemu binary size Capstone is a disassembly framework which is not required for Kata. Disabling it in configure can reduce ~6M bytes on arm64. -rwxr-xr-x 71977368 May 8 09:32 qemu-system-aarch64.with.capstone* -rwxr-xr-x 65676640 May 8 09:39 qemu-system-aarch64.without.capstone* Fixes: #1044 Signed-off-by: Jia He --- scripts/configure-hypervisor.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/configure-hypervisor.sh b/scripts/configure-hypervisor.sh index 70ef472803..71a3d64002 100755 --- a/scripts/configure-hypervisor.sh +++ b/scripts/configure-hypervisor.sh @@ -345,6 +345,9 @@ generate_qemu_options() { # implicitly enabled in Fedora 27). qemu_options+=(size:--disable-linux-aio) + # Disable Capstone + qemu_options+=(size:--disable-capstone) + if [[ "${qemu_version_major}" -ge 3 ]]; then # Disable graphics qemu_options+=(size:--disable-virglrenderer)