Re: cannot insmod sculld in ldd3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<snip>
>> Now I wonder what is the proper way to export "Module.symvers"
>> information to the outside so that modules that use it do not have to
>> copy that file into their directory.

If you use a top-level Makefile like the one below it will create the necessary Module.symvers file.
I am not sure if this is the correct or recommended way,  I had kernel modules in separate directories a long
while back when I was learning+testing and this worked for me.

obj-m := lddbus/ sculld/ 

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD       := $(shell pwd)

all:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:
    $(MAKE) -C $(KERNELDIR) M=$(PWD) clean

Hope this helps - Aruna
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux