From patchwork Sun Aug 12 23:53:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 176821 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 6F2582C008F for ; Mon, 13 Aug 2012 09:59:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E45A2805A7; Sun, 12 Aug 2012 23:59:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SBSjw07BZsq1; Sun, 12 Aug 2012 23:59:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7B29C805AD; Sun, 12 Aug 2012 23:59:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BF2728F798 for ; Sun, 12 Aug 2012 23:54:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AEDDAFFB9C for ; Sun, 12 Aug 2012 23:54:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QGifWHYn5feB for ; Sun, 12 Aug 2012 23:54:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by fraxinus.osuosl.org (Postfix) with ESMTP id 077DCFF983 for ; Sun, 12 Aug 2012 23:54:30 +0000 (UTC) Received: from treguer.bzh.lan ([90.32.165.248]) by mwinf5d33 with ME id lzuQ1j0055MspoA03zuVHy; Mon, 13 Aug 2012 01:54:29 +0200 From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 13 Aug 2012 01:53:59 +0200 Message-Id: <1344815664-28138-11-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1344815664-28138-1-git-send-email-yann.morin.1998@free.fr> References: <1344815664-28138-1-git-send-email-yann.morin.1998@free.fr> MIME-Version: 1.0 Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] =?utf-8?q?=5BPATCH_11/36=5D_package/qemu=3A_new_packa?= =?utf-8?q?ge?= X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: "Yann E. MORIN" --- package/Config.in | 1 + package/qemu/Config.in | 24 ++++++++++++ package/qemu/qemu.mk | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 0 deletions(-) create mode 100644 package/qemu/Config.in create mode 100644 package/qemu/qemu.mk diff --git a/package/Config.in b/package/Config.in index 3109591..eb02983 100644 --- a/package/Config.in +++ b/package/Config.in @@ -504,6 +504,7 @@ menu "Miscellaneous" source "package/collectd/Config.in" source "package/empty/Config.in" source "package/mobile-broadband-provider-info/Config.in" +source "package/qemu/Config.in" source "package/shared-mime-info/Config.in" source "package/sound-theme-borealis/Config.in" source "package/sound-theme-freedesktop/Config.in" diff --git a/package/qemu/Config.in b/package/qemu/Config.in new file mode 100644 index 0000000..a77d863 --- /dev/null +++ b/package/qemu/Config.in @@ -0,0 +1,24 @@ +config BR2_PACKAGE_QEMU + bool "QEMU" + depends on BR2_PACKAGE_PYTHON # We only need host-python, + # but there's no way to say so. + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_LIBGLIB2 + help + QEMU is a generic and open source machine emulator and virtualizer. + + When used as a machine emulator, QEMU can run OSes and programs made + for one machine (e.g. an ARM board) on a different machine (e.g. + your own PC). By using dynamic translation, it achieves very good + performance. + + When used as a virtualizer, QEMU achieves near native performances + by executing the guest code directly on the host CPU. QEMU supports + virtualization when executing under the Xen hypervisor or using the + KVM kernel module in Linux. When using KVM, QEMU can virtualize x86, + server and embedded PowerPC, and S390 guests. + + http://qemu.org/ + +comment "QEMU requires python" + depends on !BR2_PACKAGE_PYTHON diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk new file mode 100644 index 0000000..3825731 --- /dev/null +++ b/package/qemu/qemu.mk @@ -0,0 +1,98 @@ +#----------------------------------------------------------------------------- +# Package description + +QEMU_VERSION = 1.1.1-1 +QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2 +QEMU_SITE = http://wiki.qemu.org/download +QEMU_LICENSE = GPLv2 LGPLv2.1 MIT BSD-3c BSD-2c Others/BSD-1c +QEMU_LICENSE_FILES = COPYING COPYING.LIB +# NOTE: there is no top-level license file for non-(L)GPL licenses; +# the non-(L)GPL license texts are specified in the affected +# individual source files. + +#----------------------------------------------------------------------------- +# Package unconditional configuration + +QEMU_DEPENDENCIES = zlib libglib2 + +#----------------------------------------------------------------------------- +# Package conditional configuration + +# Need the LIBS variable because librt and libm are +# not automatically pulled. :-( +QEMU_LIBS = -lrt -lm + +QEMU_OPTS = +QEMU_VARS = + +#---------------------------------------------------------------------------- +# Package build process + +# Note: although QEMU uses a ./configure script, it is not compatible with +# the traditional autotools options (eg. --target et al.), so we can +# not use the autotools-package infrastructure. So we have to use the +# generic-package infra instead. Sigh... :-( + +define QEMU_CONFIGURE_CMDS + ( cd $(@D); \ + LIBS='$(QEMU_LIBS)' \ + $(TARGET_CONFIGURE_OPTS) \ + $(TARGET_CONFIGURE_ARGS) \ + $(QEMU_VARS) \ + ./configure \ + --prefix=/usr \ + --cross-prefix=$(TARGET_CROSS) \ + --audio-drv-list= \ + --audio-card-list= \ + --enable-kvm \ + --enable-nptl \ + --enable-attr \ + --enable-vhost-net \ + --enable-system \ + --enable-linux-user \ + --disable-bsd-user \ + --disable-xen \ + --disable-slirp \ + --disable-sdl \ + --disable-vnc \ + --disable-virtfs \ + --disable-brlapi \ + --disable-curses \ + --disable-curl \ + --disable-fdt \ + --disable-bluez \ + --disable-guest-base \ + --disable-uuid \ + --disable-vde \ + --disable-linux-aio \ + --disable-cap-ng \ + --disable-docs \ + --disable-spice \ + --disable-rbd \ + --disable-libiscsi \ + --disable-usb-redir \ + --disable-guest-agent \ + --disable-smartcard \ + --disable-strip \ + $(QEMU_OPTS) \ + ) +endef + +define QEMU_BUILD_CMDS + $(MAKE) -C $(@D) +endef + +define QEMU_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install +endef + +define QEMU_UNINSTALL_TARGET_CMDS + @echo 'QEMU has no uninstall rule.' + @false +endef + +define QEMU_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(generic-package))