]> xenbits.xensource.com Git - people/liuw/stubdom.git/commitdiff
build system: stubdom targets now depends on mini-os target
authorWei Liu <wei.liu2@citrix.com>
Fri, 30 Jan 2015 15:58:38 +0000 (15:58 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 27 Feb 2015 16:04:50 +0000 (16:04 +0000)
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.

Makefile

index 6e6876b1aa8ae831cf1980533486de6cbe22ecc9..1a1f26330b40f2cfd9d78a3114e4cae3efdaf0cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 XEN_ROOT = $(CURDIR)/..
 MINI_OS = $(XEN_ROOT)/extras/mini-os
 
+ifeq ($(wildcard $(MINI_OS)/Config.mk),)
+$(error Please run `make mini-os-dir' in top-level directory)
+endif
+
 export XEN_OS=MiniOS
 
 export stubdom=y