direct-io.hg

changeset 5620:132e23381692

Formally remove support for linux 2.4 dom0. domU should still work.
Signed-off-by: ian@xensource.com
author iap10@freefall.cl.cam.ac.uk
date Fri Jul 01 03:16:53 2005 +0000 (2005-07-01)
parents 8041c2fa1cbc
children 0962f5989d2a a1b5af05f72e
files
line diff
     1.1 --- a/buildconfigs/mk.linux-2.4-xen0	Fri Jul 01 02:12:36 2005 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,57 +0,0 @@
     1.4 -
     1.5 -OS           = linux
     1.6 -
     1.7 -LINUX_SERIES = 2.4
     1.8 -
     1.9 -EXTRAVERSION = xen0
    1.10 -
    1.11 -LINUX_DIR    = $(OS)-$(LINUX_VER)-$(EXTRAVERSION)
    1.12 -
    1.13 -include buildconfigs/Rules.mk
    1.14 -
    1.15 -.PHONY: build clean delete
    1.16 -
    1.17 -# The real action starts here!
    1.18 -build: $(LINUX_DIR)/include/linux/autoconf.h
    1.19 -	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
    1.20 -	    $(MAKE) -C $(LINUX_DIR) ARCH=xen modules ; \
    1.21 -	    $(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
    1.22 -	fi
    1.23 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen INSTALL_PATH=$(DESTDIR) install
    1.24 -
    1.25 -patches/tmp/ebtables.diff:
    1.26 -	mkdir -p patches/tmp
    1.27 -	wget http://www.cl.cam.ac.uk/netos/xen/downloads/ebtables-brnf-5_vs_2.4.27.diff.gz -O- | gunzip -c > $@
    1.28 -
    1.29 -$(LINUX_DIR)/include/linux/autoconf.h: patches/tmp/ebtables.diff
    1.30 -$(LINUX_DIR)/include/linux/autoconf.h: ref-$(OS)-$(LINUX_VER)/.valid-ref
    1.31 -	rm -rf $(LINUX_DIR)
    1.32 -	cp -al $(<D) $(LINUX_DIR)
    1.33 -	# Apply arch-xen patches
    1.34 -	( cd linux-$(LINUX_VER)-xen-sparse ; \
    1.35 -          ./mkbuildtree ../$(LINUX_DIR) )
    1.36 -	# add ebtables patch
    1.37 -	( cd $(LINUX_DIR) ; patch -p1 -F3 < ../patches/tmp/ebtables.diff )
    1.38 -	# Re-use config from install dir if one exits else use default config
    1.39 -	CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
    1.40 -	[ -r $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) ] && \
    1.41 -	  cp $(DESTDIR)/boot/config-$(LINUX_VER)$$CONFIG_VERSION-$(EXTRAVERSION) $(LINUX_DIR)/.config \
    1.42 -	  || cp $(LINUX_DIR)/arch/xen/defconfig-$(EXTRAVERSION) \
    1.43 -		$(LINUX_DIR)/.config
    1.44 -	# Patch kernel Makefile to set EXTRAVERSION
    1.45 -	( cd $(LINUX_DIR) ; \
    1.46 -	  sed -e 's/^EXTRAVERSION.*/&$$(XENGUEST)\nXENGUEST = -$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
    1.47 -	  rm -f Makefile ; mv Mk.tmp Makefile )
    1.48 -	make -C $(LINUX_DIR) ARCH=xen oldconfig
    1.49 -	make -C $(LINUX_DIR) ARCH=xen dep
    1.50 -
    1.51 -config: CONFIGMODE = menuconfig
    1.52 -config: $(LINUX_DIR)/include/linux/autoconf.h
    1.53 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen $(CONFIGMODE)
    1.54 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen dep
    1.55 -
    1.56 -clean::
    1.57 -	$(MAKE) -C $(LINUX_DIR) ARCH=xen clean
    1.58 -
    1.59 -delete: 
    1.60 -	rm -rf tmp-$(OS)-$(LINUX_VER) $(LINUX_DIR)