diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/qemu/README | 5 | ||||
-rw-r--r-- | system/qemu/qemu.SlackBuild | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/system/qemu/README b/system/qemu/README index 66937351889a7..c457cef0881d8 100644 --- a/system/qemu/README +++ b/system/qemu/README @@ -45,6 +45,11 @@ libslirp (user mode networking), libcacard, spice, usbredir, virglrenderer, libnfs, snappy, device-tree-compiler, glusterfs, and vde2 are optional dependencies. +To enable user mode networking, install libslirp (availale on SBO), then +compile qemu: + +SLIRP=yes ./qemu/SlackBuild + libiscsi (to access iSCSI targets directly) is optional dependency, and will be picked up, if present, during the compilation. diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index d6d8128ce97cc..e93678ed04fd0 100644 --- a/system/qemu/qemu.SlackBuild +++ b/system/qemu/qemu.SlackBuild @@ -37,6 +37,7 @@ TARGETS=${TARGETS:-all} VNC_ENABLE=${VNC_ENABLE:-yes} AUDIODRIVERS=${AUDIODRIVERS:-pa,alsa,oss,sdl} BRIDGE_HELPER_SETUID=${BRIDGE_HELPER_SETUID:-no} +SLIRP=${SLIRP:-=no} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -111,6 +112,13 @@ else with_vnc="--disable-vnc" fi +# To enable user mode networking use SLIRP=yes +if [ "$SLIRP" = "yes" ]; then + with_slirp="--enable-slirp" +else + with_slirp="" +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -129,6 +137,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-nettle \ --${uring}able-linux-io-uring \ --audio-drv-list=${AUDIODRIVERS} \ + $with_slirp \ $with_vnc \ $targets |