On 10/13/2010 12:20 PM, Robert P. J. Day wrote: > On Wed, 13 Oct 2010, Dave Hylands wrote: > >> That looks reasonable, although the normal way of specifying multiple >> files in an object is like: >> >> obj-m := composite_driver.o >> composite_driver-objs := file1.o file2.o >> >> which is what you mentioned with the excerpt from the kbuild documenation. >> >> ...snip... >> >>> (did I get it right the second time around? ;-) >> >> Mostly. You used composite_driver-y rather then composite_driver-objs > > from memory, there are two ways to do that, an old way and a new way > although the coffee hasn't kicked in sufficiently to allow me to > remember which one is which. help, anyone? > I believe composite_driver-y works for CONFIG_ based inclusion. Such as: obj-$(CONFIG_COMP_DRIVER) := comp_driver.o comp_driver-y := file1.o file2.o comp_driver-$(CONFIG_COMP_DRIVER_OPTIONAL) += optional.o Again, this is just what I learned form the kbuild documents and I am no expert. Wouter -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