summaryrefslogtreecommitdiff
path: root/jtools/qemu/Makefile
blob: c83a6d987a44794d1f28b03b8a5c7db652b49433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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,i386-linux-user,mipsel-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