]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: echo current SDK_VENDOR if it is invalid
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 3 Apr 2020 16:21:58 +0000 (12:21 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Apr 2020 21:58:05 +0000 (22:58 +0100)
It can be frustrating if this sanity check triggers, but you
don't know why; you haven't explicitly set any SDK vars, or
similar.

At least echo out the offending value, so the end user has
a bit more information to go on.

Before:
  SDK_VENDOR should be of the form '-foosdk' with a single dash
After:
  SDK_VENDOR should be of the form '-foosdk' with a single dash; found '-overc-sdk'

Cc: Ross Burton <ross.burton@intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index edd2df26263b8a31dbf145a92cb38d0a4fac9829..9b97b462e442ec614666c0213cfe28fa3d9a7dc2 100644 (file)
@@ -823,7 +823,7 @@ def check_sanity_everybuild(status, d):
     # If SDK_VENDOR looks like "-my-sdk" then the triples are badly formed so fail early
     sdkvendor = d.getVar("SDK_VENDOR")
     if not (sdkvendor.startswith("-") and sdkvendor.count("-") == 1):
-        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash\n")
+        status.addresult("SDK_VENDOR should be of the form '-foosdk' with a single dash; found '%s'\n" % sdkvendor)
 
     check_supported_distro(d)