All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 16:52   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 02/30] package/qemu: bump version Yann E. MORIN
                   ` (28 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Although QEMU has a ./configure script, it is not an autotools-package,
so switch to providing build and install commands, and to using
generic-package.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/qemu.mk | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 827bb77..9654b90 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -59,22 +59,26 @@ ifeq ($(HOST_QEMU_ARCH),powerpc)
 endif
 HOST_QEMU_TARGETS = $(HOST_QEMU_ARCH)-linux-user
 
-# Note: although QEMU has a ./configure script, it is not a real autotools
-# package, and ./configure chokes on options such as --host or --target.
-# So, provide out own _CONFIGURE_CMDS to override the defaults.
 define HOST_QEMU_CONFIGURE_CMDS
-	(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure   \
+	cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure    \
 		--target-list="$(HOST_QEMU_TARGETS)"    \
 		--prefix="$(HOST_DIR)/usr"              \
 		--interp-prefix=$(STAGING_DIR)          \
 		--cc="$(HOSTCC)"                        \
 		--host-cc="$(HOSTCC)"                   \
 		--extra-cflags="$(HOST_CFLAGS)"         \
-		--extra-ldflags="$(HOST_LDFLAGS)"       \
-	)
+		--extra-ldflags="$(HOST_LDFLAGS)"
 endef
 
-$(eval $(host-autotools-package))
+define HOST_QEMU_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define HOST_QEMU_INSTALL_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install
+endef
+
+$(eval $(host-generic-package))
 
 # variable used by other packages
 QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 02/30] package/qemu: bump version
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 16:52   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
                   ` (27 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/qemu.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 9654b90..0af07d9 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-QEMU_VERSION = 2.1.0
+QEMU_VERSION = 2.1.2
 QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2
 QEMU_SITE = http://wiki.qemu.org/download
 QEMU_LICENSE = GPLv2 LGPLv2.1 MIT BSD-3c BSD-2c Others/BSD-1c
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only)
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 02/30] package/qemu: bump version Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 16:54   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 04/30] package/qemu: add basic target selection Yann E. MORIN
                   ` (26 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Untested for other architectures, so only enabled for known-working ones.

We explicitly disable all features that depends on other packages,
for now. Such features will be added one by one in the next patches.
Features that do not rely on external packages are explicitly enabled
to catch the dependencies on toolchain features early.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in      |  1 +
 package/qemu/Config.in | 26 ++++++++++++++++++
 package/qemu/qemu.mk   | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 99 insertions(+)
 create mode 100644 package/qemu/Config.in

diff --git a/package/Config.in b/package/Config.in
index 2dbe6f8..fe3e03c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -926,6 +926,7 @@ menu "Miscellaneous"
 	source "package/haveged/Config.in"
 	source "package/mcrypt/Config.in"
 	source "package/mobile-broadband-provider-info/Config.in"
+	source "package/qemu/Config.in"
 	source "package/shared-mime-info/Config.in"
 	source "package/snowball-init/Config.in"
 	source "package/sound-theme-borealis/Config.in"
diff --git a/package/qemu/Config.in b/package/qemu/Config.in
new file mode 100644
index 0000000..d323305
--- /dev/null
+++ b/package/qemu/Config.in
@@ -0,0 +1,26 @@
+comment "QEMU requires a toolchain with threads"
+	depends on BR2_i386 || BR2_x86_64
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
+
+config BR2_PACKAGE_QEMU
+	bool "QEMU"
+	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_PIXMAN
+	select BR2_PACKAGE_ZLIB
+	help
+	  QEMU is a generic and open source machine emulator and virtualizer.
+
+	  When used as a machine emulator, QEMU can run OSes and programs made
+	  for one machine (e.g. an ARM board) on a different machine (e.g.
+	  your own PC). By using dynamic translation, it achieves very good
+	  performance.
+
+	  When used as a virtualizer, QEMU achieves near native performances
+	  by executing the guest code directly on the host CPU. QEMU supports
+	  virtualization when executing under the Xen hypervisor or using the
+	  KVM kernel module in Linux. When using KVM, QEMU can virtualize x86,
+	  server and embedded PowerPC, and S390 guests.
+
+	  http://qemu.org/
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 0af07d9..d6ccc08 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -82,3 +82,75 @@ $(eval $(host-generic-package))
 
 # variable used by other packages
 QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)
+
+#-------------------------------------------------------------
+# Target-qemu
+
+QEMU_DEPENDENCIES = host-pkgconf host-python libglib2 zlib pixman
+
+# Need the LIBS variable because librt and libm are
+# not automatically pulled. :-(
+QEMU_LIBS = -lrt -lm
+
+QEMU_OPTS =
+
+QEMU_VARS = \
+	LIBTOOL=$(HOST_DIR)/usr/bin/libtool \
+    PYTHON=$(HOST_DIR)/usr/bin/python \
+    PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
+
+define QEMU_CONFIGURE_CMDS
+	( cd $(@D);                                 \
+	    LIBS='$(QEMU_LIBS)'                     \
+	    $(TARGET_CONFIGURE_OPTS)                \
+	    $(TARGET_CONFIGURE_ARGS)                \
+	    $(QEMU_VARS)                            \
+	    ./configure                             \
+	        --prefix=/usr                       \
+	        --cross-prefix=$(TARGET_CROSS)      \
+	        --with-system-pixman                \
+	        --audio-drv-list=                   \
+	        --enable-kvm                        \
+	        --enable-attr                       \
+	        --enable-vhost-net                  \
+	        --enable-system                     \
+	        --enable-linux-user                 \
+	        --disable-bsd-user                  \
+	        --disable-xen                       \
+	        --disable-slirp                     \
+	        --disable-sdl                       \
+	        --disable-vnc                       \
+	        --disable-virtfs                    \
+	        --disable-brlapi                    \
+	        --disable-curses                    \
+	        --disable-curl                      \
+	        --disable-fdt                       \
+	        --disable-bluez                     \
+	        --disable-guest-base                \
+	        --disable-uuid                      \
+	        --disable-vde                       \
+	        --disable-linux-aio                 \
+	        --disable-cap-ng                    \
+	        --disable-docs                      \
+	        --disable-spice                     \
+	        --disable-rbd                       \
+	        --disable-libiscsi                  \
+	        --disable-usb-redir                 \
+	        --disable-smartcard-nss             \
+	        --disable-strip                     \
+	        --disable-seccomp                   \
+	        --disable-sparse                    \
+	        --disable-tools                     \
+	        $(QEMU_OPTS)                        \
+	)
+endef
+
+define QEMU_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define QEMU_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(QEMU_MAKE_ENV) DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 04/30] package/qemu: add basic target selection
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (2 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 16:59   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 05/30] package/qemu: add fine-grained " Yann E. MORIN
                   ` (25 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 18 ++++++++++++++++++
 package/qemu/qemu.mk   | 14 ++++++++++++--
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index d323305..a8fe9c8 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -24,3 +24,21 @@ config BR2_PACKAGE_QEMU
 	  server and embedded PowerPC, and S390 guests.
 
 	  http://qemu.org/
+
+if BR2_PACKAGE_QEMU
+
+comment "Emulators selection"
+
+config BR2_PACKAGE_QEMU_SYSTEM
+	bool "Enable all systems emulation"
+	help
+	  Say 'y' to build all system emulators/virtualisers that QEMU supports.
+
+config BR2_PACKAGE_QEMU_LINUX_USER
+	bool "Enable all Linux user-land emulation"
+	help
+	  Say 'y' to build all Linux user-land emulators that QEMU supports.
+
+# Note: bsd-user can not be build on Linux
+
+endif # BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index d6ccc08..9f76145 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -99,6 +99,18 @@ QEMU_VARS = \
     PYTHON=$(HOST_DIR)/usr/bin/python \
     PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
 
+ifeq ($(BR2_PACKAGE_QEMU_SYSTEM),y)
+QEMU_OPTS += --enable-system
+else
+QEMU_OPTS += --disable-system
+endif
+
+ifeq ($(BR2_PACKAGE_QEMU_LINUX_USER),y)
+QEMU_OPTS += --enable-linux-user
+else
+QEMU_OPTS += --disable-linux-user
+endif
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                 \
 	    LIBS='$(QEMU_LIBS)'                     \
@@ -113,8 +125,6 @@ define QEMU_CONFIGURE_CMDS
 	        --enable-kvm                        \
 	        --enable-attr                       \
 	        --enable-vhost-net                  \
-	        --enable-system                     \
-	        --enable-linux-user                 \
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
 	        --disable-slirp                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 05/30] package/qemu: add fine-grained target selection
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (3 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 04/30] package/qemu: add basic target selection Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 17:06   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends Yann E. MORIN
                   ` (24 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 21 +++++++++++++++++++++
 package/qemu/qemu.mk   |  4 ++++
 2 files changed, 25 insertions(+)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index a8fe9c8..d0006d5 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -29,6 +29,25 @@ if BR2_PACKAGE_QEMU
 
 comment "Emulators selection"
 
+config BR2_PACKAGE_QEMU_CUSTOM_TARGETS
+	string "Enable specific targets"
+	help
+	  Enter here the list of QEMU targets you want to build. For example:
+
+	    System emulation      | User-land emulation
+	    ----------------------+-----------------------
+	    i386-softmmu          | i386-linux-user
+	    arm-softmmu           | ppc-linux-user
+	    x86_64-softmmu        | sparc-bsd-user
+	    ...                   | ...
+
+config QEMU_FOO
+	bool # To break the indentation
+
+if BR2_PACKAGE_QEMU_CUSTOM_TARGETS = ""
+
+comment "... or you can select emulator families to enable, below:"
+
 config BR2_PACKAGE_QEMU_SYSTEM
 	bool "Enable all systems emulation"
 	help
@@ -41,4 +60,6 @@ config BR2_PACKAGE_QEMU_LINUX_USER
 
 # Note: bsd-user can not be build on Linux
 
+endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == ""
+
 endif # BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 9f76145..5d9fd48 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -111,6 +111,10 @@ else
 QEMU_OPTS += --disable-linux-user
 endif
 
+ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
+QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
+endif
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                 \
 	    LIBS='$(QEMU_LIBS)'                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (4 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 05/30] package/qemu: add fine-grained " Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 17:14   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
                   ` (23 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 17 +++++++++++++++++
 package/qemu/qemu.mk   | 12 ++++++++++--
 2 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index d0006d5..f81b6ca 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -62,4 +62,21 @@ config BR2_PACKAGE_QEMU_LINUX_USER
 
 endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == ""
 
+config QEMU_HAS_EMULS
+    def_bool y
+    depends on BR2_PACKAGE_QEMU_SYSTEM || BR2_PACKAGE_QEMU_LINUX_USER || BR2_PACKAGE_QEMU_CUSTOM_TARGETS != ""
+
+if QEMU_HAS_EMULS
+
+comment "Frontends"
+
+config BR2_PACKAGE_QEMU_SDL
+	bool "Enable SDL frontend"
+	select BR2_PACKAGE_SDL
+	help
+	  Say 'y' to enable the SDL frontend, that is, a graphical window
+	  presenting the VM's display.
+
+endif # QEMU_HAS_EMULS
+
 endif # BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 5d9fd48..24fc535 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -97,7 +97,8 @@ QEMU_OPTS =
 QEMU_VARS = \
 	LIBTOOL=$(HOST_DIR)/usr/bin/libtool \
     PYTHON=$(HOST_DIR)/usr/bin/python \
-    PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
+    PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
+    SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config
 
 ifeq ($(BR2_PACKAGE_QEMU_SYSTEM),y)
 QEMU_OPTS += --enable-system
@@ -115,6 +116,14 @@ ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
 QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_SDL),y)
