]> code.ossystems Code Review - openembedded-core.git/commit
devtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI
authorJaewon Lee <jaewon.lee@xilinx.com>
Thu, 9 Aug 2018 23:41:29 +0000 (16:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 10:36:22 +0000 (11:36 +0100)
commit5dffd5403664dfcc9e8e42fd3581d5cb70823d7e
tree586f1b5c17326ec0307ca1c4b9f30ad58f0f6e3d
parented550a49d2114c56e5bc033ecd0e83073d2d4067
devtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI

When using a recipe space kernel-meta, scc files are added through
SRC_URI, but they may include corresponding kernel fragments or patches
that are not necessarily in SRC_URI.

For bitbake, this is not a problem because the kernel-yocto class adds
the path where the .scc file was found to includes which consequentially
makes the .cfg, .patch file available to the kernel build.

However, when using devtool, only files specified in SRC_URI are copied
to oe-local-files in devtool's workspace. So if the cfg/patch file is not in
SRC_URI, it won't be copied, causing a kernel build failure when trying
to find it.

This fix parses local .scc files in SRC_URI, copies the corresponding
.cfg/.patch file to devtool's workdir, and also adds it to local_files
so it is available when doing a devtool build for the kernel.

[YOCTO #12858]

v2: also supporting patch not in SRC_URI
v3: fix spacing issues

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devtool-source.bbclass