Re: [PATCH V1 0/3] kbuild: optimize modules_install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comments or acks, anyone? - Steve

On 4/11/2019 10:20 AM, Steve Sistare wrote:
> Perform module install actions only if the object area module is newer than
> install area module, and only announce the updated modules.  To do this, the
> <moddir>/kernel directory must be preserved across invocations of make, so
> it must be checked for stale modules, which can occur after changing config
> options.  Hence, remove modules from this directory that are not present
> in modules.order.
> 
> These changes save 10's of seconds for a single CPU build, save a few
> seconds for a parallel build, and reduce output clutter for an incremental
> build.  Example:
> 
>   % touch drivers/virtio/virtio_ring.c
>   % make modules modules_install
>   DESCEND  objtool
>   CALL    scripts/atomic/check-atomics.sh
>   CALL    scripts/checksyscalls.sh
>   CC [M]  drivers/virtio/virtio_ring.o
>   Building modules, stage 2.
>   MODPOST 2592 modules
>   LD [M]  drivers/virtio/virtio_ring.ko
>   INSTALL drivers/virtio/virtio_ring.ko
>   DEPMOD  5.1.0-rc3
> 
> Patch 1 fixes a legacy race bug in parallel make.
> Patch 2 installs only modified modules.
> Patch 3 removes stale modules.
> 
> Steve Sistare (3):
>   kbuild: serialize modules and modules_install
>   kbuild: optimize modules_install target
>   kbuild: remove stale modules from install area
> 
>  Makefile                 | 26 +++++++++++++++++++++-----
>  scripts/Makefile.modinst | 30 +++++++++++++++++++++++-------
>  2 files changed, 44 insertions(+), 12 deletions(-)
> 



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux