summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-09-07 17:05:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-07 22:54:17 +0100
commitac0b2cbe45c9f9a103b63665ace90c1963252f6f (patch)
tree59a435b52a7cb835e68122812f8ab763b46cefc1 /meta
parent0342cf81d5edd20f95378408e159f00da6ae2c76 (diff)
downloadpoky-ac0b2cbe45c9f9a103b63665ace90c1963252f6f.tar.gz
sanity.bbclass: re-enable DISTRO check
If DISTRO has been specified, ensure it is valid. (Unset or empty string is valid for DISTRO in OE-core by the use of defaultsetup.conf.) (From OE-Core rev: 895aa6b8ee9636a9f9d716c62c0adf951e1ff138) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 44b06880ad..93008cc685 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -269,10 +269,12 @@ def check_sanity(e):
269 if os.path.exists(dldir) and not os.access(dldir, os.W_OK): 269 if os.path.exists(dldir) and not os.access(dldir, os.W_OK):
270 messages = messages + "DL_DIR: %s exists but you do not appear to have write access to it. \n" % dldir 270 messages = messages + "DL_DIR: %s exists but you do not appear to have write access to it. \n" % dldir
271 271
272 # Check that the DISTRO is valid 272 # Check that the DISTRO is valid, if set
273 # need to take into account DISTRO renaming DISTRO 273 # need to take into account DISTRO renaming DISTRO
274 #if not ( check_conf_exists("conf/distro/${DISTRO}.conf", e.data) or check_conf_exists("conf/distro/include/${DISTRO}.inc", e.data) ): 274 distro = data.getVar('DISTRO', e.data, True)
275 # messages = messages + "DISTRO '%s' not found. Please set a valid DISTRO in your local.conf\n" % data.getVar("DISTRO", e.data, True ) 275 if distro:
276 if not ( check_conf_exists("conf/distro/${DISTRO}.conf", e.data) or check_conf_exists("conf/distro/include/${DISTRO}.inc", e.data) ):
277 messages = messages + "DISTRO '%s' not found. Please set a valid DISTRO in your local.conf\n" % data.getVar("DISTRO", e.data, True )
276 278
277 missing = "" 279 missing = ""
278 280