aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-11-12 23:00:59 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-27 18:25:49 +0100
commit7e237b79ad138dd296477c7ed631ca83f5145fc5 (patch)
tree23e0da9a6151d8f08c17c0a8b6713fca56d5c623
parent405f76425d20ef2f84006f2f6db798c338691c13 (diff)
downloadbuildroot-7e237b79ad138dd296477c7ed631ca83f5145fc5.tar.gz
buildroot-7e237b79ad138dd296477c7ed631ca83f5145fc5.tar.bz2
package/qemu: use a system-wide slirp
Use a system-wide slirp now that we switched to the up to date https://gitlab.freedesktop.org/slirp/libslirp qemu already depends on libglib2 so we don't need to add any new dependencies Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/qemu/Config.in1
-rw-r--r--package/qemu/qemu.mk6
2 files changed, 5 insertions, 2 deletions
diff --git a/package/qemu/Config.in b/package/qemu/Config.in
index 33d4cccd7b..391fd5faaf 100644
--- a/package/qemu/Config.in
+++ b/package/qemu/Config.in
@@ -58,6 +58,7 @@ comment "Networking options"
config BR2_PACKAGE_QEMU_SLIRP
bool "Enable user mode networking (SLIRP)"
+ select BR2_PACKAGE_SLIRP
help
Enable user mode network stack, which is the default
networking backend. It requires no administrator privileges
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 69850ec938..2bac96bd66 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -51,8 +51,10 @@ endif
endif
-# There is no "--enable-slirp"
-ifeq ($(BR2_PACKAGE_QEMU_SLIRP),)
+ifeq ($(BR2_PACKAGE_QEMU_SLIRP),y)
+QEMU_OPTS += --enable-slirp=system
+QEMU_DEPENDENCIES += slirp
+else
QEMU_OPTS += --disable-slirp
endif