ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xen0 @ 3004:2bebf77dc30e

bitkeeper revision 1.1159.175.1 (419a9b9dCZLKnt1tKvFYyV5cDeDbmQ)

Clean up drivers/char/mem.c patch.
author iap10@labyrinth.cl.cam.ac.uk
date Wed Nov 17 00:30:21 2004 +0000 (2004-11-17)
parents d3b6b1e5825c
children 2a69594a92dc
line source
2 LINUX_SERIES = 2.6
4 EXTRAVERSION = xen0
6 FULLVERSION = $(LINUX_VER)-$(EXTRAVERSION)
8 LINUX_DIR = linux-$(FULLVERSION)
10 include buildconfigs/Rules.mk
12 .PHONY: build clean delete
14 build: $(LINUX_DIR)/include/linux/autoconf.h
15 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules
16 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
17 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
19 # The real action starts here!
20 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
21 rm -rf $(LINUX_DIR)
22 cp -al pristine-linux-$(LINUX_VER) $(LINUX_DIR)
23 # Apply arch-xen patches
24 ( cd linux-$(LINUX_VER)-xen-sparse ; \
25 ./mkbuildtree ../$(LINUX_DIR) )
26 # Patch kernel Makefile to set EXTRAVERSION
27 ( cd $(LINUX_DIR) ; \
28 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
29 rm -f Makefile ; mv Mk.tmp Makefile )
30 # Re-use config from install dir if one exits else use default config
31 [ -r $(INSTALL_DIR)/boot/config-$(FULLVERSION) ] && \
32 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
33 || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig \
34 $(LINUX_DIR)/.config
35 make -C $(LINUX_DIR) ARCH=xen oldconfig
37 clean:
38 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
40 delete:
41 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)