[ewg] OFED 1.4's autoconf.h conflicting with kernel
Poornima Kamath (Contractor)
poornima.kamath at qlogic.com
Thu Jan 29 04:59:44 PST 2009
Hi Brian,
You can create another autoconf.h file and define all the variables that are being overridden by OFED and which you want defined in that file.
Consider you keep this autoconf.h in /usr/src/test/linux directory.
So then you can specifically include it in the following way.
-include include/linux/autoconf.h -include /usr/src/ofa_kernel/include/linux/autoconf.h -include /usr/src/test/linux/autoconf.h
This will take care of the variables being defined correctly.
Now you also will have to include the following
-I /usr/src/test -I/usr/src/ofa_kernel/include/
This is so that if you have any files with <linux/autoconf.h>, then autoconf.h will be taken from /usr/src/test/
Thus variables in OFED autoconf.h will be overridden by the ones in your autoconf.h
Hope this helps.
Regards,
Poornima
________________________________________
From: ewg-bounces at lists.openfabrics.org [ewg-bounces at lists.openfabrics.org] On Behalf Of Brian J. Murrell [brian at sun.com]
Sent: Monday, January 26, 2009 7:05 PM
To: ewg at lists.openfabrics.org
Subject: [ewg] OFED 1.4's autoconf.h conflicting with kernel
I was asked to bring this discussion over here... and there has been
some initial response from Jeff Becker about it. You can catch up on
the thread here:
http://lists.openfabrics.org/pipermail/general/2009-January/056633.html
Anyway... On to the posting...
So, I noticed that OFED 1.4 is bringing a whole lot more into
it's /usr/src/ofa_kernel/include/linux/autoconf.h than 1.3.1 did. I
find these additional defines with 1.4:
#undef CONFIG_SUNRPC_XPRT_RDMA
#undef CONFIG_SUNRPC
#undef CONFIG_SUNRPC_GSS
#undef CONFIG_RPCSEC_GSS_KRB5
#undef CONFIG_RPCSEC_GSS_SPKM3
#undef CONFIG_NFS_FS
#undef CONFIG_NFS_V3
#undef CONFIG_NFS_V3_ACL
#undef CONFIG_NFS_V4
#undef CONFIG_NFS_ACL_SUPPORT
#undef CONFIG_NFS_DIRECTIO
#undef CONFIG_SYSCTL
#undef CONFIG_EXPORTFS
#undef CONFIG_LOCKD
#undef CONFIG_LOCKD_V4
#undef CONFIG_NFSD
#undef CONFIG_NFSD_V2_ACL
#undef CONFIG_NFSD_V3
#undef CONFIG_NFSD_V3_ACL
#undef CONFIG_NFSD_V4
#undef CONFIG_NFSD_RDMA
amongst a few others that I am far less concerned with.
The problem is, that these are in direct conflict with what I have
chosen for my kernel build.
Some research has led me to a message
(http://www.mail-archive.com/general@lists.openfabrics.org/msg18161.html)
from Jeff Becker back on Thu, 10 Jul 2008 15:58:53 -0700 in which he
submitted a patch to integrate NFSRDMA into OFED 1.4 which is what appears
to have brought these changes into OFED 1.4.
So, I guess I am wondering how can I build OFED 1.4, leaving out the
NFSRDMA stuff and yet not override my kernel's config settings for all
of the above variables? IOW, I don't want any of those #undefs in the
OFED autoconf.h overriding the ones in my kernel's autoconf.h
It seems with OFED the only two options for NFS are NFSRDMA or no NFS at
all. There is no "use the kernel's NFS, unmodified" option.
Beyond all of the NFSRDMA stuff, why is CONFIG_SYSCTL being drawn into
all of this?
Any insights would be appreciated.
b.
_______________________________________________
ewg mailing list
ewg at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
More information about the ewg
mailing list