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
+2
-4
@@ -46,10 +46,8 @@ docs/man1/
|
||||
docs/man5/
|
||||
docs/pdf/
|
||||
docs/txt/
|
||||
extras/mini-os/include/mini-os
|
||||
extras/mini-os/include/x86/mini-os
|
||||
extras/mini-os/include/list.h
|
||||
extras/mini-os/mini-os*
|
||||
extras/mini-os
|
||||
extras/mini-os-remote
|
||||
install/*
|
||||
stubdom/autom4te.cache/
|
||||
stubdom/binutils-*
|
||||
|
||||
@@ -245,14 +245,20 @@ OVMF_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/ovmf.git
|
||||
QEMU_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/qemu-upstream-unstable.git
|
||||
QEMU_TRADITIONAL_URL ?= http://xenbits.xen.org/git-http/qemu-xen-unstable.git
|
||||
SEABIOS_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/seabios.git
|
||||
MINIOS_UPSTREAM_URL ?= http://xenbits.xen.org/git-http/mini-os.git
|
||||
else
|
||||
OVMF_UPSTREAM_URL ?= git://xenbits.xen.org/ovmf.git
|
||||
QEMU_UPSTREAM_URL ?= git://xenbits.xen.org/qemu-upstream-unstable.git
|
||||
QEMU_TRADITIONAL_URL ?= git://xenbits.xen.org/qemu-xen-unstable.git
|
||||
SEABIOS_UPSTREAM_URL ?= git://xenbits.xen.org/seabios.git
|
||||
MINIOS_UPSTREAM_URL ?= git://xenbits.xen.org/mini-os.git
|
||||
endif
|
||||
OVMF_UPSTREAM_REVISION ?= 447d264115c476142f884af0be287622cd244423
|
||||
QEMU_UPSTREAM_REVISION ?= master
|
||||
MINIOS_UPSTREAM_REVISION ?= 55f7cd7427ef3e7fe3563a3da46d8664a2ed0d6d
|
||||
# Thu Jan 29 19:10:04 2015 +0000
|
||||
# Mini-OS: standalone build
|
||||
|
||||
SEABIOS_UPSTREAM_REVISION ?= rel-1.7.5
|
||||
# Thu May 22 16:59:16 2014 -0400
|
||||
# python3 fixes for vgabios and csm builds.
|
||||
|
||||
@@ -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.
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 226 files, more files were not shown because too many files have changed in this diff.
Show more