+QEMU_OPTS += --enable-sdl
+QEMU_DEPENDENCIES += sdl
+QEMU_VARS += SDL_CONFIG=$(BR2_STAGING_DIR)/usr/bin/sdl-config
+else
+QEMU_OPTS += --disable-sdl
+endif
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                 \
 	    LIBS='$(QEMU_LIBS)'                     \
@@ -132,7 +141,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
 	        --disable-slirp                     \
-	        --disable-sdl                       \
 	        --disable-vnc                       \
 	        --disable-virtfs                    \
 	        --disable-brlapi                    \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (5 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-12 17:19   ` Peter Korsgaard
  2014-10-07 22:38 ` [Buildroot] [PATCH 08/30] package/qemu: add VNC jpeg and png compression Yann E. MORIN
                   ` (22 subsequent siblings)
  29 siblings, 1 reply; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in |  7 +++++++
 package/qemu/qemu.mk   | 11 ++++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index f81b6ca..1c359e4 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -70,6 +70,13 @@ if QEMU_HAS_EMULS
 
 comment "Frontends"
 
+config BR2_PACKAGE_QEMU_VNC
+	bool "Enable VNC frontend"
+	select BR2_PACKAGE_VNC
+	help
+	  Say 'y' to enable the VNC frontend, that is, QEMU will act as a
+	  VNC server presenting the VM's display.
+
 config BR2_PACKAGE_QEMU_SDL
 	bool "Enable SDL frontend"
 	select BR2_PACKAGE_SDL
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 24fc535..872bbb5 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -116,6 +116,12 @@ ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
 QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VNC),y)
+QEMU_OPTS += --enable-vnc
+else
+QEMU_OPTS += --disable-vnc
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_SDL),y)
 QEMU_OPTS += --enable-sdl
 QEMU_DEPENDENCIES += sdl
@@ -141,7 +147,10 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
 	        --disable-slirp                     \
-	        --disable-vnc                       \
+	        --disable-vnc-jpeg                  \
+	        --disable-vnc-png                   \
+	        --disable-vnc-tls                   \
+	        --disable-vnc-sasl                  \
 	        --disable-virtfs                    \
 	        --disable-brlapi                    \
 	        --disable-curses                    \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 08/30] package/qemu: add VNC jpeg and png compression
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (6 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 09/30] package/qemu: add VNC TLS-encryption Yann E. MORIN
                   ` (21 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 10 ++++++++++
 package/qemu/qemu.mk   | 16 ++++++++++++++--
 2 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 1c359e4..beb5fe8 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -77,6 +77,16 @@ config BR2_PACKAGE_QEMU_VNC
 	  Say 'y' to enable the VNC frontend, that is, QEMU will act as a
 	  VNC server presenting the VM's display.
 
+config BR2_PACKAGE_QEMU_VNC_PNG
+	bool "PNG compression"
+	depends on BR2_PACKAGE_QEMU_VNC
+	select BR2_PACKAGE_LIBPNG
+
+config BR2_PACKAGE_QEMU_VNC_JPEG
+	bool "JPEG compression"
+	depends on BR2_PACKAGE_QEMU_VNC
+	select BR2_PACKAGE_JPEG
+
 config BR2_PACKAGE_QEMU_SDL
 	bool "Enable SDL frontend"
 	select BR2_PACKAGE_SDL
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 872bbb5..715292a 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -122,6 +122,20 @@ else
 QEMU_OPTS += --disable-vnc
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VNC_PNG),y)
+QEMU_OPTS += --enable-vnc-png
+QEMU_DEPENDENCIES += libpng
+else
+QEMU_OPTS += --disable-vnc-png
+endif
+
+ifeq ($(BR2_PACKAGE_QEMU_VNC_JPEG),y)
+QEMU_OPTS += --enable-vnc-jpeg
+QEMU_DEPENDENCIES += jpeg
+else
+QEMU_OPTS += --disable-vnc-jpeg
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_SDL),y)
 QEMU_OPTS += --enable-sdl
 QEMU_DEPENDENCIES += sdl
@@ -147,8 +161,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
 	        --disable-slirp                     \
-	        --disable-vnc-jpeg                  \
-	        --disable-vnc-png                   \
 	        --disable-vnc-tls                   \
 	        --disable-vnc-sasl                  \
 	        --disable-virtfs                    \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 09/30] package/qemu: add VNC TLS-encryption
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (7 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 08/30] package/qemu: add VNC jpeg and png compression Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 10/30] package/qemu: add option to not install blobs Yann E. MORIN
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Only TLS is supported, as buildroot has no package for the SASL library.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 11 +++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index beb5fe8..9c92388 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -87,6 +87,17 @@ config BR2_PACKAGE_QEMU_VNC_JPEG
 	depends on BR2_PACKAGE_QEMU_VNC
 	select BR2_PACKAGE_JPEG
 
+# TLS does not work with static link, because the gnutls .pc is missing a
+# dependency on libintl... :-(
+config BR2_PACKAGE_QEMU_VNC_TLS
+	bool "TLS encryption"
+	depends on BR2_PACKAGE_QEMU_VNC
+	depends on !BR2_PREFER_STATIC_LIB
+	select BR2_PACKAGE_GNUTLS
+
+comment "VNC TLS encryption does not work for static link"
+    depends on BR2_PACKAGE_QEMU_VNC && BR2_PREFER_STATIC_LIB
+
 config BR2_PACKAGE_QEMU_SDL
 	bool "Enable SDL frontend"
 	select BR2_PACKAGE_SDL
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 715292a..10022cf 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -136,6 +136,13 @@ else
 QEMU_OPTS += --disable-vnc-jpeg
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VNC_TLS),y)
+QEMU_OPTS += --enable-vnc-tls
+QEMU_DEPENDENCIES += gnutls
+else
+QEMU_OPTS += --disable-vnc-tls
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_SDL),y)
 QEMU_OPTS += --enable-sdl
 QEMU_DEPENDENCIES += sdl
@@ -161,7 +168,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
 	        --disable-slirp                     \
-	        --disable-vnc-tls                   \
 	        --disable-vnc-sasl                  \
 	        --disable-virtfs                    \
 	        --disable-brlapi                    \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 10/30] package/qemu: add option to not install blobs
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (8 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 09/30] package/qemu: add VNC TLS-encryption Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 11/30] package/qemu: add option to remove unwanted keymaps Yann E. MORIN
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 16 ++++++++++++++++
 package/qemu/qemu.mk   |  4 ++++
 2 files changed, 20 insertions(+)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 9c92388..1118eec 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -105,6 +105,22 @@ config BR2_PACKAGE_QEMU_SDL
 	  Say 'y' to enable the SDL frontend, that is, a graphical window
 	  presenting the VM's display.
 
+comment "Misc. features"
+
+config BR2_PACKAGE_QEMU_BLOBS
+	bool "Install binary blobs"
+	default y
+	help
+	  Say 'y' here (the default) to install binary blobs (such as BIOS
+	  or firmwares for the different machines simulated by QEMU).
+	  Say 'n' to not install those blobs.
+	  
+	  Note: Some machines may be unbootable without those blobs.
+	        If unsure, say 'y'.
+	  
+	  Note2: This has nothing to do with the licensing of the blobs;
+	         some (most?) even have a free and/or open source license.
+
 endif # QEMU_HAS_EMULS
 
 endif # BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 10022cf..ab9862a 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -151,6 +151,10 @@ else
 QEMU_OPTS += --disable-sdl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
