Re: [PATCH] make: add modules_update target



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/



Relevant Pages

  • Re: Wartime role for overseas USAF Aggressor squadrons?
    ... If a Nuclear War were ... Several years ago, they built a new law enforcement center in Jamestown, ... as Jamestown was not considered a likely target; ... Wrong, the refinery could have been put back into operation, ...
    (rec.aviation.military)
  • process1_initialization_failure BSOD
    ... I get a process1_initialization_failure blue on first boot after a image is ... I've got embedded installed on my target pc, so the *,pmg is built ... the XP embedded tools installed on, I end up formatting a second HD ...
    (microsoft.public.windowsxp.embedded)
  • Re: VSTO2005 - Does it support Office 2007?
    ... But I believe, a VSTO project ... must either target Office2003 or Office2007, ... VSTO 2003 Built ... Takes down Excel hard. ...
    (microsoft.public.vsnet.vstools.office)
  • Re: SetWindowsHooksEx
    ... win32k has some security checks built in; ... sufficient rights granted on the target desktop to perform the operation, ... session id as the target application (unless the target application threads ...
    (microsoft.public.win32.programmer.kernel)
  • problem cross compiling glibc-2.3.3 for target board
    ... I am trying to build glibc-2.3.3 for our target boardfrom my ... Can anyone tell me the different configuration options to set for ... successful compilation. ... Do i have to apply any patches for it, if yes where can i find those ...
    (comp.os.linux.misc)