ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xen0 @ 2860:61d139354129

bitkeeper revision 1.1159.157.1 (418934b0-qzq3Mn8ZcEAFEUYycHb2Q)

Device section fixes.
author akw27@labyrinth.cl.cam.ac.uk
date Wed Nov 03 19:42:40 2004 +0000 (2004-11-03)
parents 4fdcd6139bf0
children 9e8025840eed 23cadd2f9146 fb24f726e556
line source
2 EXTRAVERSION = xen0
4 FULLVERSION = $(LINUX_26VER)-$(EXTRAVERSION)
6 LINUX_DIR = linux-$(FULLVERSION)
8 include buildconfigs/Rules.mk
10 .PHONY: build clean delete
12 build: $(LINUX_DIR)
13 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules
14 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
15 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
17 # The real action starts here!
18 $(LINUX_DIR): pristine-linux-$(LINUX_26VER)
19 rm -rf $(LINUX_DIR)
20 cp -al pristine-linux-$(LINUX_26VER) $(LINUX_DIR)
21 # Apply arch-xen patches
22 ( cd linux-$(LINUX_26VER)-xen-sparse ; \
23 ./mkbuildtree ../$(LINUX_DIR) )
24 # Patch kernel Makefile to set EXTRAVERSION
25 ( cd $(LINUX_DIR) ; \
26 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
27 rm -f Makefile ; mv Mk.tmp Makefile )
28 # Re-use config from install dir if one exits else use make defconfig
29 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig $(LINUX_DIR)/.config
30 make -C $(LINUX_DIR) ARCH=xen oldconfig
32 clean:
33 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
35 delete:
36 rm -rf tmp-linux-$(LINUX_26VER) $(LINUX_DIR)