From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Linda Walsh <lkml@tlinx.org>
Cc: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: make O="<dir>" install; output not relocated; 2.6.16.11(kbuild)
Date: Fri, 28 Apr 2006 09:58:32 +0200 [thread overview]
Message-ID: <20060428075832.GD25520@lug-owl.de> (raw)
In-Reply-To: <4451B77D.7070000@tlinx.org>
[-- Attachment #1: Type: text/plain, Size: 1769 bytes --]
On Thu, 2006-04-27 23:34:37 -0700, Linda Walsh <lkml@tlinx.org> wrote:
> From "make help", the "O=" param to make is said to
> 'Locate all output files in "dir", including .config'
>
> I first did:
> "make O=$PWD/root bzImage modules" # (Note: PWD=/usr/src/ast-261611)
[...]
> Instead, it appears the "O=" parameter is _partially_ ignored.
> ishtar:/usr/src/ast-261611> make V=1 O=$PWD/root modules_install
The modules_install target uses O= for its _input_ files (that is,
for the readily compiled modules) and outputs to
$(INSTALL_MOD_PATH)/lib/modules/$VERSION/ . So you may want to set
$(INSTALL_MOD_PATH) in the same way as you've set V= or O= before.
If you're trying to prepare something to be copied over to a target
system, the tar-pkg, targz-pkg and tarbz2-pkg targets may be exactly
what you're searching for.
> Is this a bug or a feature? I.e. is the "make help" misleading in
Feature. Modules won't ever be searched inside some kernel source
directory, modprobe expects them to be in /lib/modules/.
> saying "O=<dir>" can be used to specify the output directory of a
> make run? Or should this be working?
It's maybe a bit misleading, but `modules_install' isn't a compilation
run, it's an installation run. O= was ment to hold all
compiled/generated objects, but to have a working installation, you
need to break out of that (or have INSTALL_MOD_PATH set.)
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O
für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-04-28 7:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-28 6:34 make O="<dir>" install; output not relocated; 2.6.16.11(kbuild) Linda Walsh
2006-04-28 7:58 ` Jan-Benedict Glaw [this message]
2006-04-28 17:00 ` Linda Walsh
2006-04-29 7:08 ` Jan-Benedict Glaw
2006-04-29 14:30 ` Alistair John Strachan
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=20060428075832.GD25520@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@tlinx.org \
/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