diff options
-rw-r--r-- | classes/sanity.bbclass | 4 | ||||
-rw-r--r-- | conf/bitbake.conf | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index 6af44ee191..8253b27930 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -83,6 +83,10 @@ def check_sanity(e): if not check_app_exists('texi2html', e.data): raise_sanity_error('Please install the texi2html binary') + oes_bb_conf = data.getVar( 'OES_BITBAKE_CONF', e.data, True ) + if not oes_bb_conf: + raise_sanity_error('You do not include OpenEmbeddeds version of conf/bitbake.conf') + addhandler check_sanity_eventhandler python check_sanity_eventhandler() { from bb import note, error, data, __version__ diff --git a/conf/bitbake.conf b/conf/bitbake.conf index 77923e8e7f..2043a500eb 100644 --- a/conf/bitbake.conf +++ b/conf/bitbake.conf @@ -403,3 +403,9 @@ require conf/sanity.conf ################################################################## PCMCIA_MANAGER ?= "pcmcia-cs" + + +################################################################## +# Magic Cookie for SANITY CHECK +################################################################## +OES_BITBAKE_CONF = "1" |