Messages in this thread | | | Date | Thu, 27 Apr 2006 23:34:37 -0700 | From | Linda Walsh <> | Subject | make O="<dir>" install; output not relocated; 2.6.16.11(kbuild) |
| |
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'
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |