summaryrefslogtreecommitdiffstats
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
parentdf01b5032ef3dcdcc130c223b150df1e3e963bbf (diff)
downloadast2050-yocto-poky-d8f4a8bd1c4e1a4ead115182eff3d03b33a149ce.zip
ast2050-yocto-poky-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>
-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 fc005aa..d296c86 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -42,6 +42,10 @@ def check_sanity_version_change():
return ""
def check_pseudo_wrapper():
+ import sys
+ if not sys.argv[0].endswith('/bitbake'):
+ return ""
+
import subprocess as sub
# Check if bitbake wrapper is being used
pseudo_build = os.environ.get( 'PSEUDO_BUILD' )
OpenPOWER on IntegriCloud