mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <wei.liu2@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
5f335544cf
commit
0cc73e9870
1 file changed
+6
-4
@@ -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
|
||||
|
||||