public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* How to separate obj and src for external module build?
@ 2008-08-05  8:47 Qian_Riny
  2008-08-05 20:44 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Qian_Riny @ 2008-08-05  8:47 UTC (permalink / raw)
  To: linux-kbuild

Hi,

I want to put all obj files (*.o, *.ko etc) into a different directory
(e.g. obj/) 
rather than the same src (*.c, Makefile) directory while building an
external module:
$(MAKE) -C $(KERNELDIR) M=$(SRC) modules
How to do it?

I tried to use O (KBUILD_OUTPUT), but still no luck. It seems that
O (KBUILD_OUTPUT) is just used for kernel build output.

$(MAKE) -C $(KERNELDIR) M=$(SRC) O=$(OBJ) modules
It doesn't work.

Thanks. 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-05 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05  8:47 How to separate obj and src for external module build? Qian_Riny
2008-08-05 20:44 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox