|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Force build failure if modules build fails
# HG changeset patch
# User Mark McLoughlin <markmc@xxxxxxxxxx>
# Date 1198143499 0
# Node ID 77d3a8ef20ffbd8275c4c7341b255e3049122ce4
# Parent f12da56acc577ac48a997c10480b220ec2a3d44d
Force build failure if modules build fails
When building a linux kernel, if the modules build fails, then
the build carries on regardless.
The problem is simple - the "make modules" failure is not seen
by the calling make since its return value is not what is
returned.
Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>
diff -r f12da56acc57 -r 77d3a8ef20ff buildconfigs/mk.linux-2.6-common
--- a/buildconfigs/mk.linux-2.6-common Wed Dec 19 15:56:10 2007 +0000
+++ b/buildconfigs/mk.linux-2.6-common Thu Dec 20 09:38:19 2007 +0000
@@ -59,7 +59,7 @@ ifneq ($(XEN_LINUX_ALLOW_INTERFACE_MISMA
fi
endif
if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
- $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules ; \
+ $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules || exit 1 ; \
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH)
INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
fi
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR)
$(IMAGE_TARGET)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] Force build failure if modules build fails,
Mark McLoughlin <=
|
|
|
|
|