Re: [PATCH] make: add modules_update target
- From: Theodore Ts'o <tytso@xxxxxxx>
- Date: Fri, 14 Apr 2006 13:02:22 -0400
On Fri, Apr 14, 2006 at 10:06:56AM -0500, Kylene Jo Hall wrote:
Here is a a patch that adds a kernel build target called
"modules_update".
The existing "modules_install" target blows away the entire
/lib/modules/`uname -r`/kernel directory and copies out every single
module when called at the top level.
This new "modules_update" target only copies out modules that have
changed, using "cp -u". This less zealous method is a more efficient
approach to module installation for kernel developers working on single,
or small numbers of modules.
Hi Kylene,
This works as long as the .config hasn't been changed so that some
configuration options haven't been changed so that a driver which had
been previously built as a module is now built into the kernel. In
that case, you really want to make sure the no-longer applicable .ko
file has been removed from the system. If the developer knows that to
be true, they can use your proposed modules_update without any problems.
As a suggestion, something that might be worth trying would be to
change to modules_install so that it uses cp -u, but also so that it
tries to delete all files that could have previously installed as
modules (by using the obj-y list). This should hopefully speed up
modules_install, and make it do the right thing all the time.
Regards,
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] make: add modules_update target
- From: Dustin Kirkland
- Re: [PATCH] make: add modules_update target
- From: Avi Kivity
- Re: [PATCH] make: add modules_update target
- References:
- [PATCH] make: add modules_update target
- From: Kylene Jo Hall
- [PATCH] make: add modules_update target
- Prev by Date: Re: Where to call L2 cache enabling code from?
- Next by Date: Re: [PATCH rc1-mm 2/3] coredump: shutdown current process first
- Previous by thread: [PATCH] make: add modules_update target
- Next by thread: Re: [PATCH] make: add modules_update target
- Index(es):
Relevant Pages
|