aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2012-10-19 03:13:46 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-11-03 11:14:00 +0100
commit63c287bd27220be6db59033981988f296dccd2ef (patch)
treedf54acfe8e2f3814d020f8b03e10ddc8ac870b36
parent29d084073b336157fc469ab6ddbfcc59084fe542 (diff)
downloadbuildroot-novena-63c287bd27220be6db59033981988f296dccd2ef.tar.gz
buildroot-novena-63c287bd27220be6db59033981988f296dccd2ef.zip
host-qemu: new package
only user mode for the current target architecture Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/qemu/qemu.mk82
1 files changed, 82 insertions, 0 deletions
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
new file mode 100644
index 000000000..de72e045b
--- /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)