Dear all,

We are trying to have ofproto.c calling a function defined in another
kernel module. For that we do EXPORT_SYMBOL() in the other module, and
include the corresponding header file in ofproto.c.

The problem we have is that we get compilation errors in ofproto.c because
it can not locate the folder where the other module has its header files,
e.g the "linux/" folder in the second module.

Our assumption is that we have to declare the folder from the second module
in the Makefile in openvswitch, but we are struggling finding the right way
to do that. We have tried adding the folder to:

SPARSE_EXTRA_INCLUDES = -I /usr/local/include -I
/usr/include/i386-linux-gnu -I "path_to_module_2_headers"

However, when ofproto.c is compiled the previous paths are not loaded so it
crashes.

We would appreciate help in knowing how to include the folder of the second
module in the Makefile.

Best Regards

Daniel
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to