From: Robert Yang <[email protected]> The do_shared_workdir populates build artifacts to work-shared/${MACHINE}/kernel-build-artifacts, which isn't useful for do_patch, make do_patch depend on it will make a lot of recipes compiling which makes world's do_patch very slow, e.g.:
Download sources locally: $ bitbake world --runall=fetch * Before the patch: $ rm -fr sstate-cache/ tmp/; time bitbake world --runall=patch real 23m31.739s user 0m25.086s sys 0m4.630s * Now $ rm -fr sstate-cache/ tmp/; time bitbake world --runall=patch real 12m25.650s user 0m35.641s sys 0m5.699s Signed-off-by: Robert Yang <[email protected]> --- meta/classes-recipe/kernelsrc.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/kernelsrc.bbclass b/meta/classes-recipe/kernelsrc.bbclass index ecb02dc9edc..f23a1e6bff2 100644 --- a/meta/classes-recipe/kernelsrc.bbclass +++ b/meta/classes-recipe/kernelsrc.bbclass @@ -7,8 +7,8 @@ S = "${STAGING_KERNEL_DIR}" deltask do_fetch deltask do_unpack -do_patch[depends] += "virtual/kernel:do_shared_workdir" do_patch[noexec] = "1" +do_configure[depends] += "virtual/kernel:do_shared_workdir" do_package[depends] += "virtual/kernel:do_populate_sysroot" KERNEL_VERSION = "${@get_kernelversion_file("${STAGING_KERNEL_BUILDDIR}")}" LOCAL_VERSION = "${@get_kernellocalversion_file("${STAGING_KERNEL_BUILDDIR}")}" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#204794): https://lists.openembedded.org/g/openembedded-core/message/204794 Mute This Topic: https://lists.openembedded.org/mt/108603063/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
