]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto.bbclass: Adds oe-local-files path (devtool) to include directives
authorJaewon Lee <jaewon.lee@xilinx.com>
Mon, 30 Jul 2018 21:21:53 +0000 (14:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Aug 2018 10:36:22 +0000 (11:36 +0100)
The devtool-source class moves all local files specified in SRC_URI to
an oe-local-files directory. When using devtool and a recipe space kernel-meta,
devtool modify throws an error because the paths the kernel-yocto class
is looking for feature directories in, don't include the oe-local-files
directory which devtool is using.

This patch checks for feature directories in oe-local-files,
and if present, adds that path to include directives.

[YOCTO #12855]

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/kernel-yocto.bbclass

index 82d80741a951f1e4c94a815d3ffde09fa8600ea8..077a1ab8ef71055ff1a8cf7b674d24775a05005c 100644 (file)
@@ -140,6 +140,8 @@ do_kernel_metadata() {
                        includes="$includes -I${WORKDIR}/$f/kernel-meta"
                elif [ -d "${WORKDIR}/$f" ]; then
                        includes="$includes -I${WORKDIR}/$f"
+               elif [ -d "${WORKDIR}/../oe-local-files/$f" ]; then
+                       includes="$includes -I${WORKDIR}/../oe-local-files/$f"
                fi
        done
        for s in ${sccs} ${patches}; do