Skip to contentSkip to conversation

linux-user: disable qemu-bridge-helper and socket_scm_helper build

PATCH Superseded Laurent Vivier 2 participants 3 messages Jun 5, 2018 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: disable qemu-bridge-helper and socket_scm_helper build

linux-user targets don't need them, and if we ask to build statically linked binaries some static binaries they need are not available.

---
 Makefile               | 2 ++
 tests/Makefile.include | 2 ++
 2 files changed, 4 insertions(+)
Makefile +2 -0
index 6d588d1f71..5f198ee4bb 100644
@@ -351,7 +351,9 @@ $(call set-vpath, $(SRC_PATH))
 
 LIBS+=-lz $(LIBS_TOOLS)
 
+ifeq ($(CONFIG_SOFTMMU),y)
 HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+endif
 
 ifdef BUILD_DOCS
 DOCS=qemu-doc.html qemu-doc.txt qemu.1 qemu-img.1 qemu-nbd.8 qemu-ga.8
tests/Makefile.include +2 -0
index 86f90c0cb0..adaa5274c8 100644
@@ -923,7 +923,9 @@ check-report.html: check-report.xml
 
 # Other tests
 
+ifeq ($(CONFIG_SOFTMMU),y)
 QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
+endif
 
 .PHONY: check-tests/qemu-iotests-quick.sh
 check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y)
Signature · 1 line
2.14.3
#1 lore raw
Quoted 14 lines · Laurent Vivier

linux-user targets don't need them, and if we ask to build statically linked binaries some static binaries they need are not available.

---
 Makefile               | 2 ++
 tests/Makefile.include | 2 ++
 2 files changed, 4 insertions(+)
Makefile +0 -0
index 6d588d1f71..5f198ee4bb 100644

Makefile $(call set-vpath, $(SRC_PATH)) · line 356

Quoted 6 lines
Makefile +2 -0
@@ -351,7 +351,9 @@ $(call set-vpath, $(SRC_PATH))
 
 LIBS+=-lz $(LIBS_TOOLS)
 
+ifeq ($(CONFIG_SOFTMMU),y)
 HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+endif

HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) = qemu-bridge-helper$(EXESUF)

?

tests/Makefile.include check-report.html: check-report.xml · line 928

Quoted 13 lines
Makefile +0 -0
 ifdef BUILD_DOCS
 DOCS=qemu-doc.html qemu-doc.txt qemu.1 qemu-img.1 qemu-nbd.8 qemu-ga.8
tests/Makefile.include +2 -0
index 86f90c0cb0..adaa5274c8 100644
@@ -923,7 +923,9 @@ check-report.html: check-report.xml
 
 # Other tests
 
+ifeq ($(CONFIG_SOFTMMU),y)
 QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
+endif

Do we also need to do something to ensure that the tests that use this helper don't run, or does that happen automatically?

thanks
-- PMM

#2 lore raw

Le 05/06/2018 à 16:00, Peter Maydell a écrit :

Quoted 16 lines · Laurent Vivier
Quoted 15 lines

linux-user targets don't need them, and if we ask to build statically linked binaries some static binaries they need are not available.

---
 Makefile               | 2 ++
 tests/Makefile.include | 2 ++
 2 files changed, 4 insertions(+)
Makefile +0 -0
index 6d588d1f71..5f198ee4bb 100644
@@ -351,7 +351,9 @@ $(call set-vpath, $(SRC_PATH))
 
Quoted 9 lines

Makefile $(call set-vpath, $(SRC_PATH)) · line 356

Quoted 5 lines
Makefile +2 -0
 LIBS+=-lz $(LIBS_TOOLS)
 
+ifeq ($(CONFIG_SOFTMMU),y)
 HELPERS-$(CONFIG_LINUX) = qemu-bridge-helper$(EXESUF)
+endif

HELPERS-$(call land,$(CONFIG_SOFTMMU),$(CONFIG_LINUX)) = qemu-bridge-helper$(EXESUF)

I can try that.

Quoted 9 lines
Quoted 9 lines
Makefile +0 -0
 ifdef BUILD_DOCS
 DOCS=qemu-doc.html qemu-doc.txt qemu.1 qemu-img.1 qemu-nbd.8 qemu-ga.8
tests/Makefile.include +0 -0
index 86f90c0cb0..adaa5274c8 100644
@@ -923,7 +923,9 @@ check-report.html: check-report.xml
 
Quoted 8 lines

tests/Makefile.include check-report.html: check-report.xml · line 928

Quoted 5 lines
tests/Makefile.include +2 -0
 # Other tests
 
+ifeq ($(CONFIG_SOFTMMU),y)
 QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
+endif

Do we also need to do something to ensure that the tests that use this helper don't run, or does that happen automatically?

I don't think iotests can run if no machine is configured.

qemu-iotests needs *-softmmu targets, see in tests/qemu-iotests/check

If I tried a "make check-block" with --disable-system it fails with

.../tests/qemu-iotests-quick.sh
check: qemu not found

Thanks,
Laurent