2010-05-28 08:13:03 +00:00
|
|
|
DESCRIPTION = "open source processor emulator"
|
|
|
|
HOMEPAGE = "http://qemu.org"
|
2010-11-26 15:58:15 +00:00
|
|
|
LICENSE = "GPLv2 & LGPLv2.1"
|
2011-08-11 07:13:32 +00:00
|
|
|
DEPENDS = "zlib alsa-lib virtual/libx11"
|
2010-05-28 08:13:03 +00:00
|
|
|
|
2011-03-25 22:52:33 +00:00
|
|
|
# QEMU_TARGETS is overridable variable
|
|
|
|
QEMU_TARGETS ?= "arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64"
|
|
|
|
|
|
|
|
require qemu-targets.inc
|
|
|
|
|
2011-04-19 23:34:05 +00:00
|
|
|
SDL ?= "--disable-sdl"
|
|
|
|
SDL_virtclass-native ?= ""
|
|
|
|
SDL_virtclass-nativesdk ?= ""
|
2011-03-25 22:52:33 +00:00
|
|
|
|
2011-12-14 16:35:11 +00:00
|
|
|
EXTRA_OECONF += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370 ${SDL}"
|
2011-04-19 23:34:05 +00:00
|
|
|
|
|
|
|
#EXTRA_OECONF += "--disable-sdl"
|
2010-05-28 08:13:03 +00:00
|
|
|
|
2011-04-27 04:43:17 +00:00
|
|
|
|
2010-05-28 08:13:03 +00:00
|
|
|
inherit autotools
|
|
|
|
|
|
|
|
# For our gl powered QEMU you need libGL and SDL headers
|
|
|
|
do_configure_prepend_virtclass-native() {
|
|
|
|
libgl='no'
|
|
|
|
libsdl='no'
|
|
|
|
|
|
|
|
test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
|
|
|
|
test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
|
2011-08-17 13:18:58 +00:00
|
|
|
test -e /usr/lib/*-linux-gnu/libGL.so -a -e /usr/lib/*-linux-gnu/libGLU.so && libgl='yes'
|
2010-05-28 08:13:03 +00:00
|
|
|
|
2010-08-26 18:49:37 +00:00
|
|
|
test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc -o -e /usr/include/SDL/SDL.h && libsdl='yes'
|
|
|
|
|
2010-05-28 08:13:03 +00:00
|
|
|
|
|
|
|
if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
|
|
|
|
echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native.
|
|
|
|
Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev"
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2011-12-14 16:35:11 +00:00
|
|
|
# Handle distros such as CentOS 5 32-bit that do not have kvm support
|
|
|
|
KVMOPTS=""
|
|
|
|
if [ "${PN}" != "qemu-native" ] || [ -f /usr/include/linux/kvm.h ] ; then
|
|
|
|
KVMOPTS="--enable-kvm"
|
|
|
|
fi
|
|
|
|
|
|
|
|
${S}/configure --prefix=${prefix} --sysconfdir=${sysconfdir} --disable-strip ${EXTRA_OECONF} $KVMOPTS
|
2011-08-11 07:13:32 +00:00
|
|
|
test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh
|
2010-05-28 08:13:03 +00:00
|
|
|
}
|
|
|
|
|
2011-07-05 10:14:36 +00:00
|
|
|
do_install () {
|
|
|
|
export STRIP="true"
|
|
|
|
autotools_do_install
|
|
|
|
install -d ${D}${datadir}/qemu
|
|
|
|
install -m 0755 ${WORKDIR}/powerpc_rom.bin ${D}${datadir}/qemu
|
|
|
|
}
|
|
|
|
|
2011-05-15 01:44:36 +00:00
|
|
|
DEPENDS_virtclass-native = "zlib-native alsa-lib-native"
|
2010-05-28 08:13:03 +00:00
|
|
|
DEPENDS_virtclass-nativesdk = "zlib-nativesdk libsdl-nativesdk qemugl-nativesdk"
|
|
|
|
RDEPENDS_virtclass-nativesdk = "libsdl-nativesdk"
|
2011-04-02 00:13:37 +00:00
|
|
|
EXTRA_OECONF_virtclass-nativesdk += "--target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls"
|
2010-05-28 08:13:03 +00:00
|
|
|
|
2010-06-10 11:04:22 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
2011-05-15 01:44:36 +00:00
|
|
|
|
|
|
|
# Qemu target will not build in world build for ARM or Mips
|
|
|
|
BROKEN_qemuarm = "1"
|
|
|
|
BROKEN_qemumips = "1"
|
2011-07-05 10:14:36 +00:00
|
|
|
|
|
|
|
INSANE_SKIP_${PN} = "arch"
|