diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-11-29 13:55:39 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-29 13:55:39 -0600 |
commit | 3d694c99b3e1611b62589c279788ca8427bc4517 (patch) | |
tree | b4b0c331499dc8c916daeaafcff40d59083ba587 /system | |
parent | 29b578cf50211e8c60b52637fe4fb64b732085a0 (diff) |
system/qemu: Optionally use device-tree-compiler if installed
This also adds --enable-sdl, which is potentially needed for
some emulated ARM graphics chipsets.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/qemu/README | 3 | ||||
-rw-r--r-- | system/qemu/qemu.SlackBuild | 10 |
2 files changed, 10 insertions, 3 deletions
diff --git a/system/qemu/README b/system/qemu/README index 371ba6d75bb5..b7fbe8ae260d 100644 --- a/system/qemu/README +++ b/system/qemu/README @@ -25,4 +25,5 @@ your processor) prior to launching qemu-system-ARCH with kvm enabled. For older/unmaintained qemu frontends, this build also creates a symlink to qemu-system-ARCH at /usr/bin/qemu-kvm. -spice and usbredir are optional dependencies. +spice, usbredir, and device-tree-compiler are optional dependencies. +If you wish to emulate ARM, you will want device-tree-compiler. diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index 14177849cf58..7db1e03ff867 100644 --- a/system/qemu/qemu.SlackBuild +++ b/system/qemu/qemu.SlackBuild @@ -112,6 +112,11 @@ else with_usbredir="--disable-usb-redir" fi +# check if device-tree-compiler is installed +if ls /var/log/packages/device-tree-compiler-* 1>/dev/null 2>/dev/null ; then + with_fdt="--enable-fdt" +fi + # --libdir is recognized but not advertised in --help CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -121,15 +126,16 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-sdl \ --enable-gtk \ --enable-system \ --enable-kvm \ - --enable-mixemu \ --disable-debug-info \ --audio-drv-list=alsa,oss,sdl,esd \ $targets \ $with_spice \ - $with_usbredir + $with_usbredir \ + $with_fdt make V=1 OS_CFLAGS="$SLKCFLAGS" |