Makefile for linux modules



Hi
I have a makefile to make several driver modules:
obj-$(CONFIG_FUSION_SPI) += mptbase.o mptscsih.o
mptspi.o
obj-$(CONFIG_FUSION_FC) += mptbase.o mptscsih.o
mptfc.o
obj-m += mptbase.o mptscsih.o mptsas.o
obj-$(CONFIG_FUSION_LAN) += mptlan.o
obj-m += mptctl.o
obj-m += mptcfg.o
obj-m +=mptstm.o


this will compile all modules and the modules can be
installed successfully.

I need to have a comfunc.c file, which contains all
common functions, which could be used by these module
files.
I added the line below to the content just below
mptstm.o (I tried adding just above mptlan).
mptbase-objs := comfunc.o

All modules are compiled successfully. I can install
mptbase.ko. However, when I try to install mptctl.ko
(or other modules), I got errors like mptctl: Unknown
symbol mpt_register; mpt_deregister. These functions
are implemented in mptbase.c.

How do I fix this problem?

thanks
Robert


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • RE: FreeBSD on Dell PE850
    ... When I install using the 6.1 disk one I get the error "Add of package ... Do You Yahoo!? ... Mail has the best spam protection around ... MailScanner thanks transtec Computers for their support. ...
    (freebsd-questions)
  • Moving to new PC
    ... Run portmanager to actually install the ports. ... I would have a lot of manual work involved to get it ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (freebsd-questions)
  • Re: FC 5 cd/dvd,floppy devices missing.
    ... How do install them, I guess a package didn't get installed ... No automatic fstab editing for removable media' 'in favor of ... Do You Yahoo!? ... Mail has the best spam protection around ...
    (Fedora)
  • Re: Linux vs FreeBSD vs SCO
    ... >> often you install an upgrade, and you find it needs something else, ... >> package, from packages otherwise it has to compile Ruby, and some ... in a Maynard Sandstar floppy controller and hung 8" DD floppies ... The official IBM DOS 2.0 manuals and disks are there too. ...
    (comp.unix.sco.misc)
  • Re: Suse 10.3 and DVD::RIP
    ... Gnome began to sort of fork off and became increasingly unfriendly to ... As we are a openSUSE group, that is what I am talking about. ... be problematic to compile is none of my business. ... I have to install 75 MB of stuff to run a 2 ...
    (alt.os.linux.suse)