mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
b42a1fafc6
commit
02b3ea00b3
1 file changed
+8
@@ -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;
|
||||
|
||||