ia64/xen-unstable

view buildconfigs/mk.linux-2.4-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_24VER)-$(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
18 patches/ebtables.diff:
19 mkdir -p patches
20 wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@
22 $(LINUX_DIR): pristine-linux-$(LINUX_24VER) patches/ebtables.diff
23 rm -rf $(LINUX_DIR)
24 cp -al pristine-linux-$(LINUX_24VER) $(LINUX_DIR)
25 # Apply arch-xen patches
26 ( cd linux-$(LINUX_24VER)-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 make defconfig
33 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) $(LINUX_DIR)/.config
34 make -C $(LINUX_DIR) ARCH=xen oldconfig
35 make -C $(LINUX_DIR) ARCH=xen dep
37 clean:
38 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
40 delete:
41 rm -rf tmp-linux-$(LINUX_24VER) $(LINUX_DIR)