aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/mk.linux-2.6-xen0
diff options
context:
space:
mode:
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-04 20:36:22 +0000
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-04 20:36:22 +0000
commit6325df3f26a52eaf193982cd484559010b9d4670 (patch)
tree89f1db3fecc7e00c8f38b1811964d1cf6952451d /buildconfigs/mk.linux-2.6-xen0
parent218c046b48ac436d96adadd5a85a5a6bc782ea81 (diff)
downloadxen-6325df3f26a52eaf193982cd484559010b9d4670.tar.gz
xen-6325df3f26a52eaf193982cd484559010b9d4670.tar.bz2
xen-6325df3f26a52eaf193982cd484559010b9d4670.zip
bitkeeper revision 1.1159.1.375 (418a92c65GAOZnDDyo9gXyKiJkLKxQ)
Avoid error message when trying to copy config file from install dir.
Diffstat (limited to 'buildconfigs/mk.linux-2.6-xen0')
-rw-r--r--buildconfigs/mk.linux-2.6-xen07
1 files changed, 5 insertions, 2 deletions
diff --git a/buildconfigs/mk.linux-2.6-xen0 b/buildconfigs/mk.linux-2.6-xen0
index 67a5c7b3a8..a2a8551ad7 100644
--- a/buildconfigs/mk.linux-2.6-xen0
+++ b/buildconfigs/mk.linux-2.6-xen0
@@ -27,8 +27,11 @@ $(LINUX_DIR): pristine-linux-$(LINUX_VER)
( cd $(LINUX_DIR) ; \
sed -e 's/^EXTRAVERSION.*/&-$(EXTRAVERSION)/' Makefile >Mk.tmp ; \
rm -f Makefile ; mv Mk.tmp Makefile )
- # Re-use config from install dir if one exits else use make defconfig
- cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig $(LINUX_DIR)/.config
+ # Re-use config from install dir if one exits else use default config
+ [ -r $(INSTALL_DIR)/boot/config-$(FULLVERSION) ] && \
+ cp $(INSTALL_DIR)/boot/config-$(FULLVERSION) $(LINUX_DIR)/.config \
+ || cp $(LINUX_DIR)/arch/xen/configs/$(EXTRAVERSION)_defconfig \
+ $(LINUX_DIR)/.config
make -C $(LINUX_DIR) ARCH=xen oldconfig
clean: