I don't even pretend to understand this, but think it probably needs
to be seen by someone who does. The aim is to suppress some error
messages that are produced when compiling with "comp"


---------- Forwarded message ----------
From: EMC Support Forum Forum <alex_j...@users.sourceforge.net>

URL: 
http://www.linuxcnc.org/component/option,com_kunena/Itemid,20/func,view/catid,10/id,3603/limit,6/limitstart,72/lang,english/#4438

Message:
-----
Hi there,

after heavy googleing and testing.

My proposal for getting out of this sandpit ist following:

1.) the emc2 modules do not have a Modules.symvers file. This file
holds the dependencies of extern defined functions.
2.) the rtai modules do have this file.

So to get it work to check dependencies to avoid the above mentioned
warnings, we must have a Modules.symvers file too for emc modules.

This is a little more work to do. And when we want to do it, then we
should correct the whole things for modules, like not living in
standard kernel trees.

Advice from kernel.org is to use

/lib/modules/kernel-vers/extra/rtai and ../emc

My proposal is to use

/lib/modules/kernel-vers/extra/emc
/lib/modules/kernel-vers/extra/rtai

The next point is, if we do so:

The kernel Makefile syntax for external modules was changed, this is
not dramatically but we can write it shorter in our template.

New line for rtai modules would be:

$(MAKE) -C $(KERNELDIR) M=$(RTAIMOD)  O=$(RTAIMOD)

with

RTAIMOD := /lib/modules/linux-2.6.32-122-rtai/modules/extra/rtai
KERNELDIR := /usr/src/linux-headers-2-6-32-rtai

and for emc modules:

$(MAKE) -C $(KERNELDIR) M=$(EMCMOD)  O=$(EMCMOD)

with

EMCMOD := /lib/modules/linux-2.6.32-122-rtai/modules/extra/emc
KERNELDIR := /usr/src/linux-headers-2-6-32-rtai

If we do it in this way, the O=.... can be omitted.

In former times you have to use KERNEL_EXTMOD Variable for something like that.

Or, if do NOT want this, we should generate at least the
Modules.symvers file for emc modules.

Kind Regards

Wolfgang
-----


-- 
atp

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to