summaryrefslogtreecommitdiff
path: root/jtools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-08-15 12:18:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-08-15 12:18:17 +0200
commit36c4d46389c888b948448b34284af1d7dfd60508 (patch)
treef6127a4d049f66cbb792cc5d7b781313bc7d4a5f /jtools
parent8a56c55457bd7ae1ac7ce62150c2bb0e415d354d (diff)
fix compile for arm target
Diffstat (limited to 'jtools')
-rw-r--r--jtools/Makefile2
-rw-r--r--jtools/qemu/Makefile32
2 files changed, 33 insertions, 1 deletions
diff --git a/jtools/Makefile b/jtools/Makefile
index 7ddaf23eb..728d46dac 100644
--- a/jtools/Makefile
+++ b/jtools/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
TARGETS:=
ifneq ($(ADK_PACKAGE_OPENJDK),)
# jikes is for ant
-TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk
+TARGETS+=fastjar gcj ecj jikes classpath jamvm ant openjdk qemu
endif
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
diff --git a/jtools/qemu/Makefile b/jtools/qemu/Makefile
new file mode 100644
index 000000000..bc2f89205
--- /dev/null
+++ b/jtools/qemu/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= qemu
+PKG_VERSION:= 0.14.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= b6c713a8db638e173af53a62d5178640
+PKG_SITES:= http://download.savannah.gnu.org/releases/qemu/
+
+include ../rules.mk
+
+install: ${STAGING_JAVA_HOST_DIR}/usr/bin/qemu-arm
+
+$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
+ (cd $(WRKBUILD); ./configure --prefix=/usr \
+ --host-cc=$(CC_FOR_BUILD) \
+ --disable-system \
+ --disable-sdl \
+ --target-list=arm-linux-user \
+ )
+ touch $@
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
+ ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
+ touch $@
+
+${STAGING_JAVA_HOST_DIR}/usr/bin/qemu-arm: $(WRKBUILD)/.compiled
+ ${MAKE} -C ${WRKBUILD} DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
+
+include $(TOPDIR)/mk/tools.mk