ia64/xen-unstable

view Makefile @ 1462:6f83c243b6fb

bitkeeper revision 1.955.1.3 (40c9facennrttw9pwLjozhgFjY3pSw)

Fix ignores.
author kaf24@scramble.cl.cam.ac.uk
date Fri Jun 11 18:32:46 2004 +0000 (2004-06-11)
parents 7031f4a4155f
children 6bb0f401f1b2
line source
1 #
2 # Grand Unified Makefile for Xen.
3 #
5 all: make-symlinks
6 $(MAKE) -C xen
7 $(MAKE) -C tools
9 install: all
10 $(MAKE) -C xen install
11 $(MAKE) -C tools install
13 dist: all
14 $(MAKE) prefix=`pwd`/../install dist=yes -C xen install
15 $(MAKE) prefix=`pwd`/../install dist=yes -C tools install
17 LINUX_VER ?= $(shell ( /bin/ls -ld linux-*-xen-sparse ) 2>/dev/null | sed -e 's!^.*linux-\(.\+\)-xen-sparse!\1!' )
18 LINUX_SRC ?= ../linux-$(LINUX_VER).tar.gz
19 LINUX_CONFIG_DIR ?= ../install/config
21 linux:
22 # build whatever is in the current linux directory
23 ( cd ../linux-$(LINUX_VER)-xen ; ARCH=xen make bzImage )
25 world: dist
26 mkdir -p ../install/config
27 $(RM) -rf ../linux-$(LINUX_VER)-xen
28 [ -e $(LINUX_SRC) ] || wget ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-$(LINUX_VER).tar.gz -O- > ../linux-$(LINUX_VER).tar.gz
29 tar -x -z -C .. -f $(LINUX_SRC)
30 mv ../linux-$(LINUX_VER) ../linux-$(LINUX_VER)-xen
31 ( cd linux-$(LINUX_VER)-xen-sparse ; ./mkbuildtree ../../linux-$(LINUX_VER)-xen )
32 cp $(LINUX_CONFIG_DIR)/dom0 ../linux-$(LINUX_VER)-xen/.config || cp linux-$(LINUX_VER)-xen-sparse/arch/xen/defconfigs/dom0 ../linux-$(LINUX_VER)-xen/.config
33 ( cd ../linux-$(LINUX_VER)-xen; ARCH=xen make oldconfig; ARCH=xen make dep; ARCH=xen make bzImage )
34 install -m0644 ../linux-$(LINUX_VER)-xen/arch/xen/boot/bzImage \
35 ../install/boot/vmlinuz-$(LINUX_VER)-xen0
36 install -m0644 ../linux-$(LINUX_VER)-xen/vmlinux ../install/boot/vmlinux-syms-$(LINUX_VER)-xen0
37 install -m0644 ../linux-$(LINUX_VER)-xen/.config $(LINUX_CONFIG_DIR)/dom0
38 ( cd ../linux-$(LINUX_VER)-xen ; ARCH=xen make mrproper )
39 cp $(LINUX_CONFIG_DIR)/unprivileged ../linux-$(LINUX_VER)-xen/.config || cp linux-$(LINUX_VER)-xen-sparse/arch/xen/defconfigs/unprivileged ../linux-$(LINUX_VER)-xen/.config
40 ( cd ../linux-$(LINUX_VER)-xen; ARCH=xen make oldconfig; ARCH=xen make dep; ARCH=xen make bzImage )
41 install -m0644 ../linux-$(LINUX_VER)-xen/arch/xen/boot/bzImage \
42 ../install/boot/vmlinuz-$(LINUX_VER)-xen
43 install -m0644 ../linux-$(LINUX_VER)-xen/vmlinux ../install/boot/vmlinux-syms-$(LINUX_VER)-xen
44 install -m0644 ../linux-$(LINUX_VER)-xen/.config $(LINUX_CONFIG_DIR)/unprivileged
46 clean: delete-symlinks
47 $(MAKE) -C xen clean
48 $(MAKE) -C tools clean
50 make-symlinks: delete-symlinks
51 ln -sf linux-$(LINUX_VER)-xen-sparse linux-xen-sparse
53 delete-symlinks:
54 $(RM) linux-xen-sparse