]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: ensure sccs variable is set when using KBUILD_DEFCONFIG
authorSaul Wold <sgw@linux.intel.com>
Mon, 4 Dec 2017 15:39:23 +0000 (10:39 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 6 Jan 2018 10:11:42 +0000 (10:11 +0000)
When using KBUILD_DEFCONFIG, $sccs should be set to the $WORKDIR/defconfig
regardless if it compares or is copied. Otherwise $sccs is not set and the
defconfig is not found correctly.

Part of
[YOCTO #12162]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b63cc051f1eb58c768f49db2c04843336e62d3df)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel-yocto.bbclass

index 1d447951c49a1885f220b0762337dec1d2862f64..98ec78fb7680bf8e5d3dbcb89d7d0279c6e3f3aa 100644 (file)
@@ -110,8 +110,8 @@ do_kernel_metadata() {
                                fi
                        else
                                cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig
-                               sccs="${WORKDIR}/defconfig"
                        fi
+                       sccs="${WORKDIR}/defconfig"
                else
                        bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree"
                fi