ia64/xen-unstable

view buildconfigs/mk.linux-2.4-xen0 @ 3917:86b610094dd0

bitkeeper revision 1.1236.1.16 (421db67dL0mXatHebAtt9KpMqkCIBQ)

More FPU fixes. Extend taskswitch hypercall to allow TS bit to be
cleared as well as set.
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 24 11:11:57 2005 +0000 (2005-02-24)
parents ff8c9a2be5f7
children e9ca570f9023 d16ae85cb89e
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 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=$(DESTDIR) modules_install ; \
19 fi
20 $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install
22 patches/tmp/ebtables.diff:
23 mkdir -p patches/tmp
24 wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@
26 $(LINUX_DIR)/include/linux/autoconf.h: patches/tmp/ebtables.diff
27 $(LINUX_DIR)/include/linux/autoconf.h: pristine-linux-$(LINUX_VER)
28 rm -rf $(LINUX_DIR)
29 cp -al $< $(LINUX_DIR)
30 # Apply arch-xen patches
31 ( cd linux-$(LINUX_VER)-xen-sparse ; \
32 ./mkbuildtree ../$(LINUX_DIR) )
33 # Patch kernel Makefile to set EXTRAVERSION
34 ( cd $(LINUX_DIR) ; \
35 sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
36 rm -f Makefile ; mv Mk.tmp Makefile )
37 # add ebtables patch
38 ( cd $(LINUX_DIR) ; patch -p1 -F3 < ../patches/tmp/ebtables.diff )
39 # Re-use config from install dir if one exits else use default config
40 [ -r $(DESTDIR)/boot/config-$(FULLVERSION) ] && \
41 cp $(DESTDIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
42 || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
43 $(LINUX_DIR)/.config
44 make -C $(LINUX_DIR) ARCH=xen oldconfig
45 make -C $(LINUX_DIR) ARCH=xen dep
47 config: CONFIGMODE = menuconfig
48 config: $(LINUX_DIR)/include/linux/autoconf.h
49 $(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE)
50 $(MAKE) -C $(LINUX_DIR) ARCH=xen dep
52 clean:
53 $(MAKE) -C $(LINUX_DIR) ARCH=xen clean
55 delete:
56 rm -rf tmp-linux-$(LINUX_VER) $(LINUX_DIR)