ia64/xen-unstable

changeset 15933:202153d094d8

Using "make install" causes a distro specific script
(/sbin/installkernel) to be called since linux-2.6.18-xen.hg
211:c1f5d027adf7.

Unfortunately on some distros this script is broken for non-root
use. Our needs are pretty simple anyway so just open code the
installation of the kernel.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Wed Sep 19 12:12:49 2007 +0100 (2007-09-19)
parents 91a5b7eaede3
children ec3b23d8d544
files buildconfigs/mk.linux-2.6-xen
line diff
     1.1 --- a/buildconfigs/mk.linux-2.6-xen	Wed Sep 19 11:58:04 2007 +0100
     1.2 +++ b/buildconfigs/mk.linux-2.6-xen	Wed Sep 19 12:12:49 2007 +0100
     1.3 @@ -29,6 +29,7 @@ endif
     1.4  LINUX_DIR     = build-linux-$(LINUX_VER)$(EXTRAVERSION)_$(XEN_TARGET_ARCH)
     1.5  
     1.6  IMAGE_TARGET ?= vmlinuz
     1.7 +IMAGE_PATH ?= arch/$(LINUX_ARCH)/boot/$(firstword $(IMAGE_TARGET))
     1.8  INSTALL_BOOT_PATH := $(DESTDIR)/boot
     1.9  
    1.10  LINUX_VER3  := $(LINUX_SERIES).$(word 3, $(subst ., ,$(LINUX_VER)))
    1.11 @@ -62,7 +63,9 @@ endif
    1.12  	fi
    1.13  	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) $(IMAGE_TARGET)
    1.14  	mkdir -p $(INSTALL_BOOT_PATH)
    1.15 -	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(INSTALL_BOOT_PATH) install
    1.16 +	cp $(LINUX_DIR)/$(IMAGE_PATH) $(INSTALL_BOOT_PATH)/vmlinuz-$(LINUX_VER)$(EXTRAVERSION)
    1.17 +	cp $(LINUX_DIR)/.config $(INSTALL_BOOT_PATH)/config-$(LINUX_VER)$(EXTRAVERSION)
    1.18 +	cp $(LINUX_DIR)/System.map $(INSTALL_BOOT_PATH)/System.map-$(LINUX_VER)$(EXTRAVERSION)
    1.19  
    1.20  $(LINUX_DIR)/include/linux/autoconf.h: CONFIG_FILE=$(CURDIR)/$(LINUX_DIR)/.config
    1.21  $(LINUX_DIR)/include/linux/autoconf.h: $(LINUX_SRCDIR)/.valid-src