summaryrefslogtreecommitdiff
path: root/mk/vars.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-08-22 06:26:27 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-08-22 06:26:27 +0200
commit90f063cdaa362277b19eac3d3e3ebeb6227b4da3 (patch)
tree58f05de6554dd97a6afffada929aa5402dab2117 /mk/vars.mk
parentf41e4877defd5be85457121c5fd9b923a943d8ed (diff)
parent432ae1a94f4d543da3aa2ed226cd3c00e350e3c4 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk/vars.mk')
-rw-r--r--mk/vars.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 3776b57b4..d4f64d068 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -47,6 +47,19 @@ TARGET_PATH= ${SCRIPT_DIR}:${TOOLS_DIR}:${STAGING_HOST_DIR}/bin:${STAGING_HOST_
REAL_GNU_TARGET_NAME= $(CPU_ARCH)-$(ADK_VENDOR)-linux-$(ADK_TARGET_SUFFIX)
GNU_TARGET_NAME= $(CPU_ARCH)-$(ADK_VENDOR)-linux
+ifeq ($(CPU_ARCH),arm)
+QEMU:= qemu-arm
+endif
+ifeq ($(CPU_ARCH),mipsel)
+QEMU:= qemu-mipsel
+endif
+ifeq ($(CPU_ARCH),i586)
+QEMU:= qemu-i386
+endif
+ifeq ($(CPU_ARCH),i686)
+QEMU:= qemu-i386
+endif
+
ifeq ($(ADK_NATIVE),y)
TARGET_CROSS:=
TARGET_COMPILER_PREFIX?=
@@ -138,7 +151,8 @@ TARGET_CONFIGURE_OPTS= PATH='${TARGET_PATH}' \
HOST_CONFIGURE_OPTS= CC_FOR_BUILD='${CC_FOR_BUILD}' \
CPPFLAGS_FOR_BUILD='${CPPFLAGS_FOR_BUILD}' \
CFLAGS_FOR_BUILD='${CFLAGS_FOR_BUILD}' \
- LDFLAGS_FOR_BUILD='${LDFLAGS_FOR_BUILD}'
+ LDFLAGS_FOR_BUILD='${LDFLAGS_FOR_BUILD}' \
+ QEMU='$(QEMU)'
PKG_SUFFIX:= $(strip $(subst ",, $(ADK_PACKAGE_SUFFIX)))