public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* make O="<dir>" install; output not relocated; 2.6.16.11(kbuild)
@ 2006-04-28  6:34 Linda Walsh
  2006-04-28  7:58 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 5+ messages in thread
From: Linda Walsh @ 2006-04-28  6:34 UTC (permalink / raw)
  To: Linux-Kernel

 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'




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-29 14:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-04-28 17:00   ` Linda Walsh
2006-04-29  7:08     ` Jan-Benedict Glaw
2006-04-29 14:30       ` Alistair John Strachan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox