aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qemu
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-01-09 14:46:18 +0200
committerJohn Crispin <john@phrozen.org>2017-01-18 08:54:58 +0100
commit2b84dfafa44df86981ac909934e2ff4cfe7a02ea (patch)
tree7895248d391774bdd32296a76d17a35a33662ba8 /tools/qemu
parent6b5dab9469291ac5d335766d9e55a9bf77808419 (diff)
downloadupstream-2b84dfafa44df86981ac909934e2ff4cfe7a02ea.tar.gz
upstream-2b84dfafa44df86981ac909934e2ff4cfe7a02ea.tar.bz2
upstream-2b84dfafa44df86981ac909934e2ff4cfe7a02ea.zip
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/qemu')
-rw-r--r--tools/qemu/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/qemu/Makefile b/tools/qemu/Makefile
index 2d954e47aa..783d0f9fad 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