Re: Out-of-tree module build in a dedicated build directory.

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

 



> If for some reason make modules did not create module.symvers then try:
>
>         cd /home/lexa/linux
>         make
>         [wait a few minutes as it builds some scripts and starts building kernel code...]
>         hit <Ctrl-C>
>
> then go back and try building your module.

But i have my kernel completely build, including kernel modules.

I get the error about ./Module.symvers only if I specify
O=module_build_directory. When I build the module without O= there is
not such error, but the object files are created in the same directory
as module source, which I want to avoid.


On 3/15/18, Greg KH <greg@xxxxxxxxx> wrote:
> On Thu, Mar 15, 2018 at 11:27:05AM -0400, Aruna Hewapathirane wrote:
>> On Thu, Mar 15, 2018 at 10:52 AM, Aruna Hewapathirane <
>> aruna.hewapathirane@xxxxxxxxx> wrote:
>>
>> > <snip>
>> >
>> >>
>> >> But the issue remain the same:
>> >> $ make
>> >> make -C /home/lexa/linux M=/home/lexa/module
>> >> O=/home/lexa/module/build_x86 modules
>> >> make[1]: Entering directory '/home/lexa/linux'
>> >> make[2]: Entering directory '/home/lexa/module/build_x86'
>> >>
>> >>   WARNING: Symbol version dump ./Module.symvers
>> >>            is missing; modules will have no dependencies and
>> >> modversions.
>> >>
>> > <snip>
>> >
>> > Please run make modules from the top level directory of your source
>> > tree
>> > and and then module.symvers will be generated.
>> >
>> >
>> If for some reason make modules did not create module.symvers then try:
>>
>>         cd /home/lexa/linux
>>         make
>>         [wait a few minutes as it builds some scripts and starts building
>> kernel code...]
>>         hit <Ctrl-C>
>>
>> then go back and try building your module.
>
> 'make modules_prepare' should do the same thing.
>
> 'make help' shows all of this, but who ever reads documentation :)
>


-- 
Kind Regards,
Aleksei

_______________________________________________
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