+QEMU_OPTS += --disable-blobs
+endif
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                 \
 	    LIBS='$(QEMU_LIBS)'                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 11/30] package/qemu: add option to remove unwanted keymaps
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (9 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 10/30] package/qemu: add option to not install blobs Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 12/30] package/qemu: add uuid support Yann E. MORIN
                   ` (18 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 12 +++++++++++
 package/qemu/qemu.mk   | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 1118eec..05b884c 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -121,6 +121,18 @@ config BR2_PACKAGE_QEMU_BLOBS
 	  Note2: This has nothing to do with the licensing of the blobs;
 	         some (most?) even have a free and/or open source license.
 
+config BR2_PACKAGE_QEMU_KEYMAPS
+	string "Keymaps to keep"
+	default "all"
+	help
+	  Enter the list of keymap(s) to keep. To keep many keymaps, you can
+	  use shell globs, or you can enter a space-separated list of keymaps:
+	    - empty to remove all keymaps
+	    - 'all' to keep all keymaps
+	    - 'fr*' to keep all french keymaps
+	    - 'de fr* en-*' for german, french and english keymaps
+	    - and so on (see the QEMU source for all supported keymaps)
+
 endif # QEMU_HAS_EMULS
 
 endif # BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index ab9862a..f168298 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -155,6 +155,61 @@ ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
 
+# Post-install removal of unwanted keymaps:
+# - if we want 'all', we do nothing;
+# - if we want none, we completely remove the keymap dir
+# - otherwise:
+#   - we completely remove the keymap dir; and recreate it empty
+#   - we recursively copy only those keymaps we want (as keymaps may include
+#     some common files)
+#
+# NOTE-1: we need the un-quoted list of keymaps, so it is interpreted as a glob
+#         by the shell.
+# NOTE-2: yes, all (current!) keymaps do include the 'common' keymap, which in
+#         turn includes the 'modifiers' keymap, so we could unconditionally
+#         copy those two, for a much simpler code. Doing it the way it's done
+#         is more generic, and will adapt to any future keymaps which has
+#         multiple includes, or none.
+# NOTE-3: we can't use $(SED), because it expands to include the '-i' option,
+#         which we do *not* want here, because we are not munging a file, but
+#         using sed as a enhanced grep.
+#
+QEMU_KEYMAPS = $(call qstrip,$(BR2_PACKAGE_QEMU_KEYMAPS))
+
+ifeq ($(QEMU_KEYMAPS),all)      #--- Keep all keymaps ---#
+define QEMU_POST_INSTALL_KEYMAPS
+	@: Nothing
+endef
+
+else ifeq ($(QEMU_KEYMAPS),)    #--- Remove all keymaps ---#
+define QEMU_POST_INSTALL_KEYMAPS
+	rm -rf "$(TARGET_DIR)/usr/share/qemu/keymaps"
+endef
+
+else                            #--- Keep selected keymaps ---#
+define QEMU_POST_INSTALL_KEYMAPS
+	rm -rf "$(TARGET_DIR)/usr/share/qemu/keymaps"
+	mkdir -p "$(TARGET_DIR)/usr/share/qemu/keymaps"
+	add_keymap() {                                                  \
+	    local k="$${1}"; local dest="$${2}";                        \
+	    if [ -n "$${k}" -a ! -f "$${dest}/$${k}" ]; then            \
+	        cp -v "$${k}" "$${dest}";                               \
+	        for k in $$(sed -r -e '/^include[[:space:]]+(.*)$$/!d;' \
+	                           -e 's//\1/;' "$${k}" ); do           \
+	            add_keymap "$${k}" "$${dest}";                      \
+	        done;                                                   \
+	    fi;                                                         \
+	};                                                              \
+	cd $(@D)/pc-bios/keymaps;                                       \
+	for k in $(QEMU_KEYMAPS); do                                    \
+	    add_keymap "$${k}" "$(TARGET_DIR)/usr/share/qemu/keymaps";  \
+	done
+endef
+
+endif # Keymaps to keep
+
+QEMU_POST_INSTALL_TARGET_HOOKS += QEMU_POST_INSTALL_KEYMAPS
+
 define QEMU_CONFIGURE_CMDS
 	( cd $(@D);                                 \
 	    LIBS='$(QEMU_LIBS)'                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 12/30] package/qemu: add uuid support
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (10 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 11/30] package/qemu: add option to remove unwanted keymaps Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 13/30] package/qemu: add support for capabilities Yann E. MORIN
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 10 ++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 05b884c..83d9d76 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -107,6 +107,16 @@ config BR2_PACKAGE_QEMU_SDL
 
 comment "Misc. features"
 
+config BR2_PACKAGE_QEMU_UUID
+	bool "Enable VMs UUID"
+	depends on BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	help
+	  Say 'y' here to have QEMU support UUIDs for VMs.
+
+comment "UUID support requires util-linux (for libuuid)"
+	depends on !BR2_PACKAGE_UTIL_LINUX
+
 config BR2_PACKAGE_QEMU_BLOBS
 	bool "Install binary blobs"
 	default y
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index f168298..d10d7dd 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -151,6 +151,13 @@ else
 QEMU_OPTS += --disable-sdl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
+QEMU_OPTS += --enable-uuid
+QEMU_DEPENDENCIES += util-linux
+else
+QEMU_OPTS += --disable-uuid
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
@@ -235,7 +242,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-fdt                       \
 	        --disable-bluez                     \
 	        --disable-guest-base                \
-	        --disable-uuid                      \
 	        --disable-vde                       \
 	        --disable-linux-aio                 \
 	        --disable-cap-ng                    \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 13/30] package/qemu: add support for capabilities
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (11 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 12/30] package/qemu: add uuid support Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 14/30] package/qemu: add attr/xattr option Yann E. MORIN
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in |  7 +++++++
 package/qemu/qemu.mk   | 11 ++++++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 83d9d76..7fa09cb 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -117,6 +117,13 @@ config BR2_PACKAGE_QEMU_UUID
 comment "UUID support requires util-linux (for libuuid)"
 	depends on !BR2_PACKAGE_UTIL_LINUX
 
+config BR2_PACKAGE_QEMU_CAP
+	bool "Enable capabilities"
+	select BR2_PACKAGE_LIBCAP
+	select BR2_PACKAGE_LIBCAP_NG
+	help
+	  Say 'y' here if you want QEMU to support capabilities.
+
 config BR2_PACKAGE_QEMU_BLOBS
 	bool "Install binary blobs"
 	default y
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index d10d7dd..df8c324 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -158,6 +158,16 @@ else
 QEMU_OPTS += --disable-uuid
 endif
 
+# There's no configure flag to disable use of libcap
+# so we must use an environment variable
+ifeq ($(BR2_PACKAGE_QEMU_CAP),y)
+QEMU_OPTS += --enable-cap-ng
+QEMU_DEPENDENCIES += libcap libcap-ng
+else
+QEMU_OPTS += --disable-cap-ng
+QEMU_VARS += cap=no
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
@@ -244,7 +254,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-guest-base                \
 	        --disable-vde                       \
 	        --disable-linux-aio                 \
-	        --disable-cap-ng                    \
 	        --disable-docs                      \
 	        --disable-spice                     \
 	        --disable-rbd                       \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 14/30] package/qemu: add attr/xattr option
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (12 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 13/30] package/qemu: add support for capabilities Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 15/30] package/qemu: add support for virtfs Yann E. MORIN
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 6 ++++++
 package/qemu/qemu.mk   | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 7fa09cb..90e78a2 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -124,6 +124,12 @@ config BR2_PACKAGE_QEMU_CAP
 	help
 	  Say 'y' here if you want QEMU to support capabilities.
 
+config BR2_PACKAGE_QEMU_ATTR
+	bool "Enable attr and xattr"
+	help
+	  Say 'y' here to have QEMU support attributes (attr) and eXtended
+	  attibutes (xattr).
+
 config BR2_PACKAGE_QEMU_BLOBS
 	bool "Install binary blobs"
 	default y
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index df8c324..edc83f8 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -168,6 +168,12 @@ QEMU_OPTS += --disable-cap-ng
 QEMU_VARS += cap=no
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_ATTR),y)
+QEMU_OPTS += --enable-attr
+else
+QEMU_OPTS += --disable-attr
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
@@ -239,7 +245,6 @@ define QEMU_CONFIGURE_CMDS
 	        --with-system-pixman                \
 	        --audio-drv-list=                   \
 	        --enable-kvm                        \
-	        --enable-attr                       \
 	        --enable-vhost-net                  \
 	        --disable-bsd-user                  \
 	        --disable-xen                       \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 15/30] package/qemu: add support for virtfs
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (13 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 14/30] package/qemu: add attr/xattr option Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 16/30] package/qemu: add support for cURL Yann E. MORIN
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 16 ++++++++++++++++
 package/qemu/qemu.mk   |  7 ++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 90e78a2..b18a686 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -105,6 +105,22 @@ config BR2_PACKAGE_QEMU_SDL
 	  Say 'y' to enable the SDL frontend, that is, a graphical window
 	  presenting the VM's display.
 
+comment "Block backends"
+
+config BR2_PACKAGE_QEMU_VIRTFS
+	bool "Enable plan9 ressources using VirtFS"
+	select BR2_PACKAGE_QEMU_CAP
+	select BR2_PACKAGE_QEMU_ATTR
+	help
+	  Say 'y' here if you want QEMU to provide a plan9 virtual "share"
+	  accessible from the guest OS for relatively fast access to host
+	  files.
+	  
+	  This requires that the guest OS is capable of accessing plan9
+	  ressources (typically, in Linux, this is done by a network
+	  file-system called 9p, and can be accelerated by using the 9p
+	  virtio).
+
 comment "Misc. features"
 
 config BR2_PACKAGE_QEMU_UUID
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index edc83f8..e0da18b 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -151,6 +151,12 @@ else
 QEMU_OPTS += --disable-sdl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VIRTFS),y)
+QEMU_OPTS += --enable-virtfs
+else
+QEMU_OPTS += --disable-virtfs
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -250,7 +256,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-xen                       \
 	        --disable-slirp                     \
 	        --disable-vnc-sasl                  \
-	        --disable-virtfs                    \
 	        --disable-brlapi                    \
 	        --disable-curses                    \
 	        --disable-curl                      \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 16/30] package/qemu: add support for cURL
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (14 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 15/30] package/qemu: add support for virtfs Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 17/30] package/qemu: enable use of the curses frontend Yann E. MORIN
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

QEMU can use libcurl as a block backend, to access remote block devices.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 10 ++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index b18a686..a48181b 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -121,6 +121,16 @@ config BR2_PACKAGE_QEMU_VIRTFS
 	  file-system called 9p, and can be accelerated by using the 9p
 	  virtio).
 
+config BR2_PACKAGE_QEMU_CURL
+	bool "Enable remote block-devices using cURL"
+	depends on !BR2_PREFER_STATIC_LIB
+	select BR2_PACKAGE_LIBCURL
+	help
+	  Say 'y' to access remote block-devices using libcurl.
+
+comment "cURL support is not possible with static linking"
+    depends on BR2_PREFER_STATIC_LIB
+
 comment "Misc. features"
 
 config BR2_PACKAGE_QEMU_UUID
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index e0da18b..e678ba3 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -157,6 +157,13 @@ else
 QEMU_OPTS += --disable-virtfs
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_CURL),y)
+QEMU_OPTS += --enable-curl
+QEMU_DEPENDENCIES += libcurl
+else
+QEMU_OPTS += --disable-curl
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -258,7 +265,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-vnc-sasl                  \
 	        --disable-brlapi                    \
 	        --disable-curses                    \
-	        --disable-curl                      \
 	        --disable-fdt                       \
 	        --disable-bluez                     \
 	        --disable-guest-base                \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 17/30] package/qemu: enable use of the curses frontend
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (15 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 16/30] package/qemu: add support for cURL Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 18/30] package/qemu: add BlueZ connectivity Yann E. MORIN
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 11 +++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index a48181b..471a704 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -105,6 +105,17 @@ config BR2_PACKAGE_QEMU_SDL
 	  Say 'y' to enable the SDL frontend, that is, a graphical window
 	  presenting the VM's display.
 
+config BR2_PACKAGE_QEMU_CURSES
+	bool "Enable the curses frontend"
+	select BR2_PACKAGE_NCURSES
+	help
+	  Say 'y' to use curses to display the text-mode of VGA outpout.
+	  
+	  If the VM's graphic adapter does not support VGA text-mode, or it
+	  is in graphical mode, then nothing will be displayed with this
+	  frontend (although you can still use the SDL or VNC frontends to
+	  display the graphical output).
+
 comment "Block backends"
 
 config BR2_PACKAGE_QEMU_VIRTFS
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index e678ba3..de74f7d 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -151,6 +151,13 @@ else
 QEMU_OPTS += --disable-sdl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_CURSES),y)
+QEMU_OPTS += --enable-curses
+QEMU_DEPENDENCIES += ncurses
+else
+QEMU_OPTS += --disable-curses
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_VIRTFS),y)
 QEMU_OPTS += --enable-virtfs
 else
@@ -264,7 +271,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-slirp                     \
 	        --disable-vnc-sasl                  \
 	        --disable-brlapi                    \
-	        --disable-curses                    \
 	        --disable-fdt                       \
 	        --disable-bluez                     \
 	        --disable-guest-base                \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 18/30] package/qemu: add BlueZ connectivity
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (16 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 17/30] package/qemu: enable use of the curses frontend Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 19/30] package/qemu: add AIO support Yann E. MORIN
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 11 +++++++++++
 package/qemu/qemu.mk   |  8 +++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 471a704..41bd56f 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -142,6 +142,17 @@ config BR2_PACKAGE_QEMU_CURL
 comment "cURL support is not possible with static linking"
     depends on BR2_PREFER_STATIC_LIB
 
+comment "Networking"
+
+config BR2_PACKAGE_QEMU_BLUEZ
+	bool "Enable BlueZ connectivity"
+	depends on BR2_PACKAGE_BLUEZ_UTILS
+	help
+	  Say 'y' here to enable BlueZ (bluetooth) connectivity in QEMU.
+
+comment "BlueZ connectivity depends on bluez-utils"
+	depends on !BR2_PACKAGE_BLUEZ_UTILS
+
 comment "Misc. features"
 
 config BR2_PACKAGE_QEMU_UUID
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index de74f7d..cfcaba3 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -171,6 +171,13 @@ else
 QEMU_OPTS += --disable-curl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_BLUEZ),y)
+QEMU_OPTS += --enable-bluez
+QEMU_DEPENDENCIES += bluez_utils
+else
+QEMU_OPTS += --disable-bluez
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -272,7 +279,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-vnc-sasl                  \
 	        --disable-brlapi                    \
 	        --disable-fdt                       \
-	        --disable-bluez                     \
 	        --disable-guest-base                \
 	        --disable-vde                       \
 	        --disable-linux-aio                 \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 19/30] package/qemu: add AIO support
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (17 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 18/30] package/qemu: add BlueZ connectivity Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 20/30] package/qemu: add support for VDE switches Yann E. MORIN
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Add support for Asynchronous Input/Ouput (AIO).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 9 +++++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 41bd56f..17f5e05 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -142,6 +142,15 @@ config BR2_PACKAGE_QEMU_CURL
 comment "cURL support is not possible with static linking"
     depends on BR2_PREFER_STATIC_LIB
 
+config BR2_PACKAGE_QEMU_AIO
+	bool "Enable AIO"
+	depends on BR2_PACKAGE_LIBAIO
+	help
+	  Say 'y' here to enable Asynchronous Input/Output (AIO).
+
+comment "AIO support depends on libaio"
+	depends on !BR2_PACKAGE_LIBAIO
+
 comment "Networking"
 
 config BR2_PACKAGE_QEMU_BLUEZ
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index cfcaba3..f2f7d25 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -171,6 +171,13 @@ else
 QEMU_OPTS += --disable-curl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_AIO),y)
+QEMU_OPTS += --enable-linux-aio
+QEMU_DEPENDENCIES += libaio
+else
+QEMU_OPTS += --disable-linux-aio
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLUEZ),y)
 QEMU_OPTS += --enable-bluez
 QEMU_DEPENDENCIES += bluez_utils
@@ -281,7 +288,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-fdt                       \
 	        --disable-guest-base                \
 	        --disable-vde                       \
-	        --disable-linux-aio                 \
 	        --disable-docs                      \
 	        --disable-spice                     \
 	        --disable-rbd                       \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 20/30] package/qemu: add support for VDE switches
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (18 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 19/30] package/qemu: add AIO support Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 21/30] package/qemu: add iSCSI support Yann E. MORIN
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 7 +++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 17f5e05..f183be7 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -162,6 +162,13 @@ config BR2_PACKAGE_QEMU_BLUEZ
 comment "BlueZ connectivity depends on bluez-utils"
 	depends on !BR2_PACKAGE_BLUEZ_UTILS
 
+config BR2_PACKAGE_QEMU_VDE
+	bool "Enable VDE"
+	select BR2_PACKAGE_VDE2
+	help
+	  Say 'y' here to have QEMU connect to VDE (Virtual Distributed
+	  Ethernet) switches.
+
 comment "Misc. features"
 
 config BR2_PACKAGE_QEMU_UUID
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index f2f7d25..11d721b 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -185,6 +185,13 @@ else
 QEMU_OPTS += --disable-bluez
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_VDE),y)
+QEMU_OPTS += --enable-vde
+QEMU_DEPENDENCIES += vde2
+else
+QEMU_OPTS += --disable-vde
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -287,7 +294,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-brlapi                    \
 	        --disable-fdt                       \
 	        --disable-guest-base                \
-	        --disable-vde                       \
 	        --disable-docs                      \
 	        --disable-spice                     \
 	        --disable-rbd                       \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 21/30] package/qemu: add iSCSI support
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (19 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 20/30] package/qemu: add support for VDE switches Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 22/30] package/qemu: add support for USB redirection Yann E. MORIN
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 6 ++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index f183be7..50d7a71 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -142,6 +142,12 @@ config BR2_PACKAGE_QEMU_CURL
 comment "cURL support is not possible with static linking"
     depends on BR2_PREFER_STATIC_LIB
 
+config BR2_PACKAGE_QEMU_ISCSI
+	bool "Enable remote block-devices using iSCSI"
+	select BR2_PACKAGE_LIBISCSI
+	help
+	  Say 'y' here to have QEMU use iSCSI targets as block-devices.
+
 config BR2_PACKAGE_QEMU_AIO
 	bool "Enable AIO"
 	depends on BR2_PACKAGE_LIBAIO
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 11d721b..1d30173 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -171,6 +171,13 @@ else
 QEMU_OPTS += --disable-curl
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_ISCSI),y)
+QEMU_OPTS += --enable-libiscsi
+QEMU_DEPENDENCIES += libiscsi
+else
+QEMU_OPTS += --disable-libiscsi
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_AIO),y)
 QEMU_OPTS += --enable-linux-aio
 QEMU_DEPENDENCIES += libaio
@@ -297,7 +304,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-docs                      \
 	        --disable-spice                     \
 	        --disable-rbd                       \
-	        --disable-libiscsi                  \
 	        --disable-usb-redir                 \
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 22/30] package/qemu: add support for USB redirection
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (20 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 21/30] package/qemu: add iSCSI support Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 23/30] package/qemu: add support for Spice Yann E. MORIN
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 9 +++++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 50d7a71..2769dba 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -148,6 +148,15 @@ config BR2_PACKAGE_QEMU_ISCSI
 	help
 	  Say 'y' here to have QEMU use iSCSI targets as block-devices.
 
+config BR2_PACKAGE_QEMU_USBREDIR
+	bool "Enable USB redirection"
+	depends on BR2_PACKAGE_USBREDIR
+	help
+	  Say 'y' here to have QEMU support USB redirection over the network.
+
+comment "USB redirection requires usbredir"
+	depends on !BR2_PACKAGE_USBREDIR
+
 config BR2_PACKAGE_QEMU_AIO
 	bool "Enable AIO"
 	depends on BR2_PACKAGE_LIBAIO
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 1d30173..d6b6abf 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -178,6 +178,13 @@ else
 QEMU_OPTS += --disable-libiscsi
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_USBREDIR),y)
+QEMU_OPTS += --enable-usb-redir
+QEMU_DEPENDENCIES += usbredir
+else
+QEMU_OPTS += --disable-usb-redir
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_AIO),y)
 QEMU_OPTS += --enable-linux-aio
 QEMU_DEPENDENCIES += libaio
@@ -304,7 +311,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-docs                      \
 	        --disable-spice                     \
 	        --disable-rbd                       \
-	        --disable-usb-redir                 \
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
 	        --disable-seccomp                   \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 23/30] package/qemu: add support for Spice
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (21 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 22/30] package/qemu: add support for USB redirection Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 24/30] package/qemu: enable sound Yann E. MORIN
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 9 +++++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 2769dba..1ec6def 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -116,6 +116,15 @@ config BR2_PACKAGE_QEMU_CURSES
 	  frontend (although you can still use the SDL or VNC frontends to
 	  display the graphical output).
 
+config BR2_PACKAGE_QEMU_SPICE
+	bool "Enable Spice frontend"
+	depends on BR2_PACKAGE_SPICE
+	help
+	  Say 'y' here to have QEMU support Spice as a (VNC-like) frontend.
+
+comment "Spice support requires spice-server"
+	depends on !BR2_PACKAGE_SPICE
+
 comment "Block backends"
 
 config BR2_PACKAGE_QEMU_VIRTFS
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index d6b6abf..16434f1 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -158,6 +158,13 @@ else
 QEMU_OPTS += --disable-curses
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_SPICE),y)
+QEMU_OPTS += --enable-spice
+QEMU_DEPENDENCIES += spice
+else
+QEMU_OPTS += --disable-spice
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_VIRTFS),y)
 QEMU_OPTS += --enable-virtfs
 else
@@ -309,7 +316,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-fdt                       \
 	        --disable-guest-base                \
 	        --disable-docs                      \
-	        --disable-spice                     \
 	        --disable-rbd                       \
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 24/30] package/qemu: enable sound
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (22 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 23/30] package/qemu: add support for Spice Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 25/30] package/qemu: add support for libseccomp Yann E. MORIN
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 19 +++++++++++++++++++
 package/qemu/qemu.mk   | 14 +++++++++++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 1ec6def..549e0ac 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -193,6 +193,25 @@ config BR2_PACKAGE_QEMU_VDE
 	  Say 'y' here to have QEMU connect to VDE (Virtual Distributed
 	  Ethernet) switches.
 
+comment "Sound"
+
+config BR2_PACKAGE_QEMU_SOUND_ALSA
+	bool "Enable sound via alsa"
+	select BR2_PACKAGE_ALSA_LIB
+	help
+	  Say 'y' here to have QEMU play sound from the VMs via alsa.
+	  
+	  Note: this is only for system emulation, not user emulation.
+
+config BR2_PACKAGE_QEMU_SOUND_SDL
+	bool "Enable sound via SDL"
+	select BR2_PACKAGE_QEMU_SDL # Requires that SDL frontend be selected
+	select BR2_PACKAGE_SDL
+	help
+	  Say 'y' here to have QEMU play sound from the VMs via SDL.
+	  
+	  Note: this is only for system emulation, not user emulation.
+
 comment "Misc. features"
 
 config BR2_PACKAGE_QEMU_UUID
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 16434f1..6ae1592 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -213,6 +213,19 @@ else
 QEMU_OPTS += --disable-vde
 endif
 
+QEMU_SND_DRV =
+ifeq ($(BR2_PACKAGE_QEMU_SOUND_ALSA),y)
+QEMU_SND_DRV += alsa
+QEMU_DEPENDENCIES += alsa-lib
+endif
+ifeq ($(BR2_PACKAGE_QEMU_SOUND_SDL),y)
+QEMU_SND_DRV += sdl
+QEMU_DEPENDENCIES += sdl
+endif
+ifneq ($(QEMU_SND_DRV),)
+QEMU_OPTS += --audio-drv-list="$(QEMU_SND_DRV)"
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -305,7 +318,6 @@ define QEMU_CONFIGURE_CMDS
 	        --prefix=/usr                       \
 	        --cross-prefix=$(TARGET_CROSS)      \
 	        --with-system-pixman                \
-	        --audio-drv-list=                   \
 	        --enable-kvm                        \
 	        --enable-vhost-net                  \
 	        --disable-bsd-user                  \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu)
@ 2014-10-07 22:38 Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu Yann E. MORIN
                   ` (29 more replies)
  0 siblings, 30 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Hello All!

After too long a time in limbo, here is a respin of my series about
running QEMU on the target.

Having QEMU on the target can be usefull in more cases than one might
expect Buildroot to catter for:

  - deploy a brand new system on a new board, but with a legacy
    application that only runs on DOS, Windows. After some feedback,
    this happens more often than we would think; legacy DOS applications
    are legions, and as is often the case for those antiquated type of
    software, source code and specifications are long lost, so it is not
    possible to re-build the application.

  - for the same reason, a new design that uses a different architecture,
    but still requries such a legacy (obviously Linux) application to
    still run. qemu-user can come handy in those cases.

  - in some systems, it is better to completely isolate untrusted parts
    of an application in a VM, even at the cost of performance, as a VM
    provides almost-complete isolation.

  - coupled with libvirt (to come in a future patchset), we can build a
    very lightweight system to host VMs.

Currently, we make QEMU only available on x86 (32-bit or 64-bit), as
that's what it was tested with. QEMU is also supposed to run on a PPC,
that can be added later on by an interested party.

Regards,
Yann E. MORIN.


The following changes since commit e17afee1b9d6e6503aa68211341efad437ef181d:

  slang: disable termcap (2014-10-07 22:36:02 +0200)

are available in the git repository at:

  git://gitorious.org/buildroot/buildroot.git yem/target-qemu

for you to fetch changes up to ae4e379071183585d080fdedcf006e19b7e58a43:

  package/qemu: add support for FDT (2014-10-07 22:53:52 +0200)

----------------------------------------------------------------
Yann E. MORIN (30):
      package/qemu: do not use autotools for qemu
      package/qemu: bump version
      package/qemu: build for the target (i386 or x86_64 only)
      package/qemu: add basic target selection
      package/qemu: add fine-grained target selection
      package/qemu: add SDL frontends
      package/qemu: add option to enable/disable the VNC frontend
      package/qemu: add VNC jpeg and png compression
      package/qemu: add VNC TLS-encryption
      package/qemu: add option to not install blobs
      package/qemu: add option to remove unwanted keymaps
      package/qemu: add uuid support
      package/qemu: add support for capabilities
      package/qemu: add attr/xattr option
      package/qemu: add support for virtfs
      package/qemu: add support for cURL
      package/qemu: enable use of the curses frontend
      package/qemu: add BlueZ connectivity
      package/qemu: add AIO support
      package/qemu: add support for VDE switches
      package/qemu: add iSCSI support
      package/qemu: add support for USB redirection
      package/qemu: add support for Spice
      package/qemu: enable sound
      package/qemu: add support for libseccomp
      package/qemu: option to build the docs
      package/qemu: add option to install tools on the target
      package/qemu: move sub-options into a sub-menu
      package/qemu: enable a static build
      package/qemu: add support for FDT

 package/Config.in                        |   1 +
 package/qemu/Config.in                   | 316 +++++++++++++++++++++++++++++++
 package/qemu/qemu-0000-static-curl.patch |  69 +++++++
 package/qemu/qemu-0001-static-sdl.patch  |  53 ++++++
 package/qemu/qemu.mk                     | 311 +++++++++++++++++++++++++++++-
 5 files changed, 742 insertions(+), 8 deletions(-)
 create mode 100644 package/qemu/Config.in
 create mode 100644 package/qemu/qemu-0000-static-curl.patch
 create mode 100644 package/qemu/qemu-0001-static-sdl.patch

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 25/30] package/qemu: add support for libseccomp
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (23 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 24/30] package/qemu: enable sound Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 26/30] package/qemu: option to build the docs Yann E. MORIN
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 7 +++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 549e0ac..2f9d032 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -237,6 +237,13 @@ config BR2_PACKAGE_QEMU_ATTR
 	  Say 'y' here to have QEMU support attributes (attr) and eXtended
 	  attibutes (xattr).
 
