ia64/xen-unstable

changeset 4913:5a28c8cd39a3

bitkeeper revision 1.1159.258.123 (42852fd48Nr7wIoriw8GV3ZAjVOw8Q)

Many files:
Create vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST) and
vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST) symlinks in
dist/install/boot from kernel build target.
install.sh:
No need to create vmlinuz symlinks in dist/install/boot from install.sh
anymore.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri May 13 22:53:08 2005 +0000 (2005-05-13)
parents 82f072b9e1f1
children 45b70dc4ef41
files buildconfigs/mk.linux-2.4-xen0 buildconfigs/mk.linux-2.4-xenU buildconfigs/mk.linux-2.6-xen0 buildconfigs/mk.linux-2.6-xenU install.sh linux-2.4.29-xen-sparse/arch/xen/Makefile linux-2.6.11-xen-sparse/arch/xen/Makefile
line diff
     1.1 --- a/buildconfigs/mk.linux-2.4-xen0	Fri May 13 14:36:56 2005 +0000
     1.2 +++ b/buildconfigs/mk.linux-2.4-xen0	Fri May 13 22:53:08 2005 +0000
     1.3 @@ -32,7 +32,7 @@ patches/tmp/ebtables.diff:
     1.4            ./mkbuildtree ../$(LINUX_DIR) )
     1.5  	# Patch kernel Makefile to set EXTRAVERSION
     1.6  	( cd $(LINUX_DIR) ; \
     1.7 -	  sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     1.8 +	  sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     1.9  	  rm -f Makefile ; mv Mk.tmp Makefile )
    1.10  	# add ebtables patch
    1.11  	( cd $(LINUX_DIR) ; patch -p1 -F3 < ../patches/tmp/ebtables.diff )
     2.1 --- a/buildconfigs/mk.linux-2.4-xenU	Fri May 13 14:36:56 2005 +0000
     2.2 +++ b/buildconfigs/mk.linux-2.4-xenU	Fri May 13 22:53:08 2005 +0000
     2.3 @@ -27,7 +27,7 @@ build: $(LINUX_DIR)/include/linux/autoco
     2.4            ./mkbuildtree ../$(LINUX_DIR) )
     2.5  	# Patch kernel Makefile to set EXTRAVERSION
     2.6  	( cd $(LINUX_DIR) ; \
     2.7 -	  sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     2.8 +	  sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     2.9  	  rm -f Makefile ; mv Mk.tmp Makefile )
    2.10  	# Re-use config from install dir if one exits else use default config
    2.11  	CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
     3.1 --- a/buildconfigs/mk.linux-2.6-xen0	Fri May 13 14:36:56 2005 +0000
     3.2 +++ b/buildconfigs/mk.linux-2.6-xen0	Fri May 13 22:53:08 2005 +0000
     3.3 @@ -27,7 +27,7 @@ build: $(LINUX_DIR)/include/linux/autoco
     3.4            ./mkbuildtree ../$(LINUX_DIR) )
     3.5  	# Patch kernel Makefile to set EXTRAVERSION
     3.6  	( cd $(LINUX_DIR) ; \
     3.7 -	  sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     3.8 +	  sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     3.9  	  rm -f Makefile ; mv Mk.tmp Makefile )
    3.10  	# Re-use config from install dir if one exits else use default config
    3.11  	CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
     4.1 --- a/buildconfigs/mk.linux-2.6-xenU	Fri May 13 14:36:56 2005 +0000
     4.2 +++ b/buildconfigs/mk.linux-2.6-xenU	Fri May 13 22:53:08 2005 +0000
     4.3 @@ -27,7 +27,7 @@ build: $(LINUX_DIR)/include/linux/autoco
     4.4            ./mkbuildtree ../$(LINUX_DIR) )
     4.5  	# Patch kernel Makefile to set EXTRAVERSION
     4.6  	( cd $(LINUX_DIR) ; \
     4.7 -	  sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     4.8 +	  sed -e 's/^EXTRAVERSION.*/&-$$(XENGUEST)\nXENGUEST = $(EXTRAVERSION)/' Makefile >Mk.tmp ; \
     4.9  	  rm -f Makefile ; mv Mk.tmp Makefile )
    4.10  	# Re-use config from install dir if one exits else use default config
    4.11  	CONFIG_VERSION=$$(sed -ne 's/^EXTRAVERSION = //p' $(LINUX_DIR)/Makefile); \
     5.1 --- a/install.sh	Fri May 13 14:36:56 2005 +0000
     5.2 +++ b/install.sh	Fri May 13 22:53:08 2005 +0000
     5.3 @@ -23,15 +23,6 @@ if ! [ -d $dst ]; then
     5.4  fi
     5.5  
     5.6  echo "Installing Xen from '$src' to '$dst'..."
     5.7 -cd $src/boot
     5.8 -(echo '2.6.*' -2.6; echo '2.4.*' -2.4; echo '2.*.*' '') | while read m v
     5.9 -do
    5.10 -  l=$(eval ls -t vmlinuz-$m-xen0 2>/dev/null | head -n 1)
    5.11 -  [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xen0
    5.12 -  l=$(eval ls -t vmlinuz-$m-xenU 2>/dev/null | head -n 1)
    5.13 -  [ -e "$l" ] && ln -fs "$l" vmlinuz${v}-xenU
    5.14 -done
    5.15 -cd -
    5.16  cp -fdRL $src/* $dst
    5.17  echo "All done."
    5.18  
     6.1 --- a/linux-2.4.29-xen-sparse/arch/xen/Makefile	Fri May 13 14:36:56 2005 +0000
     6.2 +++ b/linux-2.4.29-xen-sparse/arch/xen/Makefile	Fri May 13 22:53:08 2005 +0000
     6.3 @@ -113,10 +113,13 @@ bzImage: vmlinux
     6.4  INSTALL_NAME ?= $(KERNELRELEASE)
     6.5  install: bzImage
     6.6  	mkdir -p $(INSTALL_PATH)/boot
     6.7 +	ln -f -s vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
     6.8 +	rm -f $(INSTALL_PATH)/boot/vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX)
     6.9  	install -m0644 arch/$(ARCH)/boot/bzImage $(INSTALL_PATH)/boot/vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX)
    6.10  	install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(INSTALL_NAME)$(INSTALL_SUFFIX)
    6.11  	install -m0664 .config $(INSTALL_PATH)/boot/config-$(INSTALL_NAME)$(INSTALL_SUFFIX)
    6.12  	install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(INSTALL_NAME)$(INSTALL_SUFFIX)
    6.13 +	ln -f -s vmlinuz-$(INSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
    6.14  
    6.15  %_config: arch/xen/defconfig-%
    6.16  	rm -f .config arch/xen/defconfig
     7.1 --- a/linux-2.6.11-xen-sparse/arch/xen/Makefile	Fri May 13 14:36:56 2005 +0000
     7.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/Makefile	Fri May 13 22:53:08 2005 +0000
     7.3 @@ -48,10 +48,13 @@ vmlinuz: vmlinux
     7.4  XINSTALL_NAME ?= $(KERNELRELEASE)
     7.5  install: vmlinuz
     7.6  	mkdir -p $(INSTALL_PATH)/boot
     7.7 +	ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
     7.8 +	rm -f $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
     7.9  	install -m0644 vmlinuz $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
    7.10  	install -m0644 vmlinux $(INSTALL_PATH)/boot/vmlinux-syms-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
    7.11  	install -m0664 .config $(INSTALL_PATH)/boot/config-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
    7.12  	install -m0664 System.map $(INSTALL_PATH)/boot/System.map-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
    7.13 +	ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)-$(XENGUEST)$(INSTALL_SUFFIX)
    7.14  	mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
    7.15  	install -m0644 include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux
    7.16