mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build system: stubdom targets now depends on mini-os target
Provide mini-os url and revision in Config.mk
Make stubdom targets depend on mini-os-dir target. Make
subtree-force-update{,-all} depend on mini-os-dir-force-update.
Also make mktarball script generate mini-os archive.
Original mini-os directory is renamed to mini-os-intree to help reduce
patch length. That directory will be deleted in a separate patch.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
Changes in v3:
1. Put mini-os targets in main Makefile.
2. Stubdom clean and distclean don't depend on mini-os-dir.
Changes in v2:
1. Use hash in Config.mk.
This commit is contained in:
1 parent
4af58a26be
commit
42ddf48a29
226 files changed
+35
-9
No files matched your search
@@ -17,6 +17,22 @@ TARGS_DISTCLEAN=$(patsubst %, distclean-%, $(SUBSYSTEMS))
|
||||
export XEN_ROOT=$(CURDIR)
|
||||
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
|
||||
|
||||
.PHONY: mini-os-dir-force-update
|
||||
mini-os-dir-force-update: mini-os-dir
|
||||
set -ex; \
|
||||
if [ "$(MINIOS_UPSTREAM_REVISION)" ]; then \
|
||||
cd extras/mini-os-remote; \
|
||||
$(GIT) fetch origin; \
|
||||
$(GIT) reset --hard $(MINIOS_UPSTREAM_REVISION); \
|
||||
fi
|
||||
|
||||
SUBARCH := $(subst x86_32,i386,$(XEN_TARGET_ARCH))
|
||||
export XEN_TARGET_ARCH SUBARCH
|
||||
export DESTDIR
|
||||
@@ -37,7 +53,7 @@ build-tools:
|
||||
$(MAKE) -C tools build
|
||||
|
||||
.PHONY: build-stubdom
|
||||
build-stubdom:
|
||||
build-stubdom: mini-os-dir
|
||||
$(MAKE) -C stubdom build
|
||||
ifeq (x86_64,$(XEN_TARGET_ARCH))
|
||||
XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom pv-grub
|
||||
@@ -84,7 +100,7 @@ install-tools:
|
||||
$(MAKE) -C tools install
|
||||
|
||||
.PHONY: install-stubdom
|
||||
install-stubdom: install-tools
|
||||
install-stubdom: install-tools mini-os-dir
|
||||
$(MAKE) -C stubdom install
|
||||
ifeq (x86_64,$(XEN_TARGET_ARCH))
|
||||
XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub
|
||||
@@ -125,11 +141,11 @@ rpmball: dist
|
||||
bash ./tools/misc/mkrpm $(XEN_ROOT) $$($(MAKE) -C xen xenversion --no-print-directory)
|
||||
|
||||
.PHONY: subtree-force-update
|
||||
subtree-force-update:
|
||||
subtree-force-update: mini-os-dir-force-update
|
||||
$(MAKE) -C tools subtree-force-update
|
||||
|
||||
.PHONY: subtree-force-update-all
|
||||
subtree-force-update-all:
|
||||
subtree-force-update-all: mini-os-dir-force-update
|
||||
$(MAKE) -C tools subtree-force-update-all
|
||||
|
||||
# Make a source tarball, including qemu sub-trees.
|
||||
|
||||