summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2020-08-12 13:03:26 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-13 08:07:00 +0100
commit17798a89adf7767cf51e04b96fad58e23e411da6 (patch)
tree712dd3105f00163f50c2b323fb09449fcae652ec /meta/classes
parentd23cfcf72722d1a7bd0a92c3ab610c4f4fbe13c9 (diff)
downloadpoky-17798a89adf7767cf51e04b96fad58e23e411da6.tar.gz
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. (From OE-Core rev: 36f95f5e22cb4858c927f2a5a3bfeae630a41f1d) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-yocto.bbclass2
1 files changed, 1 insertions, 1 deletions
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() {
475 # meta-series for processing 475 # meta-series for processing
476 kmeta = d.getVar("KMETA") or "meta" 476 kmeta = d.getVar("KMETA") or "meta"
477 if not os.path.exists(kmeta): 477 if not os.path.exists(kmeta):
478 kmeta = subprocess.check_output(['kgit', '--meta']).decode('utf-8').rstrip() 478 kmeta = subprocess.check_output(['kgit', '--meta'], cwd=d.getVar('S')).decode('utf-8').rstrip()
479 479
480 s = d.getVar('S') 480 s = d.getVar('S')
481 481