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

Keith Owens (kaos@ocs.com.au)
Thu, 21 Jun 2001 12:42:17 +1000


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.

-
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/