ia64/xen-unstable

changeset 16649:e2fa79c659e2

linux: 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@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Dec 20 10:44:06 2007 +0000 (2007-12-20)
parents 6730dfe7ec69
children 923b8dbb0fed
files buildconfigs/mk.linux-2.6-common
line diff
     1.1 --- a/buildconfigs/mk.linux-2.6-common	Thu Dec 20 10:43:06 2007 +0000
     1.2 +++ b/buildconfigs/mk.linux-2.6-common	Thu Dec 20 10:44:06 2007 +0000
     1.3 @@ -59,7 +59,7 @@ ifneq ($(XEN_LINUX_ALLOW_INTERFACE_MISMA
     1.4  	fi
     1.5  endif
     1.6  	if grep "^CONFIG_MODULES=" $(LINUX_DIR)/.config ; then \
     1.7 -	    $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules ; \
     1.8 +	    $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) modules || exit 1 ; \
     1.9  	    $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_MOD_PATH=$(DESTDIR) modules_install ; \
    1.10  	fi
    1.11  	$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_ARCH) INSTALL_PATH=$(DESTDIR) $(IMAGE_TARGET)