|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] install adjustment for guest kernel
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.
Jan
--- 2.6.11-xen/arch/xen/Makefile 2005-07-01 09:13:31.785081928 -0700
+++ nxen-guest/arch/xen/Makefile 2005-07-01 09:14:46.103783768 -0700
@@ -63,8 +63,13 @@ all: vmlinuz
vmlinuz: vmlinux
$(Q)$(MAKE) $(build)=arch/xen/boot vmlinuz
+ifeq ($(INSTALL_PATH),)
+install.sh := $(shell find $(srctree)/arch/$(XENARCH) -name install.sh)
+endif
+
XINSTALL_NAME ?= $(KERNELRELEASE)
install: vmlinuz
+ifeq ($(install.sh),)
mkdir -p $(INSTALL_PATH)/boot
ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
$(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(XENGUEST)$(INSTALL_SUFFIX)
rm -f $(INSTALL_PATH)/boot/vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
@@ -75,6 +80,9 @@ install: vmlinuz
ln -f -s vmlinuz-$(XINSTALL_NAME)$(INSTALL_SUFFIX)
$(INSTALL_PATH)/boot/vmlinuz-$(VERSION).$(PATCHLEVEL)$(XENGUEST)$(INSTALL_SUFFIX)
mkdir -p $(INSTALL_PATH)/usr/include/xen/linux
install -m0644 $(srctree)/include/asm-xen/linux-public/*.h
$(INSTALL_PATH)/usr/include/xen/linux
+else
+ sh $(install.sh) $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
+endif
archclean:
@if [ -e arch/xen/arch ]; then $(MAKE) $(clean)=arch/xen/arch; fi;
xenlinux-install.patch
Description: Binary data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] install adjustment for guest kernel,
Jan Beulich <=
|
|
|
|
|