ia64/xen-unstable

changeset 1468:a53cc9700ac8

bitkeeper revision 1.961 (40cd813a7QpE6VQrh3JjepYkNzoVRw)

typo fix plus some comments
author iap10@labyrinth.cl.cam.ac.uk
date Mon Jun 14 10:43:06 2004 +0000 (2004-06-14)
parents 8e6a772424a1
children f6495a180c4d
files BitKeeper/etc/ignore Makefile
line diff
     1.1 --- a/BitKeeper/etc/ignore	Mon Jun 14 10:27:13 2004 +0000
     1.2 +++ b/BitKeeper/etc/ignore	Mon Jun 14 10:43:06 2004 +0000
     1.3 @@ -30,3 +30,4 @@ xen/tools/figlet/figlet
     1.4  xen/xen
     1.5  xen/xen.*
     1.6  xen/xen-syms
     1.7 +install
     2.1 --- a/Makefile	Mon Jun 14 10:27:13 2004 +0000
     2.2 +++ b/Makefile	Mon Jun 14 10:43:06 2004 +0000
     2.3 @@ -4,15 +4,18 @@
     2.4  
     2.5  INSTALL_DIR ?= $(shell pwd)/install
     2.6  
     2.7 +# a not partcularly useful but safe default target
     2.8  all: make-symlinks
     2.9  	$(MAKE) -C xen
    2.10  	$(MAKE) -C tools
    2.11  
    2.12 +# install everything into the standard system directories
    2.13  install: all
    2.14  	$(MAKE) -C xen install
    2.15  	$(MAKE) -C tools install
    2.16  	$(shell cp -a install/boot/*$(LINUX_VER)* /boot/)
    2.17  
    2.18 +# install xen and tools into the install directory
    2.19  dist: all
    2.20  	$(MAKE) prefix=$(INSTALL_DIR) dist=yes -C xen install
    2.21  	$(MAKE) prefix=$(INSTALL_DIR) dist=yes -C tools install
    2.22 @@ -22,6 +25,7 @@ LINUX_CONFIG_DIR ?= $(INSTALL_DIR)/boot
    2.23  LINUX_SRC_PATH   ?= .:..
    2.24  LINUX_SRC_X ?= $(firstword $(foreach dir,$(subst :, ,$(LINUX_SRC_PATH)),$(wildcard $(dir)/linux-$(LINUX_VER).tar.gz)))
    2.25  
    2.26 +# search for a pristine kernel tar ball, or try downloading one
    2.27  pristine-linux-src: 
    2.28  ifneq ($(LINUX_SRC),)
    2.29  	@[ -r "$(LINUX_SRC)" ] || (echo "Can not find linux src at $(LINUX_SRC)" && false)
    2.30 @@ -34,30 +38,36 @@ LINUX_SRC_X = ./linux-$(LINUX_VER).tar.g
    2.31  endif
    2.32  endif
    2.33  
    2.34 +# make a linux-xen build tree from a pristine kernel plus sparse tree
    2.35  linux-$(LINUX_VER)-xen: pristine-linux-src
    2.36  	$(RM) -rf linux-$(LINUX_VER)-xen
    2.37  	tar -x -z -f $(LINUX_SRC_X)
    2.38  	mv linux-$(LINUX_VER) linux-$(LINUX_VER)-xen
    2.39  	( cd linux-$(LINUX_VER)-xen-sparse ; ./mkbuildtree ../linux-$(LINUX_VER)-xen )
    2.40  
    2.41 +# config linux-xen from a specified defaults file
    2.42  linux_%_config: 
    2.43  	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen mrproper
    2.44  	cp $(LINUX_CONFIG_DIR)/config-$(LINUX_VER)-$(subst _config,,$(subst linux_,,$(@))) .config || $(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen $(subst linux_,,$(@))
    2.45  	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen oldconfig
    2.46  	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen dep
    2.47  
    2.48 +# build and install to a specified install name
    2.49 +linux_%: 
    2.50 +	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen INSTALL_NAME=$(subst linux_,$(LINUX_VER)-,$(@)) INSTALL_PATH=$(INSTALL_DIR) install
    2.51 +
    2.52 +# shorthand with no siffix
    2.53  linux:	
    2.54  	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install	
    2.55  
    2.56 -linux_%: 
    2.57 -	$(MAKE) -C linux-$(LINUX_VER)-xen ARCH=xen INSTALL_NAME=$(subst linux_,$(LINUX_VER)-,$(@)) INSTALL_PATH=$(INSTALL_DIR) install
    2.58 -
    2.59 -
    2.60 +# build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
    2.61 +# and place them in the install directory. 'make install' should then
    2.62 +# copy them to the normal system directories
    2.63  world: dist
    2.64  	$(MAKE) linux-$(LINUX_VER)-xen
    2.65  	$(MAKE) linux_xenU_config
    2.66  	$(MAKE) linux_xenU
    2.67 -	$(MAKE) linuc_xen0_config
    2.68 +	$(MAKE) linux_xen0_config
    2.69  	$(MAKE) linux_xen0
    2.70  
    2.71  
    2.72 @@ -65,6 +75,7 @@ clean: delete-symlinks
    2.73  	$(MAKE) -C xen clean
    2.74  	$(MAKE) -C tools clean
    2.75  
    2.76 +# clean, but blow away linux build tree plus src tar ball
    2.77  mrproper: clean
    2.78  	rm -rf install linux-$(LINUX_VER)-xen linux-$(LINUX_VER).tar.gz
    2.79