ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xenU @ 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 = xenU
4 FULLVERSION = $(LINUX_26VER)-$(EXTRAVERSION)
6 LINUX_DIR = linux-$(FULLVERSION)
8 include buildconfigs/Rules.mk
10 .PHONY: build clean delete
12 # The real action starts here!
13 build: $(LINUX_DIR)
14 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules
15 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
16 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
19 $(LINUX_DIR): pristine-linux-$(LINUX_26VER)
20 rm -rf $(LINUX_DIR)
21 cp -al pristine-linux-$(LINUX_26VER) $(LINUX_DIR)
22 # Apply arch-xen patches
23 ( cd linux-$(LINUX_26VER)-xen-sparse ; \
24 ./mkbuildtree ../$(LINUX_DIR) )
25 # Patch kernel Makefile to set EXTRAVERSION
26 ( cd $(LINUX_DIR) ; \
27 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
28 rm -f Makefile ; mv Mk.tmp Makefile )
29 # Re-use config from install dir if one exits else use make defconfig
30 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig $(LINUX_DIR)/.config
31 make -C $(LINUX_DIR) ARCH=xen oldconfig
33 clean:
34 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
36 delete:
37 rm -rf tmp-linux-$(LINUX_26VER) $(LINUX_DIR)