* out-of-tree build with external module
@ 2015-11-18 14:46 Tino Mettler
2015-11-18 20:22 ` dvomlehn
2015-11-19 10:29 ` Michal Marek
0 siblings, 2 replies; 3+ messages in thread
From: Tino Mettler @ 2015-11-18 14:46 UTC (permalink / raw)
To: linux-kbuild
Hi,
I want to build an external module out-of-tree. I tried this:
make -C <kernel-source> KBUILD_OUTPUT=<out-of-tree-path> M=<external-module> modules
However, the result is put to the source path specified by M=, whereas a
normal kernel build (without M=) but otherwise same parameters puts the
result to <out-of-tree-path>.
Any hints what I'm doing wrong?
Regards,
Tino
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: out-of-tree build with external module
2015-11-18 14:46 out-of-tree build with external module Tino Mettler
@ 2015-11-18 20:22 ` dvomlehn
2015-11-19 10:29 ` Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: dvomlehn @ 2015-11-18 20:22 UTC (permalink / raw)
To: Tino Mettler, linux-kbuild
On 11/18/2015 06:46 AM, Tino Mettler wrote:
> Hi,
>
> I want to build an external module out-of-tree. I tried this:
>
> make -C <kernel-source> KBUILD_OUTPUT=<out-of-tree-path> M=<external-module> modules
>
> However, the result is put to the source path specified by M=, whereas a
> normal kernel build (without M=) but otherwise same parameters puts the
> result to <out-of-tree-path>.
>
> Any hints what I'm doing wrong?
>
> Regards,
> Tino
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
When building a module out of tree, I set up a directory in which the
source and Make file reside. I don't use KBUILD_OUTPUT and set M to
$$PWD. I do the build in the directory specified by M and the result is
put in that directory. This is pretty much exactly what is defined in
the Kbuild documentation in kbuild/modules.txt (see the examples in
sections 3.1-3.3). Are you looking for something else?
--
David VL
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: out-of-tree build with external module
2015-11-18 14:46 out-of-tree build with external module Tino Mettler
2015-11-18 20:22 ` dvomlehn
@ 2015-11-19 10:29 ` Michal Marek
1 sibling, 0 replies; 3+ messages in thread
From: Michal Marek @ 2015-11-19 10:29 UTC (permalink / raw)
To: Tino Mettler; +Cc: linux-kbuild
On 2015-11-18 15:46, Tino Mettler wrote:
> Hi,
>
> I want to build an external module out-of-tree. I tried this:
>
> make -C <kernel-source> KBUILD_OUTPUT=<out-of-tree-path> M=<external-module> modules
>
> However, the result is put to the source path specified by M=, whereas a
> normal kernel build (without M=) but otherwise same parameters puts the
> result to <out-of-tree-path>.
The combination of M= and O= is not supported by kbuild.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-19 10:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18 14:46 out-of-tree build with external module Tino Mettler
2015-11-18 20:22 ` dvomlehn
2015-11-19 10:29 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).