[kbuild-devel] Dynamically add objects to be built

2010-04-29 Thread Chris Horlick
Im having an issue getting my build system set up the way id like and im hoping someone here can point me in a new direction or perhaps offer some advice. If i manually add each .o file i want built to the makefile the lkm will build with no issues, essentially this works: OBJS = main.o #OBJS +=

Re: [kbuild-devel] Dynamically add objects to be built

2010-04-29 Thread Sam Ravnborg
First - posting to linux-kbuild will liekly get you more attention. The old list at sourceforge is no longer active. [From the bottom of your mail] If anyone can point me to the kbuild way of doing things, it would be greatly appreciated. Thanks! The kbuild philosofy is that you specify all .o

Re: [kbuild-devel] Dynamically add objects to be built

2010-04-29 Thread Chris Horlick
Its a weird build system. The whole idea here is that .c files can be simply dropped into the build directory and be auto built. I think your notdir thing worked. I tried something similar with pattern substitution using the PWD dir but of course the context switching thing killed me. Ill ping