Re: build external module splited into several files

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

 



On Mon, Apr 04, 2016 at 08:00:09PM +0200, Colin Vidal wrote:
> Hi all,
> 
> I'm currently reading LDD the 3rd edition. Chapter 2 says that if we
> need for example to build module "foo.c" which is split in two other
> files "sub1.c" and "sub2.c", we just have to define the following
> Kbuild variable in the makefile:
> 
> foo-objs := sub1.o sub2.o
> 
> I suppose that 
> 
> foo-y := sub1.o sub2.o
> 
> has the same semantic ? That's not very clear to me.

Nope, not at all, stick with the "foo-objs" string instead please.

That should resolve your other issues here.

hope this helps,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://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