Dear OrangeFS developers

Hi. The current method of defining KERNEL_VERS is not correct at least on
Ubuntu and CentOS. As a result, it fails to locate the installation
directory of kernel module. Rather the old style like the following patch
works well.

--- ../orangefs-2.8.8/Makefile.in 2014-03-15 05:22:31.000000000 +0900
+++ Makefile.in 2014-10-08 17:41:06.027144217 +0900
@@ -1503,7 +1503,7 @@
     KERNEL_VERS := $(shell grep UTS_RELEASE $(VERSION_DOT_H) | cut -d\"
-f2)
 else
     # multiple locations of utsrelease.h, just find and grep so we don't
have to change again
-    KERNEL_VERS := $(shell find ${LINUX_KERNEL_SRC}/include -name
utsrelease.h -exec grep UTS_RELEASE '{}' \; | cut -d \" -f2 )
+    KERNEL_VERS := $(shell uname -r)
 endif

 KMOD_DIR ?=
$(DESTDIR)/${kmod_prefix}/lib/modules/$(KERNEL_VERS)/kernel/fs/pvfs2


Kyungwon Chun
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to