aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-07-15 09:28:40 +0000
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-07-15 09:28:40 +0000
commit4da6fa7ac1551d08a98d592d928b0ffca4f17be7 (patch)
tree9f4e948e4afbdc3be14c5176e0dd54295d4b18c5 /Makefile
parent4e4436e107165c3092f704791e7e69cf0e4a7830 (diff)
downloadxen-4da6fa7ac1551d08a98d592d928b0ffca4f17be7.tar.gz
xen-4da6fa7ac1551d08a98d592d928b0ffca4f17be7.tar.bz2
xen-4da6fa7ac1551d08a98d592d928b0ffca4f17be7.zip
bitkeeper revision 1.1094 (40f64e48IpUzrEwjDEyKFZ9I2_7t6A)
prefer config file from previous install over defconfig file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 389ca8234c..dca9f39f54 100644
--- a/Makefile
+++ b/Makefile
@@ -83,6 +83,9 @@ config-xen%:
else
config-xen%:
$(MAKE) -C $(CDIR) ARCH=xen mrproper
+ @[ -e $(LINUX_CONFIG_DIR)/config-$(LINUX_VER)-$(subst config-,,$@) ] \
+ && cp $(LINUX_CONFIG_DIR)/config-$(LINUX_VER)-$(subst config-,,$@) \
+ $(CDIR)/.config || \
$(MAKE) -C $(CDIR) ARCH=xen $(subst config-,,$@)_defconfig
endif