+config BR2_PACKAGE_QEMU_SECCOMP
+	bool "Enable seccomp filter"
+	select BR2_PACKAGE_LIBSECCOMP
+	help
+	  Say 'y' here to have QEMU to use the Linux kernel's seccomp filter,
+	  to more tightly confine the VMs.
+
 config BR2_PACKAGE_QEMU_BLOBS
 	bool "Install binary blobs"
 	default y
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 6ae1592..b79e60f 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -249,6 +249,13 @@ else
 QEMU_OPTS += --disable-attr
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_SECCOMP),y)
+QEMU_OPTS += --enable-seccomp
+QEMU_DEPENDENCIES += libseccomp
+else
+QEMU_OPTS += --disable-seccomp
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
@@ -331,7 +338,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-rbd                       \
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
-	        --disable-seccomp                   \
 	        --disable-sparse                    \
 	        --disable-tools                     \
 	        $(QEMU_OPTS)                        \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 26/30] package/qemu: option to build the docs
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (24 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 25/30] package/qemu: add support for libseccomp Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 27/30] package/qemu: add option to install tools on the target Yann E. MORIN
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/qemu.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index b79e60f..b808c96 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -260,6 +260,12 @@ ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
 
+ifeq ($(BR2_HAVE_DOCUMENTATION),y)
+QEMU_OPTS += --enable-docs
+else
+QEMU_OPTS += --disable-docs
+endif
+
 # Post-install removal of unwanted keymaps:
 # - if we want 'all', we do nothing;
 # - if we want none, we completely remove the keymap dir
@@ -334,7 +340,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-brlapi                    \
 	        --disable-fdt                       \
 	        --disable-guest-base                \
-	        --disable-docs                      \
 	        --disable-rbd                       \
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 27/30] package/qemu: add option to install tools on the target
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (25 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 26/30] package/qemu: option to build the docs Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 28/30] package/qemu: move sub-options into a sub-menu Yann E. MORIN
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Usually, tools on the target are not needed, so they are disabled
by default. Add an option to install them on the target.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 6 ++++++
 package/qemu/qemu.mk   | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 2f9d032..27eb654 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -66,6 +66,12 @@ config QEMU_HAS_EMULS
     def_bool y
     depends on BR2_PACKAGE_QEMU_SYSTEM || BR2_PACKAGE_QEMU_LINUX_USER || BR2_PACKAGE_QEMU_CUSTOM_TARGETS != ""
 
+config BR2_PACKAGE_QEMU_TOOLS_ON_TARGET
+	bool "Install tools on target"
+	help
+	  Say 'y' here to also install QEMU tools (qemu-{img,io,nbd}) on the
+	  target.
+
 if QEMU_HAS_EMULS
 
 comment "Frontends"
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index b808c96..5d2b03f 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -256,6 +256,12 @@ else
 QEMU_OPTS += --disable-seccomp
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_TOOLS_ON_TARGET),y)
+QEMU_OPTS += --enable-tools
+else
+QEMU_OPTS += --disable-tools
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_BLOBS),)
 QEMU_OPTS += --disable-blobs
 endif
@@ -344,7 +350,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-smartcard-nss             \
 	        --disable-strip                     \
 	        --disable-sparse                    \
-	        --disable-tools                     \
 	        $(QEMU_OPTS)                        \
 	)
 endef
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 28/30] package/qemu: move sub-options into a sub-menu
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (26 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 27/30] package/qemu: add option to install tools on the target Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 29/30] package/qemu: enable a static build Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 30/30] package/qemu: add support for FDT Yann E. MORIN
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

As there are now quite a few options to QEMU, move them into their own
sub-menu, so it looks a bit less crowded in the 'misc' menu.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 27eb654..48ee4bf 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -2,7 +2,7 @@ comment "QEMU requires a toolchain with threads"
 	depends on BR2_i386 || BR2_x86_64
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
 
