ia64/xen-unstable

changeset 18596:205b837b6138

Allow to specify Linux kernel config file

The env variable XEN_LINUX_CONFIG is used to specify this
file.

Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Oct 09 10:05:41 2008 +0100 (2008-10-09)
parents e66cecb66b1e
children 1e37779bf884
files buildconfigs/mk.linux-2.6-common
line diff
     1.1 --- a/buildconfigs/mk.linux-2.6-common	Wed Oct 08 14:00:58 2008 +0100
     1.2 +++ b/buildconfigs/mk.linux-2.6-common	Thu Oct 09 10:05:41 2008 +0100
     1.3 @@ -75,7 +75,9 @@ endif
     1.4  	# tree. Finally attempt to use make defconfig.
     1.5  	set -e ; \
     1.6  	CONFIG_VERSION=$$(sed -ne 's/$$(XENGUEST)//; s/^EXTRAVERSION = //p' $(LINUX_SRCDIR)/Makefile); \
     1.7 -	if [ -r $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) ] ; then \
     1.8 +	if [ ! -z "$(XEN_LINUX_CONFIG)" -a -r $(XEN_LINUX_CONFIG) ]; then \
     1.9 +	  cp $(XEN_LINUX_CONFIG) $(CONFIG_FILE); \
    1.10 +	elif [ -r $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) ] ; then \
    1.11  	  cp $(DESTDIR)/boot/config-$(LINUX_VER3)$$CONFIG_VERSION$(EXTRAVERSION) $(CONFIG_FILE) ; \
    1.12          elif [ -e $(LINUX_SRCDIR)/buildconfigs/create_config.sh ] ; then \
    1.13  	  cd $(LINUX_SRCDIR) && sh buildconfigs/create_config.sh \