From 3d694c99b3e1611b62589c279788ca8427bc4517 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Fri, 29 Nov 2013 13:55:39 -0600 Subject: 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 --- system/qemu/qemu.SlackBuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'system/qemu/qemu.SlackBuild') diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index 14177849cf..7db1e03ff8 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" -- cgit v1.2.3