summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/mlinux/mlinux-version.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-core/mlinux/mlinux-version.bb b/recipes-core/mlinux/mlinux-version.bb
index 924b3e0..3960f47 100644
--- a/recipes-core/mlinux/mlinux-version.bb
+++ b/recipes-core/mlinux/mlinux-version.bb
@@ -25,7 +25,7 @@ image_version = "${@define_iv(d)}"
def define_iv(d):
import subprocess
- source_dir = d.getVar('TOPDIR',True) + "/.."
+ source_dir = d.getVar('OEROOT',True)
cmd = "git describe"
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True, cwd=source_dir)
out, err = proc.communicate()