]> code.ossystems Code Review - openembedded-core.git/commit
kernel: Use hardlinks for do_populate_sysroot for speed
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Nov 2013 15:18:00 +0000 (15:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 10:15:00 +0000 (10:15 +0000)
commit13259459e200a237ca486cbe1123a0b0a4d1eebf
treee6cb6f03f306ac9ce75e2163e4f1a576a886989b
parent55b950500fd9d944042e3c2b0872685f0a60e8eb
kernel: Use hardlinks for do_populate_sysroot for speed

The kernel tree is large and doesn't need to be copied. Override
the default sysroot handling function to use a hardlink copying
function in python.

This commit also drops the copying of the /lib directory which
just contains the kernel modules. We never use those in the sysroot
so there is little point in carrying those around.

For linux-yocto this takes the do_populate_sysroot time 24s -> 14s.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass