ia64/xen-unstable
changeset 5641:374ff557a88f
Other than the native kernels, the xen guests install without attempting
to use distribution provided mechanisms, thus e.g. preventing the
auto-generation of an initrd. Below/attached a suggestion to adjust that.
Signed-off-by: Jan Beulich <JBeulich@novell.com>
to use distribution provided mechanisms, thus e.g. preventing the
auto-generation of an initrd. Below/attached a suggestion to adjust that.
Signed-off-by: Jan Beulich <JBeulich@novell.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Fri Jul 01 15:48:47 2005 +0000 (2005-07-01) |
parents | 4b06e1c365fc |
children | e041c8e75863 |
files | linux-2.6.11-xen-sparse/arch/xen/Makefile |
line diff
1.1 --- a/linux-2.6.11-xen-sparse/arch/xen/Makefile Fri Jul 01 15:47:46 2005 +0000 1.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/Makefile Fri Jul 01 15:48:47 2005 +0000 1.3 @@ -63,8 +63,13 @@ all: vmlinuz 1.4 vmlinuz: vmlinux 1.5 $(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz 1.6 1.7 +ifeq ($(INSTALL_PATH),) 1.8 +install.sh := $(shell find $(srctree)/arch/$(XENARCH) -name install.sh) 1.9 +endif 1.10 + 1.11 XINSTALL_NAME ?= $(KERNELRELEASE) 1.12 install: vmlinuz 1.13 +ifeq ($(install.sh),) 1.14 mkdir -p $(INSTALL_PATH)/boot 1.15 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(XENGUEST)$(INSTALL_SUFFIX) 1.16 rm -f $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) 1.17 @@ -75,6 +80,9 @@ install: vmlinuz 1.18 ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX) $(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)$(XENGUEST)$(INSTALL_SUFFIX) 1.19 mkdir -p $(INSTALL_PATH)/usr/include/xen/linux 1.20 install -m0644 $(srctree)/include/asm-xen/linux-public/*.h $(INSTALL_PATH)/usr/include/xen/linux 1.21 +else 1.22 + sh $(install.sh) $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)" 1.23 +endif 1.24 1.25 archclean: 1.26 @if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;