Re: How to compile on one machine and install on another?

Keith Owens
2001-06-21T02:42:55Z

On Wed, 20 Jun 2001 09:58:54 +0200,
Helge Hafting <helgehaf@idb.hist.no> wrote:
>This is enough if you don't use modules. If you use modules you
>need to copy them too, which is trickier. Several good methods
>have been demonstrated, here is another if you can't use the nfs
>approach:
>
>1. If you are running the same kernel revision on the compile machine,
> temporarily rename /lib/modules/<version> to something else.
> Yes - this could be dangerous but tend to work well on a "home
>machine"
>2. Do the "make modules_install" on the compile machine.

The correct way of installing for a target machine is to use
make INSTALL_MOD_PATH=foo modules_install
You need to mkdir -p foo/lib/modules first. Everything is installed in
foo/lib/modules/`uname -r` instead of /lib/modules so you do not
disturb your compile system.

There is also make INSTALL_PATH to specify where vmlinuz and System.map
are stored for make zlilo and make install.