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>
This commit is contained in:
Fabrice Fontaine 2020-11-12 23:00:59 +01:00 committed by Peter Korsgaard
parent 405f76425d
commit 7e237b79ad
2 changed files with 5 additions and 2 deletions

View File

@ -58,6 +58,7 @@ comment "Networking options"
config BR2_PACKAGE_QEMU_SLIRP config BR2_PACKAGE_QEMU_SLIRP
bool "Enable user mode networking (SLIRP)" bool "Enable user mode networking (SLIRP)"
select BR2_PACKAGE_SLIRP
help help
Enable user mode network stack, which is the default Enable user mode network stack, which is the default
networking backend. It requires no administrator privileges networking backend. It requires no administrator privileges

View File

@ -51,8 +51,10 @@ endif
endif endif
# There is no "--enable-slirp" ifeq ($(BR2_PACKAGE_QEMU_SLIRP),y)
ifeq ($(BR2_PACKAGE_QEMU_SLIRP),) QEMU_OPTS += --enable-slirp=system
QEMU_DEPENDENCIES += slirp
else
QEMU_OPTS += --disable-slirp QEMU_OPTS += --disable-slirp
endif endif