-config BR2_PACKAGE_QEMU
+menuconfig BR2_PACKAGE_QEMU
 	bool "QEMU"
 	depends on BR2_i386 || BR2_x86_64
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 29/30] package/qemu: enable a static build
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (27 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 28/30] package/qemu: move sub-options into a sub-menu Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  2014-10-07 22:38 ` [Buildroot] [PATCH 30/30] package/qemu: add support for FDT Yann E. MORIN
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

---
It can be useful to have a statically-linked QEMU (especially the
linux-user and bsd-user emulators) to avoid run-time issues with
dynamically-loaded libraries.

There is an issue where QEMU could not be able to properly (re)map
libraries in memory due to some overlap between its own memory
mappings and the mappings of the user application being translated
(it's a complex issue, so don't count on me to properly explain it,
I did not understood it completely either... :-/ ).
---
 package/qemu/Config.in                   | 44 ++++++++++++++++----
 package/qemu/qemu-0000-static-curl.patch | 69 ++++++++++++++++++++++++++++++++
 package/qemu/qemu-0001-static-sdl.patch  | 53 ++++++++++++++++++++++++
 package/qemu/qemu.mk                     |  4 ++
 4 files changed, 162 insertions(+), 8 deletions(-)
 create mode 100644 package/qemu/qemu-0000-static-curl.patch
 create mode 100644 package/qemu/qemu-0001-static-sdl.patch

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 48ee4bf..d9ec754 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -72,6 +72,11 @@ config BR2_PACKAGE_QEMU_TOOLS_ON_TARGET
 	  Say 'y' here to also install QEMU tools (qemu-{img,io,nbd}) on the
 	  target.
 
+config BR2_PACKAGE_QEMU_STATIC
+	bool "Build statically"
+	help
+	  Build static qemu executable(s).
+
 if QEMU_HAS_EMULS
 
 comment "Frontends"
@@ -98,11 +103,11 @@ config BR2_PACKAGE_QEMU_VNC_JPEG
 config BR2_PACKAGE_QEMU_VNC_TLS
 	bool "TLS encryption"
 	depends on BR2_PACKAGE_QEMU_VNC
-	depends on !BR2_PREFER_STATIC_LIB
+	depends on !BR2_PACKAGE_QEMU_STATIC
 	select BR2_PACKAGE_GNUTLS
 
 comment "VNC TLS encryption does not work for static link"
-    depends on BR2_PACKAGE_QEMU_VNC && BR2_PREFER_STATIC_LIB
+    depends on BR2_PACKAGE_QEMU_VNC && BR2_PACKAGE_QEMU_STATIC
 
 config BR2_PACKAGE_QEMU_SDL
 	bool "Enable SDL frontend"
@@ -125,11 +130,21 @@ config BR2_PACKAGE_QEMU_CURSES
 config BR2_PACKAGE_QEMU_SPICE
 	bool "Enable Spice frontend"
 	depends on BR2_PACKAGE_SPICE
+	depends on !BR2_PACKAGE_QEMU_STATIC || BR2_PREFER_STATIC_LIB
 	help
 	  Say 'y' here to have QEMU support Spice as a (VNC-like) frontend.
 
-comment "Spice support requires spice-server"
-	depends on !BR2_PACKAGE_SPICE
+	  Note:
+	    Spice links against alsa-libs, but alsa-libs can't be built both
+	    shared and static at the same time, so we can not link with a
+	    static spice to get a static QEMU (BR2_PACKAGE_QEMU_STATIC) if
+	    buildroot as a whole does not also build only static libraries
+	    (BR2_PREFER_STATIC_LIB).
+
+if !BR2_PACKAGE_SPICE || ( BR2_PACKAGE_QEMU_STATIC && !BR2_PREFER_STATIC_LIB )
+comment "Spice support requires spice-server, and does not work for a static"
+comment "build of QEMU unless BR2_PREFER_STATIC_LIB is set, too"
+endif
 
 comment "Block backends"
 
@@ -149,14 +164,10 @@ config BR2_PACKAGE_QEMU_VIRTFS
 
 config BR2_PACKAGE_QEMU_CURL
 	bool "Enable remote block-devices using cURL"
-	depends on !BR2_PREFER_STATIC_LIB
 	select BR2_PACKAGE_LIBCURL
 	help
 	  Say 'y' to access remote block-devices using libcurl.
 
-comment "cURL support is not possible with static linking"
-    depends on BR2_PREFER_STATIC_LIB
-
 config BR2_PACKAGE_QEMU_ISCSI
 	bool "Enable remote block-devices using iSCSI"
 	select BR2_PACKAGE_LIBISCSI
@@ -185,13 +196,18 @@ comment "Networking"
 
 config BR2_PACKAGE_QEMU_BLUEZ
 	bool "Enable BlueZ connectivity"
+	depends on !BR2_PACKAGE_QEMU_STATIC && !BR2_PREFER_STATIC
 	depends on BR2_PACKAGE_BLUEZ_UTILS
 	help
 	  Say 'y' here to enable BlueZ (bluetooth) connectivity in QEMU.
 
 comment "BlueZ connectivity depends on bluez-utils"
+	depends on !BR2_PACKAGE_QEMU_STATIC && !BR2_PREFER_STATIC
 	depends on !BR2_PACKAGE_BLUEZ_UTILS
 
+comment "BlueZ connectivity does not work for static link"
+	depends on BR2_PACKAGE_QEMU_STATIC || BR2_PREFER_STATIC
+
 config BR2_PACKAGE_QEMU_VDE
 	bool "Enable VDE"
 	select BR2_PACKAGE_VDE2
@@ -201,14 +217,21 @@ config BR2_PACKAGE_QEMU_VDE
 
 comment "Sound"
 
+# Alsa can not build both shared and static libs at the same time.
+# But we may want to build QEMU staticaly, even though the global
+# BR2_PREFER_STATIC_LIB is not set. Disable that case.
 config BR2_PACKAGE_QEMU_SOUND_ALSA
 	bool "Enable sound via alsa"
+	depends on !BR2_PACKAGE_QEMU_STATIC || BR2_PREFER_STATIC_LIB
 	select BR2_PACKAGE_ALSA_LIB
 	help
 	  Say 'y' here to have QEMU play sound from the VMs via alsa.
 	  
 	  Note: this is only for system emulation, not user emulation.
 
+comment "Alsa sound static link works only if BR2_PREFER_STATIC is set"
+	depends on BR2_PACKAGE_QEMU_STATIC && !BR2_PREFER_STATIC_LIB
+
 config BR2_PACKAGE_QEMU_SOUND_SDL
 	bool "Enable sound via SDL"
 	select BR2_PACKAGE_QEMU_SDL # Requires that SDL frontend be selected
@@ -279,3 +302,8 @@ config BR2_PACKAGE_QEMU_KEYMAPS
 endif # QEMU_HAS_EMULS
 
 endif # BR2_PACKAGE_QEMU
+
+# We can't have this in the conditional block, above, or we'd have
+# a cyclic dependency
+config BR2_PREFER_STATIC_LIB
+    select BR2_PACKAGE_QEMU_STATIC if BR2_PACKAGE_QEMU
diff --git a/package/qemu/qemu-0000-static-curl.patch b/package/qemu/qemu-0000-static-curl.patch
new file mode 100644
index 0000000..d92c51a
--- /dev/null
+++ b/package/qemu/qemu-0000-static-curl.patch
@@ -0,0 +1,69 @@
+configure: fix detection for cURL libs when static linking
+
+Currently, to check for cURL, configure uses either pkg-config (the default),
+or curl-config (as a fallback).
+
+But curl-config and pkg-config do not have the same set of options:
+  - to check for shared libs, both use the option: --libs
+  - to check for static libs:
+    - pkg-config uses: --static --libs
+    - curl-config uses: --static-libs
+
+To add to the complexity, pkg-config is called through the querry_pkg_config
+wrapper, that already passes --static when static linking is required, but
+there is no such wrapper for curl-config, so we miss the occasion to pass
+--static-libs
+
+To fix this:
+  - introduce a new variable QEMU_XXX_CONFIG_LIBS_FLAGS that mirrors the
+    behavior of QEMU_PKG_CONFIG_FLAGS; this variable can be used by all
+    xxx-config scripts (eg. curl-config, but later sdl-config too).
+    Default it to '--libs', which is for shared linking;
+  - properly use either --libs for pkg-config (--static is already takend
+    care of in the wrapper), or $QEMU_XXX_CONFIG_LIBS_FLAGS for
+    curl-config.
+    
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+---
+Patch sent upstream:
+    http://lists.nongnu.org/archive/html/qemu-trivial/2012-08/msg00165.html
+
+diff -durN qemu-1.6.0.orig/configure qemu-1.6.0/configure
+--- a/configure	2013-08-15 21:56:23.000000000 +0200
++++ b/configure	2014-03-01 23:58:48.780791885 +0100
+@@ -210,6 +210,7 @@
+ libs_qga=""
+ debug_info="yes"
+ stack_protector=""
++QEMU_XXX_CONFIG_LIBS_FLAGS="--libs"
+ 
+ # Don't accept a target_list environment variable.
+ unset target_list
+@@ -786,6 +787,7 @@
+     static="yes"
+     LDFLAGS="-static $LDFLAGS"
+     QEMU_PKG_CONFIG_FLAGS="--static $QEMU_PKG_CONFIG_FLAGS"
++    QEMU_XXX_CONFIG_LIBS_FLAGS="--static-libs"
+   ;;
+   --mandir=*) mandir="$optarg"
+   ;;
+@@ -2644,15 +2646,17 @@
+ if test "$curl" != "no" ; then
+   if $pkg_config libcurl --exists; then
+     curlconfig="$pkg_config libcurl"
++    curlconfiglibs="--libs"
+   else
+     curlconfig=curl-config
++    curlconfiglibs="$QEMU_XXX_CONFIG_LIBS_FLAGS"
+   fi
+   cat > $TMPC << EOF
+ #include <curl/curl.h>
+ int main(void) { curl_easy_init(); curl_multi_setopt(0, 0, 0); return 0; }
+ EOF
+   curl_cflags=`$curlconfig --cflags 2>/dev/null`
+-  curl_libs=`$curlconfig --libs 2>/dev/null`
++  curl_libs=`$curlconfig $curlconfiglibs 2>/dev/null`
+   if compile_prog "$curl_cflags" "$curl_libs" ; then
+     curl=yes
+   else
diff --git a/package/qemu/qemu-0001-static-sdl.patch b/package/qemu/qemu-0001-static-sdl.patch
new file mode 100644
index 0000000..fca6171
--- /dev/null
+++ b/package/qemu/qemu-0001-static-sdl.patch
@@ -0,0 +1,53 @@
+configure: fix detection for SDL libs when static linking
+
+Currently, configure checks for SDL libs with either pkg-config (the
+default), or with sdl-config (as a fallback).
+
+As for cURL (previous patch), sdl-config does not have the same set of
+options as pkg-config:
+  - to check for shared libs, both use the option: --libs
+  - to check for static libs:
+    - pkg-config uses: --static --libs
+    - curl-config uses: --static-libs
+
+Fix that by using the previously introduced $QEMU_XXX_CONFIG_LIBS_FLAGS
+variable, the way ot was done previously for cURL.
+
+Also, simplify the code-path for checking for SDL libs with a single,
+non-conditional call to $sdlconfig, which is either pkg-config or
+sdl-config, as checked just above.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+---
+Patch sent upstream:
+    http://lists.nongnu.org/archive/html/qemu-trivial/2012-08/msg00166.html
+
+diff -durN qemu-2.1.2.orig/configure qemu-2.1.2/configure
+--- qemu-2.1.2.orig/configure	2014-09-25 21:54:52.000000000 +0200
++++ qemu-2.1.2/configure	2014-10-03 22:00:12.168024393 +0200
+@@ -2114,9 +2114,11 @@
+ 
+ if $pkg_config $sdlname --exists; then
+   sdlconfig="$pkg_config $sdlname"
++  sdlconfiglibs="--libs"
+   _sdlversion=`$sdlconfig --modversion 2>/dev/null | sed 's/[^0-9]//g'`
+ elif has ${sdl_config}; then
+   sdlconfig="$sdl_config"
++  sdlconfiglibs="$QEMU_XXX_CONFIG_LIBS_FLAGS"
+   _sdlversion=`$sdlconfig --version | sed 's/[^0-9]//g'`
+ else
+   if test "$sdl" = "yes" ; then
+@@ -2136,11 +2138,7 @@
+ int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
+ EOF
+   sdl_cflags=`$sdlconfig --cflags 2> /dev/null`
+-  if test "$static" = "yes" ; then
+-    sdl_libs=`$sdlconfig --static-libs 2>/dev/null`
+-  else
+-    sdl_libs=`$sdlconfig --libs 2> /dev/null`
+-  fi
++  sdl_libs=`$sdlconfig $sdlconfiglibs 2> /dev/null`
+   if compile_prog "$sdl_cflags" "$sdl_libs" ; then
+     if test "$_sdlversion" -lt 121 ; then
+       sdl_too_old=yes
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 5d2b03f..a4d00e1 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -272,6 +272,10 @@ else
 QEMU_OPTS += --disable-docs
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_STATIC),y)
+QEMU_OPTS += --static
+endif
+
 # Post-install removal of unwanted keymaps:
 # - if we want 'all', we do nothing;
 # - if we want none, we completely remove the keymap dir
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 30/30] package/qemu: add support for FDT
  2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
                   ` (28 preceding siblings ...)
  2014-10-07 22:38 ` [Buildroot] [PATCH 29/30] package/qemu: enable a static build Yann E. MORIN
@ 2014-10-07 22:38 ` Yann E. MORIN
  29 siblings, 0 replies; 38+ messages in thread
