From: "dvomlehn@gmail.com" <dvomlehn@gmail.com>
To: Tino Mettler <tino.mettler@alcnetworx.de>, linux-kbuild@vger.kernel.org
Subject: Re: out-of-tree build with external module
Date: Wed, 18 Nov 2015 12:22:51 -0800 [thread overview]
Message-ID: <564CDE1B.3020806@gmail.com> (raw)
In-Reply-To: <1447858006.4104.38.camel@alcnetworx.de>
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
next prev parent reply other threads:[~2015-11-18 20:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-18 14:46 out-of-tree build with external module Tino Mettler
2015-11-18 20:22 ` dvomlehn [this message]
2015-11-19 10:29 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564CDE1B.3020806@gmail.com \
--to=dvomlehn@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=tino.mettler@alcnetworx.de \
--cc=vomlehn@texas.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).