summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-01-09 14:46:18 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2017-01-30 17:38:17 +0100
commit4fa8f2a7a1493ebb918a687c4ef587f43084bbf1 (patch)
treef84aff52f49705ea53ddac4e4ba24256c28b1fd6 /tools
parent31b06409067a7d1cb6005ed24b97a56009276aaa (diff)
downloadmtk-20170518-4fa8f2a7a1493ebb918a687c4ef587f43084bbf1.zip
mtk-20170518-4fa8f2a7a1493ebb918a687c4ef587f43084bbf1.tar.gz
mtk-20170518-4fa8f2a7a1493ebb918a687c4ef587f43084bbf1.tar.bz2
tools/qemu: use default host configure rule ; set appropriate vars & args
Admittedly, this is my own OCD wanting to get rid of this. Because I tried (a while back to upgrade QEMU to a newer version), and (during that attempt) I tried to get rid of this. Tested on Linux & Mac. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qemu/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/qemu/Makefile b/tools/qemu/Makefile
index 2d954e4..783d0f9 100644
--- a/tools/qemu/Makefile
+++ b/tools/qemu/Makefile
@@ -18,15 +18,13 @@ include $(INCLUDE_DIR)/host-build.mk
HOST_CFLAGS += -I$(STAGING_DIR_HOST)/include/e2fsprogs
-define Host/Configure
- (cd $(HOST_BUILD_DIR); \
- CFLAGS="$(HOST_CFLAGS)" \
- LDFLAGS="$(HOST_LDFLAGS)" \
- $(HOST_CONFIGURE_CMD) \
- --extra-cflags="$(HOST_CFLAGS)" \
- --enable-uuid \
- )
-endef
+HOST_CONFIGURE_VARS := \
+ CFLAGS="$(HOST_CFLAGS)" \
+ LDFLAGS="$(HOST_LDFLAGS)"
+
+HOST_CONFIGURE_ARGS := \
+ --extra-cflags="$(HOST_CFLAGS)" \
+ --enable-uuid
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR) qemu-img