mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
df01b5032e
commit
d8f4a8bd1c
@@ -42,6 +42,10 @@ def check_sanity_version_change():
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
def check_pseudo_wrapper():
|
def check_pseudo_wrapper():
|
||||||
|
import sys
|
||||||
|
if not sys.argv[0].endswith('/bitbake'):
|
||||||
|
return ""
|
||||||
|
|
||||||
import subprocess as sub
|
import subprocess as sub
|
||||||
# Check if bitbake wrapper is being used
|
# Check if bitbake wrapper is being used
|
||||||
pseudo_build = os.environ.get( 'PSEUDO_BUILD' )
|
pseudo_build = os.environ.get( 'PSEUDO_BUILD' )
|
||||||
|
|||||||
Reference in New Issue
Block a user