ia64/xen-unstable

view buildconfigs/mk.linux-2.6-xenU @ 3415:fd293c2a73db

bitkeeper revision 1.1159.217.6 (41e403c1Mm1w4avs8HEIsaiwdjkApw)

Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-2.0-testing.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
author kaf24@scramble.cl.cam.ac.uk
date Tue Jan 11 16:50:09 2005 +0000 (2005-01-11)
parents 2a69594a92dc ee7636141b3e
children 10e3000a78b4
line source
2 LINUX_SERIES = 2.6
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 if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
17 $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
18 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(INSTALL_DIR) modules_install ; \
19 fi
20 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(INSTALL_DIR) install
22 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
23 rm -rf $(LINUX_DIR)
24 cp -al $< $(LINUX_DIR)
25 # Apply arch-xen patches
26 ( cd linux-$(LINUX_VER)-xen-sparse ; \
27 ./mkbuildtree ../$(LINUX_DIR) )
28 # Patch kernel Makefile to set EXTRAVERSION
29 ( cd $(LINUX_DIR) ; \
30 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
31 rm -f Makefile ; mv Mk.tmp Makefile )
32 # Re-use config from install dir if one exits else use default config
33 [ -r $(INSTALL_DIR)/boot/config-$(FULLVERSION) ] && \
34 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
35 || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig \
36 $(LINUX_DIR)/.config
37 make -C $(LINUX_DIR) ARCH=xen oldconfig
39 clean:
40 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
42 delete:
43 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)