Skip to contentSkip to conversation

configure: Avoid compiling system tools on user build by default

PATCH In review Philippe Mathieu-Daudé 3 participants 3 messages Feb 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configure: Avoid compiling system tools on user build by default

From: Philippe Mathieu-Daudé <[email protected]>

User-mode does not need the sytem tools. Do not build them by default if user specified --disable-system.

This disables building the following binary on a user-only build:

- elf2dmp
- qemu-edid
- qemu-ga
- qemu-img
- qemu-io
- qemu-nbd
- ivshmem-client
- ivshmem-server

The qemu-user binary is not affected by this change.

---
v2:
- use simpler if/else statement (therefore not adding Richard R-b)
- improved description (Aleksandar)

---
 configure | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
configure +11 -1
index 16f94cd96b..d1877a60f5 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,16 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test -z "$want_tools"; then
+    if test "$softmmu" = "no"; then
+        want_tools=no
+    else
+        want_tools=yes
+    fi
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
Signature · 1 line
2.21.1
Reviewed-by on v2 1/1
#1 lore raw

Le 17/02/2020 à 10:59, Philippe Mathieu-Daudé a écrit :

Quoted 48 lines

From: Philippe Mathieu-Daudé <[email protected]>

User-mode does not need the sytem tools. Do not build them by default if user specified --disable-system.

This disables building the following binary on a user-only build:

- elf2dmp
- qemu-edid
- qemu-ga
- qemu-img
- qemu-io
- qemu-nbd
- ivshmem-client
- ivshmem-server

The qemu-user binary is not affected by this change.

---
v2:
- use simpler if/else statement (therefore not adding Richard R-b)
- improved description (Aleksandar)

---
 configure | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
configure +4 -1
index 16f94cd96b..d1877a60f5 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,16 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test -z "$want_tools"; then

configure else · line 2214

Quoted 10 lines
configure +7 -0
+    if test "$softmmu" = "no"; then
+        want_tools=no
+    else
+        want_tools=yes
+    fi
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
#2 lore raw
In reply to Philippe Mathieu-Daudé

11:00 AM Pon, 17.02.2020. Philippe Mathieu-Daudé <[email protected]> је написао/ла:

Quoted 4 lines

From: Philippe Mathieu-Daudé <[email protected]>

User-mode does not need the sytem tools.

system

Quoted 2 lines

Do not build them by
default if user specified --disable-system.

specifies

Quoted 2 lines

This disables building the following binary on a user-only build:

binaries

Quoted 11 lines

- elf2dmp
- qemu-edid
- qemu-ga
- qemu-img
- qemu-io
- qemu-nbd
- ivshmem-client
- ivshmem-server

The qemu-user binary is not affected by this change.

binaries are

Quoted 43 lines

---
v2:
- use simpler if/else statement (therefore not adding Richard R-b)
- improved description (Aleksandar)

---
 configure | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
configure +11 -2
index 16f94cd96b..d1877a60f5 100755
@@ -455,7 +455,7 @@ guest_agent_ntddscsi="no"
 guest_agent_msi=""
 vss_win32_sdk=""
 win_sdk="no"
-want_tools="yes"
+want_tools=""
 libiscsi=""
 libnfs=""
 coroutine=""
@@ -2199,6 +2199,16 @@ else
     echo big/little test failed
 fi
 
+##########################################
+# system tools
+if test -z "$want_tools"; then
+    if test "$softmmu" = "no"; then
+        want_tools=no
+    else
+        want_tools=yes
+    fi
+fi
+
 ##########################################
 # cocoa implies not SDL or GTK
 # (the cocoa UI code currently assumes it is always the active UI
--

2.21.1