summaryrefslogtreecommitdiffstats
path: root/src/qemu
diff options
context:
space:
mode:
authorRadek Zetik <radekx.zetik@intel.com>2015-10-21 06:45:20 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-10-29 11:32:19 +0000
commit4bdcd58361959541d9d3572373cabd60c0929851 (patch)
treedcefd96a5411545484ddeda095ae742f1de9241b /src/qemu
parent67b0760d2b123ee834f8552057aed0e68a282257 (diff)
Fix Make, Make clean and when the src directories are cloned
Update the rules for Make clean and distclean. Update make not to clone the repositories if they are already cloned, simply pull, checkout the tags and build. Changes in this patch: 1. QEMU is built just once in .../src directory. .../src_vanilla and .../src_cuse don't contain qemu anymore 2. 'make clean' deletes all built *.o files 3. 'make distclean' deletes all built and generated files (distclean is used instead of cleanse now) 4. 'make' calls 'git pull' when repository is cloned already JIRA: VSPERF-94 Change-Id: I80f9a135580b450fb4606cf947661049ff509548 Signed-off-by: Radek Zetik <radekx.zetik@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com> Reviewed-by: Gene Snider <eugene.snider@huawei.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'src/qemu')
-rwxr-xr-xsrc/qemu/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qemu/Makefile b/src/qemu/Makefile
index 0a71cf78..1268f571 100755
--- a/src/qemu/Makefile
+++ b/src/qemu/Makefile
@@ -45,6 +45,8 @@ config $(WORK_DIR)/Makefile: $(WORK_DIR)/configure
INSTALL_TARGET = force_install force_make
force_make: $(WORK_DIR)/Makefile
+ $(AT)cd $(WORK_DIR) && git pull $(QEMU_URL) $(QEMU_TAG)
+ $(AT)echo "git pull done"
$(AT)$(MAKE) -C $(WORK_DIR) $(MORE_MAKE_FLAGS)
@echo "Make done"
@@ -55,14 +57,15 @@ install: $(INSTALL_TARGET)
# hard way to clean and clobber
clean:
+ $(AT)cd $(WORK_DIR) && git clean -xfd *.o
clobber:
$(AT)rm -rf $(WORK_DIR)
$(AT)rm -rf $(QEMU_VANILLA)
$(AT)rm -rf $(QEMU_CUSE)
-# cleanse is for developer who would like to keep the
+# distclean is for developer who would like to keep the
# clone git repo, saving time to fetch again from url
-cleanse:
+distclean:
$(AT)cd $(WORK_DIR) && git clean -xfd && git checkout -f
test: