ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xen0 @ 3017:d0006e7baa9a

bitkeeper revision 1.1159.170.41 (419b5697bEIXHXiSbTxwpjfvjHraWw)

Reassert 2.1-devel after push to 2.0 tree.
author kaf24@freefall.cl.cam.ac.uk
date Wed Nov 17 13:48:07 2004 +0000 (2004-11-17)
parents 2a69594a92dc
children 59cd0bf0ef3b 074d7606fd61 d8ba911dce48 0dc3b8b8c298
line source
2 LINUX_SERIES = 2.4
4 EXTRAVERSION = xen0
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 patches/tmp/ebtables.diff:
21 mkdir -p patches/tmp
22 wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@
24 $(LINUX_DIR)/include/linux/autoconf.h: patches/tmp/ebtables.diff
25 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
26 rm -rf $(LINUX_DIR)
27 cp -al $< $(LINUX_DIR)
28 # Apply arch-xen patches
29 ( cd linux-$(LINUX_VER)-xen-sparse ; \
30 ./mkbuildtree ../$(LINUX_DIR) )
31 # Patch kernel Makefile to set EXTRAVERSION
32 ( cd $(LINUX_DIR) ; \
33 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
34 rm -f Makefile ; mv Mk.tmp Makefile )
35 # add ebtables patch
36 ( cd $(LINUX_DIR) ; patch -p1 -F3 < ../patches/tmp/ebtables.diff )
37 # Re-use config from install dir if one exits else use default config
38 [ -r $(INSTALL_DIR)/boot/config-$(FULLVERSION) ] && \
39 cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
40 || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
41 $(LINUX_DIR)/.config
42 make -C $(LINUX_DIR) ARCH=xen oldconfig
43 make -C $(LINUX_DIR) ARCH=xen dep
45 clean:
46 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
48 delete:
49 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)