diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2013-01-31 13:31:03 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-01 15:39:28 +0000 |
commit | c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2 (patch) | |
tree | d75649c89d7621b204eea51f4e9573811cf65a09 /meta/lib | |
parent | 3efcfa7e75dc0fe98b75ae1b7be8db5549182ff9 (diff) | |
download | openembedded-core-c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2.tar.gz openembedded-core-c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2.tar.bz2 openembedded-core-c753f9d59f4d0a5af4ea5deb6e2b9609e05314e2.zip |
kernel: avoid copying unnecessary files during do_install
kernel_do_install() populates $kerneldir with files needed to build
external modules. To accomplish this there are several copy commands
to get source from the kernel source tree and build trees after which
a 'clean' is performed. Since we are copying from the build tree we
get about 1G of .o and .cmd files copied over only to have them
removed when we clean. This adds additional IO overhead as well as
overhead caused by pseudo. By avoiding copying these files in the
first place we get multiple gains:
* avoid initial copy
* avoid file deletes during clean
* reduce pseudo overhead
Additionally we are making use of cpio vs cp which tends to be
significantly faster at performing copies.
With these changes I observe a 15-30% decrease in the time to complete
the do_install() operation on the kernel.
[YOCTO #3517]
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
0 files changed, 0 insertions, 0 deletions