From: Bruce Ashfield Date: Wed, 12 Aug 2020 17:03:26 +0000 (-0400) Subject: kernel-yocto: set cwd before querying the meta data dir X-Git-Tag: uninative-2.9~59 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=36f95f5e22cb4858c927f2a5a3bfeae630a41f1d;p=openembedded-core.git kernel-yocto: set cwd before querying the meta data dir To aid classifying options and streamling reports, fragments and classification info are consolidated into a kernel meta directory. The name of the meta directory is (somewhat) flexible, and hence is queried by the tools and created if it doesn't exist. The recent enhancements to the .config auditing introduced a new query for the meta directory, but isn't being run in the kernel's source directory .. and is hence creating an unwanted file in $TOPDIR. We set the kernel source directory as the cwd for the call, and everything goes back to where it belongs. Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 77849a28c9..fa8466e587 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass @@ -475,7 +475,7 @@ python do_kernel_configcheck() { # meta-series for processing kmeta = d.getVar("KMETA") or "meta" if not os.path.exists(kmeta): - kmeta = subprocess.check_output(['kgit', '--meta']).decode('utf-8').rstrip() + kmeta = subprocess.check_output(['kgit', '--meta'], cwd=d.getVar('S')).decode('utf-8').rstrip() s = d.getVar('S')