* 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
* Re: How to separate obj and src for external module build?
2008-08-05 8:47 How to separate obj and src for external module build? Qian_Riny
@ 2008-08-05 20:44 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2008-08-05 20:44 UTC (permalink / raw)
To: Qian_Riny; +Cc: linux-kbuild
On Tue, Aug 05, 2008 at 04:47:44AM -0400, Qian_Riny@emc.com wrote:
> 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.
This is not yet supported by kbuild and I have no plans to look
into it at the moment.
Sam
^ 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