diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-08 15:18:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-12 10:34:09 +0000 |
commit | df564c4ea851d95833745f5766f51259a600defe (patch) | |
tree | 3f670d59ff133814030bbc5b4e61506e7cf41d14 /meta/classes/kernel.bbclass | |
parent | db5d1274c5f9c00dafc36bfef775a1f4c449b005 (diff) | |
download | poky-df564c4ea851d95833745f5766f51259a600defe.tar.gz |
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.
(From OE-Core rev: 13259459e200a237ca486cbe1123a0b0a4d1eebf)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 8d4a733f54..383043ed9c 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -308,8 +308,8 @@ kernelscripts_sstate_postinst () { | |||
308 | fi | 308 | fi |
309 | } | 309 | } |
310 | 310 | ||
311 | sysroot_stage_all_append() { | 311 | python sysroot_stage_all () { |
312 | sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH} | 312 | oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}")) |
313 | } | 313 | } |
314 | 314 | ||
315 | kernel_do_configure() { | 315 | kernel_do_configure() { |