From: Yann E. MORIN @ 2014-10-07 22:38 UTC (permalink / raw
  To: buildroot

FDT is the Flat Device Tree, and allows QEMU to pass DTs to the VMs.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/qemu/Config.in | 7 +++++++
 package/qemu/qemu.mk   | 8 +++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index d9ec754..dd93e15 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -243,6 +243,13 @@ config BR2_PACKAGE_QEMU_SOUND_SDL
 
 comment "Misc. features"
 
+config BR2_PACKAGE_QEMU_FDT
+        bool "Enable FDT"
+        select BR2_PACKAGE_DTC
+        help
+          Say 'y' here to have QEMU capable of constructing Device Trees,
+          and passing them to the VMs.
+
 config BR2_PACKAGE_QEMU_UUID
 	bool "Enable VMs UUID"
 	depends on BR2_PACKAGE_UTIL_LINUX
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index a4d00e1..007a757 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -226,6 +226,13 @@ ifneq ($(QEMU_SND_DRV),)
 QEMU_OPTS += --audio-drv-list="$(QEMU_SND_DRV)"
 endif
 
+ifeq ($(BR2_PACKAGE_QEMU_FDT),y)
+QEMU_OPTS += --enable-fdt
+QEMU_DEPENDENCIES += dtc
+else
+QEMU_OPTS += --disable-fdt
+endif
+
 ifeq ($(BR2_PACKAGE_QEMU_UUID),y)
 QEMU_OPTS += --enable-uuid
 QEMU_DEPENDENCIES += util-linux
@@ -348,7 +355,6 @@ define QEMU_CONFIGURE_CMDS
 	        --disable-slirp                     \
 	        --disable-vnc-sasl                  \
 	        --disable-brlapi                    \
-	        --disable-fdt                       \
 	        --disable-guest-base                \
 	        --disable-rbd                       \
 	        --disable-smartcard-nss             \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu
  2014-10-07 22:38 ` [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu Yann E. MORIN
@ 2014-10-12 16:52   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 16:52 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Although QEMU has a ./configure script, it is not an autotools-package,
 > so switch to providing build and install commands, and to using
 > generic-package.

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 02/30] package/qemu: bump version
  2014-10-07 22:38 ` [Buildroot] [PATCH 02/30] package/qemu: bump version Yann E. MORIN
@ 2014-10-12 16:52   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 16:52 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only)
  2014-10-07 22:38 ` [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
@ 2014-10-12 16:54   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 16:54 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Untested for other architectures, so only enabled for known-working ones.
 > We explicitly disable all features that depends on other packages,
 > for now. Such features will be added one by one in the next patches.
 > Features that do not rely on external packages are explicitly enabled
 > to catch the dependencies on toolchain features early.

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 > ---
 >  package/Config.in      |  1 +
 >  package/qemu/Config.in | 26 ++++++++++++++++++
 >  package/qemu/qemu.mk   | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 >  3 files changed, 99 insertions(+)
 >  create mode 100644 package/qemu/Config.in

 > diff --git a/package/Config.in b/package/Config.in
 > index 2dbe6f8..fe3e03c 100644
 > --- a/package/Config.in
 > +++ b/package/Config.in
 > @@ -926,6 +926,7 @@ menu "Miscellaneous"
 >  	source "package/haveged/Config.in"
 >  	source "package/mcrypt/Config.in"
 >  	source "package/mobile-broadband-provider-info/Config.in"
 > +	source "package/qemu/Config.in"
 >  	source "package/shared-mime-info/Config.in"
 >  	source "package/snowball-init/Config.in"
 >  	source "package/sound-theme-borealis/Config.in"
 > diff --git a/package/qemu/Config.in b/package/qemu/Config.in
 > new file mode 100644
 > index 0000000..d323305
 > --- /dev/null
 > +++ b/package/qemu/Config.in
 > @@ -0,0 +1,26 @@
 > +comment "QEMU requires a toolchain with threads"
 > +	depends on BR2_i386 || BR2_x86_64
 > +	depends on !BR2_TOOLCHAIN_HAS_THREADS
 > +
 > +config BR2_PACKAGE_QEMU
 > +	bool "QEMU"
 > +	depends on BR2_i386 || BR2_x86_64
 > +	depends on BR2_TOOLCHAIN_HAS_THREADS
 > +	select BR2_PACKAGE_LIBGLIB2
 > +	select BR2_PACKAGE_PIXMAN
 > +	select BR2_PACKAGE_ZLIB

You forgot to propagate the toolchain dependencies of the libraries -
Libglib2 needs wchar and mmu (and qemu seems to contain plenty of
references to fork() as well).

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 04/30] package/qemu: add basic target selection
  2014-10-07 22:38 ` [Buildroot] [PATCH 04/30] package/qemu: add basic target selection Yann E. MORIN
@ 2014-10-12 16:59   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 16:59 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 05/30] package/qemu: add fine-grained target selection
  2014-10-07 22:38 ` [Buildroot] [PATCH 05/30] package/qemu: add fine-grained " Yann E. MORIN
@ 2014-10-12 17:06   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 17:06 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > ---
 >  package/qemu/Config.in | 21 +++++++++++++++++++++
 >  package/qemu/qemu.mk   |  4 ++++
 >  2 files changed, 25 insertions(+)

 > diff --git a/package/qemu/Config.in b/package/qemu/Config.in
 > index a8fe9c8..d0006d5 100644
 > --- a/package/qemu/Config.in
 > +++ b/package/qemu/Config.in
 > @@ -29,6 +29,25 @@ if BR2_PACKAGE_QEMU
 
 >  comment "Emulators selection"
 
 > +config BR2_PACKAGE_QEMU_CUSTOM_TARGETS
 > +	string "Enable specific targets"
 > +	help
 > +	  Enter here the list of QEMU targets you want to build. For example:
 > +
 > +	    System emulation      | User-land emulation
 > +	    ----------------------+-----------------------
 > +	    i386-softmmu          | i386-linux-user
 > +	    arm-softmmu           | ppc-linux-user
 > +	    x86_64-softmmu        | sparc-bsd-user
 > +	    ...                   | ...
 > +
 > +config QEMU_FOO
 > +	bool # To break the indentation

It would have been good to add a note about this in the commit log.

 > +++ b/package/qemu/qemu.mk
 > @@ -111,6 +111,10 @@ else
 >  QEMU_OPTS += --disable-linux-user
 >  endif
 
 > +ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
 > +QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
 > +endif

And the interaction with --disable-linux-user / --disable-system.

But ok - committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends
  2014-10-07 22:38 ` [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends Yann E. MORIN
@ 2014-10-12 17:14   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 17:14 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > ---
 >  package/qemu/Config.in | 17 +++++++++++++++++
 >  package/qemu/qemu.mk   | 12 ++++++++++--
 >  2 files changed, 27 insertions(+), 2 deletions(-)

 > diff --git a/package/qemu/Config.in b/package/qemu/Config.in
 > index d0006d5..f81b6ca 100644
 > --- a/package/qemu/Config.in
 > +++ b/package/qemu/Config.in
 > @@ -62,4 +62,21 @@ config BR2_PACKAGE_QEMU_LINUX_USER
 
 >  endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == ""
 
 > +config QEMU_HAS_EMULS

We have to respect the global namespace, so this should be
BR2_PACKAGE_QEMU_HAS_EMULS

 > +++ b/package/qemu/qemu.mk
 > @@ -97,7 +97,8 @@ QEMU_OPTS =
 >  QEMU_VARS = \
 >  	LIBTOOL=$(HOST_DIR)/usr/bin/libtool \
 >      PYTHON=$(HOST_DIR)/usr/bin/python \
 > -    PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
 > +    PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \
 > +    SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config
 
 >  ifeq ($(BR2_PACKAGE_QEMU_SYSTEM),y)
 >  QEMU_OPTS += --enable-system
 > @@ -115,6 +116,14 @@ ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
 >  QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
 >  endif
 
 > +ifeq ($(BR2_PACKAGE_QEMU_SDL),y)
 > +QEMU_OPTS += --enable-sdl
 > +QEMU_DEPENDENCIES += sdl
 > +QEMU_VARS += SDL_CONFIG=$(BR2_STAGING_DIR)/usr/bin/sdl-config

There's no point in adding SDL_CONFIG twice, so I have removed it from
the unconditial line further above.

Committed with these fixes, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

* [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend
  2014-10-07 22:38 ` [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
@ 2014-10-12 17:19   ` Peter Korsgaard
  0 siblings, 0 replies; 38+ messages in thread
From: Peter Korsgaard @ 2014-10-12 17:19 UTC (permalink / raw
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > ---
 >  package/qemu/Config.in |  7 +++++++
 >  package/qemu/qemu.mk   | 11 ++++++++++-
 >  2 files changed, 17 insertions(+), 1 deletion(-)

 > diff --git a/package/qemu/Config.in b/package/qemu/Config.in
 > index f81b6ca..1c359e4 100644
 > --- a/package/qemu/Config.in
 > +++ b/package/qemu/Config.in
 > @@ -70,6 +70,13 @@ if QEMU_HAS_EMULS
 
 >  comment "Frontends"
 
 > +config BR2_PACKAGE_QEMU_VNC
 > +	bool "Enable VNC frontend"
 > +	select BR2_PACKAGE_VNC

what is BR2_PACKAGE_VNC?

 > +++ b/package/qemu/qemu.mk
 > @@ -116,6 +116,12 @@ ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),)
 >  QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))"
 >  endif
 
 > +ifeq ($(BR2_PACKAGE_QEMU_VNC),y)
 > +QEMU_OPTS += --enable-vnc
 > +else

And why doesn't it get added to QEMU_DEPENDENCIES?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2014-10-12 17:19 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07 22:38 [Buildroot] [PATCH 0/30] QEMU on the target (branch yem/target-qemu) Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu Yann E. MORIN
2014-10-12 16:52   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 02/30] package/qemu: bump version Yann E. MORIN
2014-10-12 16:52   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 03/30] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
2014-10-12 16:54   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 04/30] package/qemu: add basic target selection Yann E. MORIN
2014-10-12 16:59   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 05/30] package/qemu: add fine-grained " Yann E. MORIN
2014-10-12 17:06   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 06/30] package/qemu: add SDL frontends Yann E. MORIN
2014-10-12 17:14   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 07/30] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
2014-10-12 17:19   ` Peter Korsgaard
2014-10-07 22:38 ` [Buildroot] [PATCH 08/30] package/qemu: add VNC jpeg and png compression Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 09/30] package/qemu: add VNC TLS-encryption Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 10/30] package/qemu: add option to not install blobs Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 11/30] package/qemu: add option to remove unwanted keymaps Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 12/30] package/qemu: add uuid support Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 13/30] package/qemu: add support for capabilities Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 14/30] package/qemu: add attr/xattr option Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 15/30] package/qemu: add support for virtfs Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 16/30] package/qemu: add support for cURL Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 17/30] package/qemu: enable use of the curses frontend Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 18/30] package/qemu: add BlueZ connectivity Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 19/30] package/qemu: add AIO support Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 20/30] package/qemu: add support for VDE switches Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 21/30] package/qemu: add iSCSI support Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 22/30] package/qemu: add support for USB redirection Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 23/30] package/qemu: add support for Spice Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 24/30] package/qemu: enable sound Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 25/30] package/qemu: add support for libseccomp Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 26/30] package/qemu: option to build the docs Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 27/30] package/qemu: add option to install tools on the target Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 28/30] package/qemu: move sub-options into a sub-menu Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 29/30] package/qemu: enable a static build Yann E. MORIN
2014-10-07 22:38 ` [Buildroot] [PATCH 30/30] package/qemu: add support for FDT Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.