Skip to contentSkip to conversation

sanity.bbclass: only run check_pseudo_wrapper for bitbake

PATCH Applied Dexuan Cui 3 participants 4 messages Jun 20, 2011 – Jun 30, 2011

lore
Share & tools
lore

Dexuan Cui

author
#0 lore raw

cover sanity.bbclass: only run check_pseudo_wrapper for bitbake

Please view it.

The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:

systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:14:06 +0100)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib dcui/sanity
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/sanity

Dexuan Cui (1):
sanity.bbclass: only run check_pseudo_wrapper for bitbake

 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
author
#1 lore raw

PATCH 1/1 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.

Thanks Paul Eggleton for suggesting doing this in sanity.bbclass.

---
 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta/classes/sanity.bbclass +4 -0
index fc005aa..d296c86 100644
@@ -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' )
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#2 lore raw
Quoted 15 lines · On Monday 20 June 2011 05:25:03 Dexuan Cui wrote:

This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers.

Thanks Paul Eggleton for suggesting doing this in sanity.bbclass.

---
 meta/classes/sanity.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta/classes/sanity.bbclass +0 -0
index fc005aa..d296c86 100644

meta/classes/sanity.bbclass def check_sanity_version_change(): · line 51

Quoted 10 lines
meta/classes/sanity.bbclass +4 -0
@@ -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' )

Looks good to me.

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
Applied
#3 lore raw
In reply to Dexuan Cui
Quoted 13 lines · Dexuan Cui

Please view it.

The following changes since commit 2163461ec94528ecf046a04edc5db3d2dd3a6b8b:

   systemtap: remove non-core COMPATIBLE_MACHINES (2011-06-16 22:14:06 +0100)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib dcui/sanity
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/sanity

Dexuan Cui (1):
sanity.bbclass: only run check_pseudo_wrapper for bitbake

Quoted 9 lines
  meta/classes/sanity.bbclass |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Merged into OE-Core

Thanks
Sau!