]> xenbits.xensource.com Git - xen.git/commitdiff
make: Add subtree-force-update target
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 15 Sep 2014 16:25:03 +0000 (17:25 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 23 Sep 2014 17:39:49 +0000 (18:39 +0100)
subtree-force-update will update all subtrees according to the current TAG specified
in Config.mk.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Makefile
tools/Makefile
tools/firmware/Makefile

index 580df644bf43b85ee83fb651ee49d341910128ce..23890574d4ac0a5c59949408c3a74f1b0d28ac4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -135,6 +135,14 @@ debball: dist
 rpmball: dist
        bash ./tools/misc/mkrpm $(XEN_ROOT) $$($(MAKE) -C xen xenversion --no-print-directory)
 
+.PHONY: subtree-force-update
+subtree-force-update:
+       $(MAKE) -C tools subtree-force-update
+
+.PHONY: subtree-force-update-all
+subtree-force-update-all:
+       $(MAKE) -C tools subtree-force-update-all
+
 .PHONY: clean
 clean::
        $(MAKE) -C xen clean
@@ -173,34 +181,35 @@ src-tarball: distclean
 .PHONY: help
 help:
        @echo 'Installation targets:'
-       @echo '  install          - build and install everything'
-       @echo '  install-xen      - build and install the Xen hypervisor'
-       @echo '  install-tools    - build and install the control tools'
-       @echo '  install-stubdom  - build and install the stubdomain images'
-       @echo '  install-docs     - build and install user documentation'
+       @echo '  install               - build and install everything'
+       @echo '  install-xen           - build and install the Xen hypervisor'
+       @echo '  install-tools         - build and install the control tools'
+       @echo '  install-stubdom       - build and install the stubdomain images'
+       @echo '  install-docs          - build and install user documentation'
        @echo ''
        @echo 'Building targets:'
-       @echo '  dist             - build and install everything into local dist directory'
-       @echo '  world            - clean everything then make dist'
-       @echo '  xen              - build and install Xen hypervisor'
-       @echo '  tools            - build and install tools'
-       @echo '  stubdom          - build and install the stubdomain images'
-       @echo '  docs             - build and install user documentation'
-       @echo '  dev-docs         - build developer-only documentation'
+       @echo '  dist                  - build and install everything into local dist directory'
+       @echo '  world                 - clean everything then make dist'
+       @echo '  xen                   - build and install Xen hypervisor'
+       @echo '  tools                 - build and install tools'
+       @echo '  stubdom               - build and install the stubdomain images'
+       @echo '  docs                  - build and install user documentation'
+       @echo '  dev-docs              - build developer-only documentation'
        @echo ''
        @echo 'Cleaning targets:'
-       @echo '  clean            - clean the Xen, tools and docs (but not guest kernel trees)'
-       @echo '  distclean        - clean plus delete kernel build trees and'
-       @echo '                     local downloaded files'
+       @echo '  clean                 - clean the Xen, tools and docs (but not guest kernel trees)'
+       @echo '  distclean             - clean plus delete kernel build trees and'
+       @echo '                          local downloaded files'
+       @echo '  subtree-force-update  - Call *-force-update on all git subtrees (qemu, seabios, ovmf)'
        @echo ''
        @echo 'Miscellaneous targets:'
-       @echo '  uninstall        - attempt to remove installed Xen tools'
-       @echo '                     (use with extreme care!)'
+       @echo '  uninstall             - attempt to remove installed Xen tools'
+       @echo '                          (use with extreme care!)'
        @echo
        @echo 'Trusted Boot (tboot) targets:'
-       @echo '  build-tboot      - download and build the tboot module'
-       @echo '  install-tboot    - download, build, and install the tboot module'
-       @echo '  clean-tboot      - clean the tboot module if it exists'
+       @echo '  build-tboot           - download and build the tboot module'
+       @echo '  install-tboot         - download, build, and install the tboot module'
+       @echo '  clean-tboot           - clean the tboot module if it exists'
        @echo
        @echo 'Environment:'
        @echo '  [ this documentation is sadly not complete ]'
index 11303699dc57883438ce0b644d42da1dcaa20fe4..81ce7afae2350cb37ae7ac2d7b15dbcbd8ee6fd9 100644 (file)
@@ -240,3 +240,17 @@ subdir-all-debugger/kdd: .phony
 
 subdir-distclean-firmware: .phony
        $(MAKE) -C firmware distclean
+
+subtree-force-update:
+ifeq ($(CONFIG_QEMU_XEN),y)
+       $(MAKE) qemu-xen-dir-force-update
+endif
+ifeq ($(CONFIG_QEMU_TRAD),y)
+       $(MAKE) qemu-xen-traditional-dir-force-update
+endif
+       $(MAKE) -C firmware subtree-force-update
+
+subtree-force-update-all:
+       $(MAKE) qemu-xen-dir-force-update
+       $(MAKE) qemu-xen-traditional-dir-force-update
+       $(MAKE) -C firmware subtree-force-update-all
index 660bacbb730751a6f093afd758dd24ba9702b8a8..ca5df42e6afc258c5f2fe31eed62ea9657d94044 100644 (file)
@@ -88,3 +88,15 @@ subdir-clean-seabios-dir:
        set -e; if test -d seabios-dir/.; then \
                $(MAKE) -C seabios-dir clean; \
        fi
+
+subtree-force-update:
+ifeq ($(CONFIG_SEABIOS),y)
+       $(MAKE) seabios-dir-force-update
+endif
+ifeq ($(CONFIG_OVMF),y)
+       $(MAKE) ovmf-dir-force-update
+endif
+
+subtree-force-update-all:
+       $(MAKE) seabios-dir-force-update
+       $(MAKE) ovmf-dir-force-update