Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake
@ 2011-06-20  4:25 Dexuan Cui
  2011-06-20  4:25 ` [PATCH 1/1] " Dexuan Cui
  2011-06-30  3:55 ` [PATCH 0/1] " Saul Wold
  0 siblings, 2 replies; 4+ messages in thread
From: Dexuan Cui @ 2011-06-20  4:25 UTC (permalink / raw)
  To: openembedded-core

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(-)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake
  2011-06-20  4:25 [PATCH 0/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake Dexuan Cui
@ 2011-06-20  4:25 ` Dexuan Cui
  2011-06-20 12:39   ` Paul Eggleton
  2011-06-30  3:55 ` [PATCH 0/1] " Saul Wold
  1 sibling, 1 reply; 4+ messages in thread
From: Dexuan Cui @ 2011-06-20  4:25 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
 meta/classes/sanity.bbclass |    4 ++++
 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' )
-- 
1.7.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake
  2011-06-20  4:25 ` [PATCH 1/1] " Dexuan Cui
@ 2011-06-20 12:39   ` Paul Eggleton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2011-06-20 12:39 UTC (permalink / raw)
  To: openembedded-core

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.
> 
> Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
> ---
>  meta/classes/sanity.bbclass |    4 ++++
>  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' )

Looks good to me.

Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake
  2011-06-20  4:25 [PATCH 0/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake Dexuan Cui
  2011-06-20  4:25 ` [PATCH 1/1] " Dexuan Cui
@ 2011-06-30  3:55 ` Saul Wold
  1 sibling, 0 replies; 4+ messages in thread
From: Saul Wold @ 2011-06-30  3:55 UTC (permalink / raw)
  To: openembedded-core

On 06/19/2011 09:25 PM, Dexuan Cui wrote:
> 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(-)
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Merged into OE-Core

Thanks
	Sau!



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-30  3:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20  4:25 [PATCH 0/1] sanity.bbclass: only run check_pseudo_wrapper for bitbake Dexuan Cui
2011-06-20  4:25 ` [PATCH 1/1] " Dexuan Cui
2011-06-20 12:39   ` Paul Eggleton
2011-06-30  3:55 ` [PATCH 0/1] " Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox