From: Linda Walsh <lkml@tlinx.org>
To: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: make O="<dir>" install; output not relocated; 2.6.16.11(kbuild)
Date: Thu, 27 Apr 2006 23:34:37 -0700 [thread overview]
Message-ID: <4451B77D.7070000@tlinx.org> (raw)
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)
That worked w/no apparent problems.
I wanted the output of "make install modules_install" placed
in a working directory (for transfer to the target system).
Instead, it appears the "O=" parameter is _partially_ ignored.
It is used for the "input" to the "make install" and the
"make modules_install", but seems to be ignored for "output":
ishtar:/usr/src/ast-261611> make V=1 O=$PWD/root modules_install
make -C /usr/src/ast-261611/root \
KBUILD_SRC=/usr/src/ast-261611 \
KBUILD_EXTMOD="" -f /usr/src/ast-261611/Makefile modules_install
mkdir: cannot create directory `/lib/modules/2.6.16.11-astarte':
Permission denied
make[1]: *** [_modinst_] Error 1
make: *** [modules_install] Error 2
ishtar:/usr/src/ast-261611> make V=1 O=$PWD/root install
make -C /usr/src/ast-261611/root \
KBUILD_SRC=/usr/src/ast-261611 \
KBUILD_EXTMOD="" -f /usr/src/ast-261611/Makefile install
make -f /usr/src/ast-261611/scripts/Makefile.build
obj=arch/i386/boot BOOTIMAGE=arch/i386/boot/bzImage install
sh /usr/src/ast-261611/arch/i386/boot/install.sh 2.6.16.11-astarte
arch/i386/boot/bzImage System.map "/boot"
ln: cannot remove `/boot/vmlinuz': Permission denied
rm: cannot remove `/boot/System.map': Permission denied
cp: cannot create regular file `/boot/vmlinuz-2.6.16.11-astarte':
Permission denied
cp: cannot create regular file
`/boot/System.map-2.6.16.11-astarte': Permission denied
ln: cannot remove `/boot/vmlinuz': Permission denied
You may need to create an initial ramdisk now.
----
Is this a bug or a feature? I.e. is the "make help" misleading in
saying "O=<dir>" can be used to specify the output directory of a
make run? Or should this be working?
Thanks,
Linda'
next reply other threads:[~2006-04-28 6:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-28 6:34 Linda Walsh [this message]
2006-04-28 7:58 ` make O="<dir>" install; output not relocated; 2.6.16.11(kbuild) Jan-Benedict Glaw
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=4451B77D.7070000@tlinx.org \
--to=lkml@tlinx.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.