From: Paul Gortmaker Date: Fri, 3 Apr 2020 16:21:58 +0000 (-0400) Subject: sanity.bbclass: echo current SDK_VENDOR if it is invalid X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~11385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e238fa177bd72bc5d165fbe4f640132267a1d3fd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git sanity.bbclass: echo current SDK_VENDOR if it is invalid 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 Signed-off-by: Paul Gortmaker Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index edd2df26263..9b97b462e44 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -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)