ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xenU @ 3348:3d7f4ed76300

bitkeeper revision 1.1159.1.514 (41d40931RP9O8KEhD-URrF5kcG5Rlg)

Merge tempest.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xeno.bk
into tempest.cl.cam.ac.uk:/local/scratch/smh22/xen-unstable.bk
author smh22@tempest.cl.cam.ac.uk
date Thu Dec 30 13:57:05 2004 +0000 (2004-12-30)
parents 2a69594a92dc
children 59cd0bf0ef3b 074d7606fd61 d8ba911dce48 0dc3b8b8c298
line source
2 LINUX_SERIES = 2.4
4 EXTRAVERSION = xenU
6 FULLVERSION = $(LINUX_VER)-$(EXTRAVERSION)
8 LINUX_DIR = linux-$(FULLVERSION)
10 include buildconfigs/Rules.mk
12 .PHONY: build clean delete
14 # The real action starts here!
15 build: $(LINUX_DIR)/include/linux/autoconf.h
16 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules
17 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install
18 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
20 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
21 rm -rf $(LINUX_DIR)
22 cp -al $< $(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/defconfig-$(EXTRAVERSION) \
34 $(LINUX_DIR)/.config
35 make -C $(LINUX_DIR) ARCH=xen oldconfig
36 make -C $(LINUX_DIR) ARCH=xen dep
38 clean:
39 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
41 delete:
42 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)