summaryrefslogtreecommitdiff
path: root/onlineupdate/qa/updater/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'onlineupdate/qa/updater/Makefile')
-rw-r--r--onlineupdate/qa/updater/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/onlineupdate/qa/updater/Makefile b/onlineupdate/qa/updater/Makefile
new file mode 100644
index 000000000000..5b240c356d01
--- /dev/null
+++ b/onlineupdate/qa/updater/Makefile
@@ -0,0 +1,14 @@
+gb_Side := host
+include ../../../config_host.mk
+
+unpack:
+ @echo "Unpacking the updater test project"
+ @rm -r $(WORKDIR)/updater || true
+ @unzip updater.zip -d $(WORKDIR) > /dev/null
+
+call: unpack
+ @echo "Update the test project"
+ @$(INSTDIR)/program/updater $(WORKDIR)/updater/user/patch $(WORKDIR)/updater $(WORKDIR)/updater/user/update /replace
+
+call-gdb: unpack
+ gdb --args $(INSTDIR)/program/updater $(WORKDIR)/updater/user/patch $(WORKDIR)/updater $(WORKDIR)/updater/user/update /replace