From patchwork Fri Oct 19 13:13:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 192682 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7EA892C0090 for ; Sat, 20 Oct 2012 00:14:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D2E8B10031B; Fri, 19 Oct 2012 13:14:47 +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 FubuLpdp9w4y; Fri, 19 Oct 2012 13:14:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6EA63100031; Fri, 19 Oct 2012 13:14:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B203A8F74A for ; Fri, 19 Oct 2012 13:14:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 91C068D02C for ; Fri, 19 Oct 2012 13:14:48 +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 jBm8WJeMuCXK for ; Fri, 19 Oct 2012 13:14:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0ADC48D022 for ; Fri, 19 Oct 2012 13:14:46 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id hq4so189473wib.4 for ; Fri, 19 Oct 2012 06:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=APnB72dlndpvEUzOqerV/qaYRo9MLG4QJyvl16q8Aes=; b=lk6qfqNPTu3FL7lio/rrUQfHCnxwUC5jPrwFDuQ4jDyV62wLZVkwIaPTB4RHA96b0r +y//zfLLd4DRSQ5GcfsCdPNQdNXiPnUNioyfqP2BYBqEhiTqRdGQi5jRRRnFgXMuYfdB gbTVNHgmc+0uQkM73pxu0MNwnAfW+rvWYVvlG3GwGzjp9WCJfg8wk4XyZcfK+18AcICv wv0sDDBreKEwXXstnXxfOww/p4JUPboTgIzH95TUj7hWR2y1jCCH//QNWIyn/BILEC5+ bSZy+0bKmK1sya3BA9MIqc+eSqcRhW7CVlu+ELkVabE2+rGnhEvmfedmi5xdeW6o8flJ ezrg== Received: by 10.180.80.104 with SMTP id q8mr3235568wix.6.1350652485261; Fri, 19 Oct 2012 06:14:45 -0700 (PDT) Received: from xubuntu-12.04 (206.124.86.79.rev.sfr.net. [79.86.124.206]) by mx.google.com with ESMTPS id a10sm3390455wiz.4.2012.10.19.06.14.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Oct 2012 06:14:44 -0700 (PDT) From: Francois Perrad To: buildroot@busybox.net Date: Fri, 19 Oct 2012 15:13:46 +0200 Message-Id: <1350652434-32020-1-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH v11 1/9] host-qemu: new package 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net only user mode for the current target architecture Signed-off-by: Francois Perrad --- package/qemu/qemu.mk | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 package/qemu/qemu.mk diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk new file mode 100644 index 0000000..de72e04 --- /dev/null +++ b/package/qemu/qemu.mk @@ -0,0 +1,82 @@ +############################################################# +# +# qemu +# +############################################################# + +QEMU_VERSION = 1.2.0 +QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2 +QEMU_SITE = http://wiki.qemu.org/download + +# BR ARCH qemu +# ------- ---- +# arm arm +# armeb armeb +# avr32 not supported +# bfin not supported +# i386 i386 +# i486 i386 +# i586 i386 +# i686 i386 +# x86_64 x86_64 +# m68k m68k +# microblaze microblaze +# mips mips +# mipsel mipsel +# mips64 ? +# mips64el ? +# powerpc ppc +# sh2 not supported +# sh2a not supported +# sh3 not supported +# sh3eb not supported +# sh4 sh4 +# sh4eb sh4eb +# sh4a ? +# sh4aeb ? +# sh64 not supported +# sparc sparc + +QEMU_ARCH = $(ARCH) +ifeq ($(QEMU_ARCH),i486) + QEMU_ARCH = i386 +endif +ifeq ($(QEMU_ARCH),i586) + QEMU_ARCH = i386 +endif +ifeq ($(QEMU_ARCH),i686) + QEMU_ARCH = i386 +endif +ifeq ($(QEMU_ARCH),powerpc) + QEMU_ARCH = ppc +endif +HOST_QEMU_TARGETS=$(QEMU_ARCH)-linux-user + +define HOST_QEMU_CONFIGURE_CMDS + (cd $(@D); ./configure \ + --target-list="$(HOST_QEMU_TARGETS)" \ + --prefix="$(HOST_DIR)/usr" \ + --interp-prefix=$(STAGING_DIR) \ + --cc="$(HOSTCC)" \ + --host-cc="$(HOSTCC)" \ + --extra-cflags="$(HOST_CFLAGS)" \ + --extra-ldflags="$(HOST_LDFLAGS)" \ + ) +endef + +define HOST_QEMU_BUILD_CMDS + $(MAKE) -C $(@D) all +endef + +define HOST_QEMU_INSTALL_CMDS + $(MAKE) -C $(@D) install +endef + +define HOST_QEMU_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(host-generic-package)) + +# variable used by other packages +QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(QEMU_ARCH)