Re: trying to clarify <module>-y versus <module>-objs

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

 



On Wed, 21 Nov 2007, Sam Ravnborg wrote:

> On Wed, Nov 21, 2007 at 03:22:51AM -0500, Robert P. J. Day wrote:
> >
> >   from "makefiles.txt":
> >
> > "Kbuild recognises objects used for composite objects by the suffix
> > -objs, and the suffix -y."
> >
> > does that mean that those two suffixes are equivalent and functionally
> > interchangeable in a kbuild makefile?
>
> yes - but the -y variant is preferred.
> Which should be documented.

ah, good.  so when i'm explaining how to build out-of-tree, composite
modules, historically, i've always used:

  obj-m = mymod.o

  mymod-objs := ....o files

now, instead, i'll say:

  obj-m = mymod.o

  mymod-y := ....o files

obviously, not a big deal.

rday
-
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux