summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-06-19 19:50:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 14:00:07 +0100
commitd8f4a8bd1c4e1a4ead115182eff3d03b33a149ce (patch)
tree8148bfd75b41ce357a1906de114393fd73f93841 /meta
parentdf01b5032ef3dcdcc130c223b150df1e3e963bbf (diff)
downloadpoky-d8f4a8bd1c4e1a4ead115182eff3d03b33a149ce.tar.gz
sanity.bbclass: only run check_pseudo_wrapper for bitbake
This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers. (From OE-Core rev: 547f4ea9ac4be2e656f846e658df99b0ecff7a29) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index fc005aa90d..d296c861b2 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -42,6 +42,10 @@ def check_sanity_version_change():
42 return "" 42 return ""
43 43
44def check_pseudo_wrapper(): 44def check_pseudo_wrapper():
45 import sys
46 if not sys.argv[0].endswith('/bitbake'):
47 return ""
48
45 import subprocess as sub 49 import subprocess as sub
46 # Check if bitbake wrapper is being used 50 # Check if bitbake wrapper is being used
47 pseudo_build = os.environ.get( 'PSEUDO_BUILD' ) 51 pseudo_build = os.environ.get( 'PSEUDO_BUILD' )