summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-yocto.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 1d5a8cdf29..4cb638864c 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -521,15 +521,15 @@ python do_config_analysis() {
521python do_kernel_configcheck() { 521python do_kernel_configcheck() {
522 import re, string, sys, subprocess 522 import re, string, sys, subprocess
523 523
524 # if KMETA isn't set globally by a recipe using this routine, we need to
525 # set the default to 'meta'. Otherwise, kconf_check is not passed a valid
526 # meta-series for processing
527 kmeta = d.getVar("KMETA") or "meta"
528 if not os.path.exists(kmeta):
529 kmeta = subprocess.check_output(['kgit', '--meta'], cwd=d.getVar('S')).decode('utf-8').rstrip()
530
531 s = d.getVar('S') 524 s = d.getVar('S')
532 525
526 # if KMETA isn't set globally by a recipe using this routine, use kgit to
527 # locate or create the meta directory. Otherwise, kconf_check is not
528 # passed a valid meta-series for processing
529 kmeta = d.getVar("KMETA")
530 if not kmeta or not os.path.exists('{}/{}'.format(s,kmeta)):
531 kmeta = subprocess.check_output(['kgit', '--meta'], cwd=d.getVar('S')).decode('utf-8').rstrip()
532
533 env = os.environ.copy() 533 env = os.environ.copy()
534 env['PATH'] = "%s:%s%s" % (d.getVar('PATH'), s, "/scripts/util/") 534 env['PATH'] = "%s:%s%s" % (d.getVar('PATH'), s, "/scripts/util/")
535 env['LD'] = d.getVar('KERNEL_LD') 535 env['LD'] = d.getVar('KERNEL_LD')