[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] remus: Only build kernel module if parent kernel has IMQ configured.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1265618511 0
# Node ID 6be26c708bc9df83ff4c3739391605a78491e558
# Parent  b60379dad533b68fcd28d4c77fd3c40aec59a37c
remus: Only build kernel module if parent kernel has IMQ configured.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/remus/kmod/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r b60379dad533 -r 6be26c708bc9 tools/remus/kmod/Makefile
--- a/tools/remus/kmod/Makefile Fri Feb 05 13:57:20 2010 +0000
+++ b/tools/remus/kmod/Makefile Mon Feb 08 08:41:51 2010 +0000
@@ -14,11 +14,11 @@ KERNELDIR ?= $(XEN_ROOT)/build-linux-$(L
 
 .PHONY: all
 all:
-       if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` 
modules; fi
+       if test -d $(KERNELDIR) && grep -q ^CONFIG_IMQ= $(KERNELDIR)/.config 
2>/dev/null; then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` modules; fi
 
 .PHONY: install
 install: all
-       if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` 
INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi
+       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
 
 clean::
        -rm -rf *.o *.ko *.mod.c *.mod.o Module.symvers .*.cmd .tmp_versions

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.