On Tue, Mar 22, 2011 at 10:26:41AM +0000, andy pugh wrote:
> I would appreciate a declaration of opinions about where a comp file
> which is a driver for specific Mesa hardware belongs in the source
> tree.

I think it should be src/hal/drivers/mesa-hostmot2.  Of course, this
means that the magic auto-compilation of all .comps won't work (that is
only applied in src/hal/components and src/hal/drivers), so for the
moment it's easier to put them directly in src/hal/drivers.

> I am rather puzzled about what determines which kernel module
> particular source files belong to.(your second statement) I had
> naively assumed that it was one source file per module. Is this
> controlled in the makefile?

In the case of a .comp file built with comp, it's one source file = one
kernel mdule.  In the case of other things it's specified in the
Makefile or something included from the Makefile.    For instance,
here's the list of files in hostmot2.ko, in src/Makefile:
    hostmot2-objs :=                          \
        hal/drivers/mesa-hostmot2/hostmot2.o  \
        hal/drivers/mesa-hostmot2/backported-strings.o  \
        hal/drivers/mesa-hostmot2/ioport.o    \
        hal/drivers/mesa-hostmot2/encoder.o   \
        hal/drivers/mesa-hostmot2/pwmgen.o    \
        hal/drivers/mesa-hostmot2/tp_pwmgen.o \
            hal/drivers/mesa-hostmot2/sserial.o   \
            hal/drivers/mesa-hostmot2/mesa_8i20.o \
            hal/drivers/mesa-hostmot2/mesa_7i64.o \
        hal/drivers/mesa-hostmot2/stepgen.o   \
        hal/drivers/mesa-hostmot2/watchdog.o  \
        hal/drivers/mesa-hostmot2/pins.o      \
        hal/drivers/mesa-hostmot2/led.o       \
        hal/drivers/mesa-hostmot2/tram.o      \
        hal/drivers/mesa-hostmot2/raw.o       \
        hal/drivers/mesa-hostmot2/bitfile.o   \
        $(MATHSTUB)

Jeff

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to