debuggers.hg

changeset 20952:6be26c708bc9

remus: Only build kernel module if parent kernel has IMQ configured.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Feb 08 08:41:51 2010 +0000 (2010-02-08)
parents b60379dad533
children 4f2d9156424d
files tools/remus/kmod/Makefile
line diff
     1.1 --- a/tools/remus/kmod/Makefile	Fri Feb 05 13:57:20 2010 +0000
     1.2 +++ b/tools/remus/kmod/Makefile	Mon Feb 08 08:41:51 2010 +0000
     1.3 @@ -14,11 +14,11 @@ KERNELDIR ?= $(XEN_ROOT)/build-linux-$(L
     1.4  
     1.5  .PHONY: all
     1.6  all:
     1.7 -	if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` modules; fi
     1.8 +	if test -d $(KERNELDIR) && grep -q ^CONFIG_IMQ= $(KERNELDIR)/.config 2>/dev/null; then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` modules; fi
     1.9  
    1.10  .PHONY: install
    1.11  install: all
    1.12 -	if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi
    1.13 +	if test -d $(KERNELDIR) && grep -q ^CONFIG_IMQ= $(KERNELDIR)/.config 2>/dev/null; then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi
    1.14  
    1.15  clean::
    1.16  	-rm -rf *.o *.ko *.mod.c *.mod.o Module.symvers .*.cmd .tmp_versions