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

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Jun 20 2001 - 21:42:17 EST


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/



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:30 EST