aboutsummaryrefslogtreecommitdiffstats
path: root/tools/remus/kmod/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/remus/kmod/Makefile')
-rw-r--r--tools/remus/kmod/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/remus/kmod/Makefile b/tools/remus/kmod/Makefile
index bc4eaf4d6a..46f474aa3a 100644
--- a/tools/remus/kmod/Makefile
+++ b/tools/remus/kmod/Makefile
@@ -14,11 +14,11 @@ KERNELDIR ?= $(XEN_ROOT)/build-linux-$(LINUX_VER)_$(XEN_TARGET_ARCH)
.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