From: Wei Liu Date: Thu, 27 Aug 2015 15:54:01 +0000 (+0100) Subject: build: fix tarball stubdom build X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2614 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0cc73e9870a96e18fc076618c0b419919794ae06;p=xen.git build: fix tarball stubdom build When we create a source code tarball, mini-os is extracted to extras/mini-os directory. When building a source code tarball, we shouldn't clone mini-os again. Only clone mini-os when that directory doesn't exist. This fixes tarball build and doesn't affect non-tarball build. Signed-off-by: Wei Liu Acked-by: Ian Jackson Cc: Ian Campbell --- diff --git a/Makefile b/Makefile index e8a75ffb66..ba0df708d5 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,12 @@ include Config.mk .PHONY: mini-os-dir mini-os-dir: - GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh \ - $(MINIOS_UPSTREAM_URL) \ - $(MINIOS_UPSTREAM_REVISION) \ - $(XEN_ROOT)/extras/mini-os + if [ ! -d $(XEN_ROOT)/extras/mini-os ]; then \ + GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh \ + $(MINIOS_UPSTREAM_URL) \ + $(MINIOS_UPSTREAM_REVISION) \ + $(XEN_ROOT)/extras/mini-os ; \ + fi .PHONY: mini-os-dir-force-update mini-os-dir-force-update: mini-os-dir